You can update a specific crate to a specific version like so:

cd toolkit/library/rust
cargo update -p encoding_rs --precise <version>
cd ../gtest/rust
cargo update -p encoding_rs --precise <version>
cd ../../../../
mach vendor rust


On Tue, May 2, 2017 at 4:38 AM, Henri Sivonen <hsivo...@hsivonen.fi> wrote:
> I have toolkit/library/rust/shared/Cargo.toml depending on a crates.io
> crate encoding_c, which depends on encoding_rs.
>
> Then I update the minor version of encoding_rs on crates.io but don't
> update encoding_c.
>
> Now if I re-run ./mach vendor rust, nothing happens, because I didn't
> change the encoding_c dependency version in
> toolkit/library/rust/shared/Cargo.toml to force the dependencies to be
> unsatisfied.
>
> If, instead, I delete toolkit/library/rust/shared/Cargo.lock and then
> run ./mach vendor rust, I get minor version updates to all crates in
> the dependency graph that have changed since they were vendored.
>
> Other than manually merging lock files and unstaging unrelated crate
> changes, how do I scope the re-vendoring to encoding_rs only?
>
> --
> Henri Sivonen
> hsivo...@hsivonen.fi
> https://hsivonen.fi/
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to