Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support version in install_crate #544

Closed
ndarilek opened this issue Apr 6, 2021 · 4 comments
Closed

Support version in install_crate #544

ndarilek opened this issue Apr 6, 2021 · 4 comments
Assignees
Milestone

Comments

@ndarilek
Copy link

ndarilek commented Apr 6, 2021

Feature Description

Support specifying an exact version when installing a crate.

Describe The Solution You'd Like

I'm trying to build a wasm app. I need an exact match between wasm-bindgen and wasm-bindgen-cli, and unfortunately a dependency requires the use of 0.2.69. cargo install wasm-bindgen-cli --version 0.2.69 works, but it'd be nice to encode the version requirement in my Makefile.toml. Note that it can't be min_version, since the versions need to match exactly.

Code Sample

[tasks.install-wasm-bindgen-cli]
install_crate = { crate_name = "wasm-bindgen-cli", version = "0.2.69", binary = "wasm-bindgen", test_arg = "--help" }
@sagiegurari
Copy link
Owner

makes sense. I'll check it out.
thanks for the idea.

@sagiegurari
Copy link
Owner

@ndarilek i just pushed a support for this in the 0.32.17 dev branch. can you verify it please?

@ndarilek
Copy link
Author

ndarilek commented Apr 9, 2021 via email

@sagiegurari sagiegurari added this to the 0.32.17 milestone Apr 9, 2021
@sagiegurari
Copy link
Owner

sagiegurari commented Apr 15, 2021

this is now officially released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants