Skip to content

Commit

Permalink
fix(cli): try to depend on major version of api
Browse files Browse the repository at this point in the history
Previously that didn't work due to a bug in carg,
but should work now.
  • Loading branch information
Byron committed Dec 24, 2016
1 parent 5e28a06 commit b68b2a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/mako/Cargo.toml.mako
Original file line number Diff line number Diff line change
Expand Up @@ -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')
%>\
Expand All @@ -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

0 comments on commit b68b2a6

Please sign in to comment.