Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
aho_corasick/v1/ | H | 25-Apr-2025 | - | 86 | 79 | |
anstyle/v1/ | H | 25-Apr-2025 | - | 55 | 48 | |
anyhow/v1/ | H | 25-Apr-2025 | - | 62 | 56 | |
base64/v0_13/ | H | 25-Apr-2025 | - | 61 | 55 | |
bitflags/v2/ | H | 25-Apr-2025 | - | 82 | 75 | |
bytemuck/v1/ | H | 25-Apr-2025 | - | 58 | 52 | |
bytes/v1/ | H | 25-Apr-2025 | - | 66 | 60 | |
cfg_if/v1/ | H | 25-Apr-2025 | - | 47 | 40 | |
chromium_crates_io/ | H | 25-Apr-2025 | - | 1,395,618 | 1,172,138 | |
clap/v4/ | H | 25-Apr-2025 | - | 196 | 189 | |
clap_builder/v4/ | H | 25-Apr-2025 | - | 115 | 108 | |
clap_lex/v0_7/ | H | 25-Apr-2025 | - | 50 | 43 | |
cxx/ | H | 25-Apr-2025 | - | 318 | 275 | |
cxxbridge_cmd/v1/ | H | 25-Apr-2025 | - | 99 | 93 | |
cxxbridge_flags/v1/ | H | 25-Apr-2025 | - | 51 | 44 | |
cxxbridge_macro/v1/ | H | 25-Apr-2025 | - | 91 | 84 | |
either/v1/ | H | 25-Apr-2025 | - | 56 | 48 | |
fend_core/v1/ | H | 25-Apr-2025 | - | 267 | 205 | |
font_types/v0_4/ | H | 25-Apr-2025 | - | 59 | 53 | |
getrandom/v0_2/ | H | 25-Apr-2025 | - | 84 | 77 | |
heck/v0_4/ | H | 25-Apr-2025 | - | 58 | 51 | |
hex/v0_4/ | H | 25-Apr-2025 | - | 53 | 47 | |
hex_literal/v0_4/ | H | 25-Apr-2025 | - | 46 | 40 | |
itertools/v0_11/ | H | 25-Apr-2025 | - | 101 | 94 | |
itoa/v1/ | H | 25-Apr-2025 | - | 51 | 44 | |
lazy_static/v1/ | H | 25-Apr-2025 | - | 47 | 41 | |
libc/v0_2/ | H | 25-Apr-2025 | - | 284 | 277 | |
log/v0_4/ | H | 25-Apr-2025 | - | 55 | 48 | |
memchr/v2/ | H | 25-Apr-2025 | - | 100 | 92 | |
nom/v7/ | H | 25-Apr-2025 | - | 78 | 72 | |
ppv_lite86/v0_2/ | H | 25-Apr-2025 | - | 59 | 52 | |
proc_macro2/v1/ | H | 25-Apr-2025 | - | 63 | 57 | |
prost/v0_12/ | H | 25-Apr-2025 | - | 60 | 54 | |
prost_derive/v0_12/ | H | 25-Apr-2025 | - | 64 | 57 | |
qr_code/v2/ | H | 25-Apr-2025 | - | 58 | 52 | |
quote/v1/ | H | 25-Apr-2025 | - | 53 | 47 | |
rand/v0_8/ | H | 25-Apr-2025 | - | 88 | 81 | |
rand_chacha/v0_3/ | H | 25-Apr-2025 | - | 58 | 50 | |
rand_core/v0_6/ | H | 25-Apr-2025 | - | 64 | 56 | |
rand_pcg/v0_3/ | H | 25-Apr-2025 | - | 50 | 43 | |
read_fonts/v0_15/ | H | 25-Apr-2025 | - | 158 | 152 | |
regex/v1/ | H | 25-Apr-2025 | - | 84 | 77 | |
regex_automata/v0_4/ | H | 25-Apr-2025 | - | 150 | 143 | |
regex_syntax/v0_8/ | H | 25-Apr-2025 | - | 94 | 87 | |
rustc_demangle/v0_1/ | H | 25-Apr-2025 | - | 52 | 44 | |
rustc_version/v0_4/ | H | 25-Apr-2025 | - | 50 | 43 | |
rustversion/v1/ | H | 25-Apr-2025 | - | 61 | 55 | |
ryu/v1/ | H | 25-Apr-2025 | - | 65 | 58 | |
semver/v1/ | H | 25-Apr-2025 | - | 65 | 58 | |
serde/v1/ | H | 25-Apr-2025 | - | 73 | 67 | |
serde_derive/v1/ | H | 25-Apr-2025 | - | 71 | 64 | |
serde_json/v1/ | H | 25-Apr-2025 | - | 94 | 88 | |
serde_json_lenient/v0_2/ | H | 25-Apr-2025 | - | 606 | 432 | |
skrifa/v0_15/ | H | 25-Apr-2025 | - | 86 | 80 | |
small_ctor/v0_1/ | H | 25-Apr-2025 | - | 46 | 40 | |
src/ | H | 25-Apr-2025 | - | 1 | 0 | |
static_assertions/v1/ | H | 25-Apr-2025 | - | 54 | 48 | |
strsim/v0_11/ | H | 25-Apr-2025 | - | 53 | 45 | |
strum/v0_25/ | H | 25-Apr-2025 | - | 46 | 40 | |
strum_macros/v0_25/ | H | 25-Apr-2025 | - | 71 | 65 | |
syn/ | H | 25-Apr-2025 | - | 234 | 221 | |
termcolor/v1/ | H | 25-Apr-2025 | - | 56 | 48 | |
tinyvec/v1/ | H | 25-Apr-2025 | - | 57 | 51 | |
unicode_ident/v1/ | H | 25-Apr-2025 | - | 50 | 43 | |
unicode_linebreak/v0_1/ | H | 25-Apr-2025 | - | 46 | 40 | |
unicode_width/v0_1/ | H | 25-Apr-2025 | - | 54 | 46 | |
winapi_util/v0_1/ | H | 25-Apr-2025 | - | 58 | 51 | |
wycheproof/v0_4/ | H | 25-Apr-2025 | - | 382 | 376 | |
.clang-format | H A D | 25-Apr-2025 | 20 | 2 | 1 | |
PRESUBMIT.py | H A D | 25-Apr-2025 | 1 KiB | 32 | 20 | |
README.md | H A D | 25-Apr-2025 | 1.9 KiB | 57 | 42 |
README.md
1# Rust third-party code 2 3This directory contains all third-party Rust code, and sometimes thin wrappers 4around it for C++ intertop. 5 6## Crates.io 7 8Crates that come from [crates.io](https://crates.io) are found in 9`//third_party/rust/chromium_crates_io`, and are all vendored into the 10Chromium git repository. They are managed through Cargo rules and with 11the `gnrt` tool. See [`//docs/rust.md`](../../docs/rust.md) for how to 12bring in new third-party libraries or update them. 13 14The GN rules and README.chromium files for these crates are written by 15the `gnrt` tool and should not be edited by hand. 16 17### Directory structure 18 19We store GN rules for each third-party crate in a directory of the same name. 20Under that directory a folder named based on the crate epoch version is 21created. This limits first-party usage of a crate to only one version within 22each epoch. 23If the crate's version has a major version greater-than 0, then that is used 24as its version folder, such as `v1`. Otherwise, the name includes all 25leading zeros in the version, such as `v0_3`. 26 27For example, GN rules for the `tutelage` crate at version **1.4.3** would be 28stored at 29```sh 30//third_party/rust/tutelage/v1 31``` 32 33Whereas GN rules for the verion **0.2.8** version would be stored at 34```sh 35//third_party/rust/tutelage/v0_2 36``` 37 38## Other sources 39 40Third-party Rust libraries that are not distributed through [crates.io]( 41https://crates.io) are uncommon. But they may live under 42`//third_party/rust/crate_name` directly, as a git submodule, 43with GN rules written for them by hand. 44 45## OWNERS 46 47We do not require OWNERS in each crate's directory at this time, but this 48will be revisited in the future. 49 50## Review process 51 52Rust libraries must go through the [3rd-party review process]( 53../../docs/adding_to_third_party.md). 54See the [review of the `toml` crate]( 55https://groups.google.com/u/1/a/chromium.org/g/security/c/K686pSg-gZc/m/Pn2QzqahAwAJ) 56for an example of a Rust security review. 57