-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
respect previously defined feature flags when updating #251
Comments
Hi, looks like this wasn't implemented because |
hm, indeed
let's see |
Can you try the current |
I don't have an outdated binary to test for now, cc folks who are also interested in this feature: @ncihnegn @simonsan @ModProg @dotdash @tranzystorekk BTW, thanks for the quick response and implementation! |
Released in |
if an application has been installed using feature flags (e.g.
cargo install probe-rs --features cli
)cargo install-update
currently does not respect this and will instead install the new version without any feature flags.based on a brief look it seems that
~/.cargo/.crates.toml
does not contain the feature flags used, but~/.cargo/.crates2.json
does. it furthermore also containsall_features
andno_default_features
which are also relevant.since
.crates2.json
seems to contain everything.crates.toml
does and then some it might be enough to just read the information from there. the new file has been introduced with rust-lang/cargo#6667, it will not be present for older cargo installations (so depending on how much backwards compatibility with old cargo versions you want to keep you might have to keep the code for parsing the old file if the new one is not present)it'd be great if this information could be considered when running the installation of the new version.
The text was updated successfully, but these errors were encountered: