mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-08 12:32:08 +01:00
fix(cli): try to depend on major version of api
Previously that didn't work due to a bug in carg, but should work now.
This commit is contained in:
@@ -41,14 +41,12 @@ ${dep}
|
||||
<%
|
||||
api_name = util.library_name()
|
||||
crate_name_we_depend_on = None
|
||||
crate_version_we_depend_on = None
|
||||
|
||||
nightly_features = ["serde_derive", "yup-oauth2/nightly"]
|
||||
default_features = ["serde_codegen", "yup-oauth2/with-serde-codegen"]
|
||||
|
||||
if make.depends_on_suffix is not None:
|
||||
crate_name_we_depend_on = library_to_crate_name(api_name, suffix=make.depends_on_suffix)
|
||||
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')
|
||||
%>\
|
||||
@@ -63,7 +61,7 @@ serde_codegen = { version = "^ 0.8", optional = true }
|
||||
|
||||
[dependencies.${crate_name_we_depend_on}]
|
||||
path = "../${api_name}"
|
||||
version = "${crate_version_we_depend_on}"
|
||||
version = "1"
|
||||
optional = true
|
||||
default-features = false
|
||||
% endif
|
||||
|
||||
Reference in New Issue
Block a user