nabijaczleweli / cargo-update

A cargo subcommand for checking and applying updates to installed executables
MIT License
1.25k stars 41 forks source link

Support custom profile #282

Closed Berrysoft closed 3 weeks ago

Berrysoft commented 3 weeks ago

A default custom profile could be defined in ~/.cargo/config.toml, for example,

[profile.release-lto]
inherits = "release"
lto = true
codegen-units = 1

I would like to configure cargo-update to use a custom profile for specific installed crate.

nabijaczleweli commented 3 weeks ago

Can you try the current master branch (at least 13101d57253989e421c09619629cde216af4ac8f)? cargo install-update-config --build-profile release-lto $package should work (and cargo install-update ... should respect it if you gave it to cargo install $package).

Berrysoft commented 3 weeks ago

Seems that it works, thanks!

nabijaczleweli commented 3 weeks ago

Great, released in v16.0.0!