Commit Graph
4 Commits
Author SHA1 Message Date
Kyle Den Hartog 0ae4cc76a5 Add --update-crate flag to update a single vendored tool crate (#34929)
* Add --update-crate flag to update a single vendored tool crate

Adds a --update-crate=<name>@<version> option to tools/crates/update.py
that updates one crate in-place without running cargo vendor. It downloads
the tarball directly from crates.io, replaces the vendor directory, patches
Cargo.lock, and regenerates .cargo-checksum.json. This avoids collateral
version bumps from a full re-vendor and is useful for targeted security
advisory fixes.

Exposes the flag via `npm run update_brave_tools_crates -- --update-crate=`.
2026-04-03 10:40:38 +13:00
Brian Johnson 03782c8697 Merge wiki into rust.md (#32475)
Merge the wiki entry into the doc and remove parts that were not correct
2025-11-21 14:01:34 -07:00
cdesouza-chromium b694664f80 [cr137-follow-up] Correct crate patches to point to brave/ (#29132)
This change corrects all crate patches, changing them to point to
`brave/`. This eliminates the need of patching `gnrt vendor` to address
this patch mismatch.

Patches should be created now with:

```sh
git format-patch \
    --start-number=101 \
    --src-prefix=a/brave/ \
    --dst-prefix=b/brave/ \
    --output-directory \
        third_party/rust/chromium_crates_io/patches/some-crate/ \
    HEAD^
```

Resolves https://github.com/brave/brave-browser/issues/46201
2025-05-21 09:16:14 +01:00
Brian R. Bondy ee886d6ec5 Add an initial set of guidelines for Rust usage in brave-core (#19276) 2023-07-13 11:01:53 -04:00