| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| adler2/v2/ | 04-Jul-2025 | - | 11 | 9 | ||
| aho_corasick/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| anstyle/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| anyhow/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| base64/v0_13/ | 04-Jul-2025 | - | 11 | 9 | ||
| bitflags/ | 04-Jul-2025 | - | 24 | 18 | ||
| bstr/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| bytemuck/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| bytemuck_derive/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| byteorder/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| bytes/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| cfg_if/v1/ | 04-Jul-2025 | - | 14 | 11 | ||
| chromium_crates_io/ | 04-Jul-2025 | - | 1,923,932 | 1,659,339 | ||
| clap/v4/ | 04-Jul-2025 | - | 11 | 9 | ||
| clap_builder/v4/ | 04-Jul-2025 | - | 11 | 9 | ||
| clap_lex/v0_7/ | 04-Jul-2025 | - | 11 | 9 | ||
| crc32fast/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| cxx/ | 04-Jul-2025 | - | 72 | 48 | ||
| cxxbridge_cmd/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| cxxbridge_flags/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| cxxbridge_macro/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| either/v1/ | 04-Jul-2025 | - | 12 | 9 | ||
| fdeflate/v0_3/ | 04-Jul-2025 | - | 11 | 9 | ||
| fend_core/v1/ | 04-Jul-2025 | - | 508 | 400 | ||
| flate2/v1/ | 04-Jul-2025 | - | 14 | 11 | ||
| font_types/v0_7/ | 04-Jul-2025 | - | 11 | 9 | ||
| getrandom/v0_2/ | 04-Jul-2025 | - | 11 | 9 | ||
| glob/v0_3/ | 04-Jul-2025 | - | 12 | 9 | ||
| heck/v0_4/ | 04-Jul-2025 | - | 11 | 9 | ||
| hex/v0_4/ | 04-Jul-2025 | - | 11 | 9 | ||
| hex_literal/v0_4/ | 04-Jul-2025 | - | 11 | 9 | ||
| itertools/v0_11/ | 04-Jul-2025 | - | 11 | 9 | ||
| itoa/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| lazy_static/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| libc/v0_2/ | 04-Jul-2025 | - | 12 | 9 | ||
| log/v0_4/ | 04-Jul-2025 | - | 12 | 9 | ||
| memchr/v2/ | 04-Jul-2025 | - | 13 | 10 | ||
| miniz_oxide/v0_8/ | 04-Jul-2025 | - | 11 | 9 | ||
| nom/v7/ | 04-Jul-2025 | - | 11 | 9 | ||
| png/v0_17/ | 04-Jul-2025 | - | 11 | 9 | ||
| ppv_lite86/v0_2/ | 04-Jul-2025 | - | 11 | 9 | ||
| proc_macro2/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| prost/v0_13/ | 04-Jul-2025 | - | 11 | 9 | ||
| prost_derive/v0_13/ | 04-Jul-2025 | - | 11 | 9 | ||
| qr_code/v2/ | 04-Jul-2025 | - | 11 | 9 | ||
| quote/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| rand/v0_8/ | 04-Jul-2025 | - | 12 | 9 | ||
| rand_chacha/v0_3/ | 04-Jul-2025 | - | 12 | 9 | ||
| rand_core/v0_6/ | 04-Jul-2025 | - | 12 | 9 | ||
| rand_pcg/v0_3/ | 04-Jul-2025 | - | 12 | 9 | ||
| read_fonts/v0_23/ | 04-Jul-2025 | - | 11 | 9 | ||
| regex/v1/ | 04-Jul-2025 | - | 13 | 10 | ||
| regex_automata/v0_4/ | 04-Jul-2025 | - | 11 | 9 | ||
| regex_syntax/v0_8/ | 04-Jul-2025 | - | 11 | 9 | ||
| relative_path/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| rustc_demangle/v0_1/ | 04-Jul-2025 | - | 12 | 9 | ||
| rustc_version/v0_4/ | 04-Jul-2025 | - | 11 | 9 | ||
| rustversion/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| ryu/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| semver/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| serde/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| serde_derive/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| serde_json/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| serde_json_lenient/v0_2/ | 04-Jul-2025 | - | 993 | 824 | ||
| simd_adler32/v0_3/ | 04-Jul-2025 | - | 11 | 9 | ||
| skrifa/v0_24/ | 04-Jul-2025 | - | 11 | 9 | ||
| small_ctor/v0_1/ | 04-Jul-2025 | - | 11 | 9 | ||
| src/ | 04-Jul-2025 | - | 1 | 0 | ||
| static_assertions/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| strsim/v0_11/ | 04-Jul-2025 | - | 13 | 10 | ||
| strum/v0_25/ | 04-Jul-2025 | - | 10 | 8 | ||
| strum_macros/v0_25/ | 04-Jul-2025 | - | 11 | 9 | ||
| syn/v2/ | 04-Jul-2025 | - | 11 | 9 | ||
| termcolor/v1/ | 04-Jul-2025 | - | 12 | 9 | ||
| tinyvec/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| unicode_ident/v1/ | 04-Jul-2025 | - | 11 | 9 | ||
| unicode_linebreak/v0_1/ | 04-Jul-2025 | - | 10 | 8 | ||
| unicode_width/v0_1/ | 04-Jul-2025 | - | 13 | 10 | ||
| winapi_util/v0_1/ | 04-Jul-2025 | - | 11 | 9 | ||
| windows_aarch64_msvc/v0_52/ | 04-Jul-2025 | - | 11 | 9 | ||
| windows_i686_msvc/v0_52/ | 04-Jul-2025 | - | 11 | 9 | ||
| windows_sys/v0_52/ | 04-Jul-2025 | - | 11 | 9 | ||
| windows_targets/v0_52/ | 04-Jul-2025 | - | 11 | 9 | ||
| windows_x86_64_msvc/v0_52/ | 04-Jul-2025 | - | 11 | 9 | ||
| wycheproof/v0_4/ | 04-Jul-2025 | - | 11 | 9 | ||
| zerocopy/v0_7/ | 04-Jul-2025 | - | 11 | 9 | ||
| zerocopy_derive/v0_7/ | 04-Jul-2025 | - | 11 | 9 | ||
| .clang-format | D | 04-Jul-2025 | 20 | 2 | 1 | |
| PRESUBMIT.py | D | 04-Jul-2025 | 1 KiB | 32 | 20 | |
| README.md | D | 04-Jul-2025 | 2.1 KiB | 59 | 44 |
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` or `//third_party/project_name` directly, 43as a git submodule, with GN rules written for them by hand 44(such GN rules would most likely use either the `cargo_crate("foo")` or the 45`rust_static_library("foo")` template from Chromium's `//build/rust/*.gni`). 46 47## OWNERS 48 49We do not require OWNERS in each crate's directory at this time, but this 50will be revisited in the future. 51 52## Review process 53 54Rust libraries must go through the [3rd-party review process]( 55../../docs/adding_to_third_party.md). 56See the [review of the `toml` crate]( 57https://groups.google.com/u/1/a/chromium.org/g/security/c/K686pSg-gZc/m/Pn2QzqahAwAJ) 58for an example of a Rust security review. 59