mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-03 18:08:44 +01:00
fix(versions): cli + api use a single base version
That way we get rid of the duplication at least. Probably it would be enough to just refer to version 1 of the library respectively, and let semver do the rest.
This commit is contained in:
@@ -65,14 +65,8 @@ directories:
|
||||
mako_src: src/mako
|
||||
# The subdirectory to contain documentation from all APIs and related programs
|
||||
doc_subdir: doc
|
||||
# This somewhat intricate setup allows the CLI to access certain cargo-API values,
|
||||
# without having us duplicate them.
|
||||
cargo_api: &cargo_api
|
||||
build_version: "1.0.0"
|
||||
cargo:
|
||||
# This means that the API must not specify the shared variables from cargo_api
|
||||
# anymore
|
||||
<<: *cargo_api
|
||||
build_version: "1.0.0"
|
||||
repo_base_url: https://github.com/Byron/google-apis-rs
|
||||
authors:
|
||||
# don't forget to possibly add them to copyright authors
|
||||
|
||||
@@ -25,7 +25,6 @@ make:
|
||||
- source: build.rs
|
||||
output_dir: src
|
||||
cargo:
|
||||
build_version: "1.0.0"
|
||||
build_script: src/build.rs
|
||||
keywords: [protocol, web, api]
|
||||
doc_base_url: https://docs.rs
|
||||
|
||||
@@ -23,7 +23,6 @@ make:
|
||||
- source: main.rs
|
||||
output_dir: src
|
||||
cargo:
|
||||
build_version: "1.0.0"
|
||||
keywords: [cli]
|
||||
is_executable: YES
|
||||
doc_base_url: http://byron.github.io/google-apis-rs
|
||||
|
||||
@@ -48,8 +48,7 @@ ${dep}
|
||||
|
||||
if make.depends_on_suffix is not None:
|
||||
crate_name_we_depend_on = library_to_crate_name(api_name, suffix=make.depends_on_suffix)
|
||||
depends_on_key = 'cargo_' + make.depends_on_id
|
||||
crate_version_we_depend_on = self.context.get(depends_on_key).get('build_version')
|
||||
crate_version_we_depend_on = cargo.build_version
|
||||
nightly_features.append(crate_name_we_depend_on + '/nightly')
|
||||
default_features.append(crate_name_we_depend_on + '/with-serde-codegen')
|
||||
%>\
|
||||
|
||||
Reference in New Issue
Block a user