mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-15 22:18:10 +01:00
feat(make): cli depends on API, generically
This allows us to build efficiently. CLI programs can now have their own cmn.rs implementation, which we can test standalone with `cargo test`. The primary makefile currently just explicitly pulls in the type-*.yaml, one day we could possibly put it into a loop. Fixes #11
This commit is contained in:
@@ -37,9 +37,6 @@ api:
|
||||
- v1
|
||||
calendar:
|
||||
- v3
|
||||
# Does not build yet, see serde issue: https://github.com/erickt/rust-serde/issues/45
|
||||
# civicinfo:
|
||||
# - v2
|
||||
cloudlatencytest:
|
||||
- v2
|
||||
cloudmonitoring:
|
||||
@@ -62,9 +59,6 @@ api:
|
||||
- v2beta1
|
||||
dfareporting:
|
||||
- v2.0
|
||||
# Does not build yet, see serde issue: https://github.com/erickt/rust-serde/issues/45
|
||||
# discovery:
|
||||
# - v1
|
||||
dns:
|
||||
- v1beta1
|
||||
doubleclickbidmanager:
|
||||
@@ -85,9 +79,6 @@ api:
|
||||
- v1configuration
|
||||
gamesmanagement:
|
||||
- v1management
|
||||
# Does not build yet, see serde issue: https://github.com/erickt/rust-serde/issues/45
|
||||
# gan:
|
||||
# - v1beta1
|
||||
genomics:
|
||||
- v1beta2
|
||||
gmail:
|
||||
@@ -110,9 +101,6 @@ api:
|
||||
- v2
|
||||
pagespeedonline:
|
||||
- v2
|
||||
# Does not build yet, see serde issue: https://github.com/erickt/rust-serde/issues/45
|
||||
# plus:
|
||||
# - v1
|
||||
plusdomains:
|
||||
- v1
|
||||
prediction:
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
api:
|
||||
blacklist:
|
||||
# All of these require Box<> support in serde
|
||||
# See https://github.com/erickt/rust-serde/issues/45
|
||||
- civicinfo
|
||||
- discovery
|
||||
- gan
|
||||
- plus
|
||||
# Contains values shared among all API implementations
|
||||
directories:
|
||||
# directory under which all generated sources should reside
|
||||
|
||||
@@ -11,10 +11,11 @@ api:
|
||||
# custom scopes for authentication
|
||||
scopes: '_scopes'
|
||||
make:
|
||||
id: api
|
||||
target_name: APIs
|
||||
target_suffix: ''
|
||||
aggregated_target_suffix: -api
|
||||
depends_on:
|
||||
depends_on_suffix:
|
||||
global_targets: Yes
|
||||
templates:
|
||||
# all output directories are relative to the one set for the respective API
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
make:
|
||||
id: cli
|
||||
target_name: CLIs
|
||||
target_suffix: -cli
|
||||
aggregated_target_suffix: -cli
|
||||
depends_on: api
|
||||
depends_on_suffix: ''
|
||||
templates:
|
||||
- source: ../LICENSE.md
|
||||
- source: ../Cargo.toml
|
||||
|
||||
Reference in New Issue
Block a user