| # Copyright 2018 The Fuchsia Authors. All rights reserved. | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| # -------------- READ BEFORE EDITING --------------- | |
| # This file describes the third-party packages used by Rust code and | |
| # how they should be built. | |
| # | |
| # Every edit to this file should be followed by: | |
| # - fx update-rustc-third-party | |
| # | |
| # Always request non-default features you use. This can sometimes get missed if | |
| # another third-party crate in our build requests the same feature you use: | |
| # your builds will usually work, but `fx rustdoc-link` will fail. | |
| # | |
| # More information is available in | |
| # https://fuchsia.dev/fuchsia-src/development/languages/rust/external_crates . | |
| [workspace] | |
| resolver = "3" | |
| [package] | |
| name = "fuchsia-third-party" | |
| version = "0.1.0" | |
| edition = "2024" | |
| [dependencies] | |
| # keep-sorted start | |
| aes = "0.9.3" | |
| aes-gcm = "0.11.1" | |
| aes-gcm-siv = "0.12.1" | |
| ansi_term = "0.12.0" | |
| anyhow = "1.0.104" | |
| arbitrary = { version = "1.5.0", features = ["derive"] } | |
| arc-swap = { version = "1.9.3", features = ["weak"] } | |
| argh = "0.1.19" | |
| argh_complete = "0.1.19" | |
| arrayref = "0.3.9" | |
| arrayvec = "0.7.8" | |
| ash = { version = "0.38.0", features = ["linked"], default-features = false } | |
| assert_matches = "1.5.0" | |
| async-channel = "2.5.0" | |
| async-lock = "3.4.2" | |
| async-ringbuf = "0.3.10" | |
| async-stream = "0.3.6" | |
| async-trait = "0.1.92" | |
| base64 = "0.23.1" | |
| bincode = "1.3.3" | |
| bit-set = "0.11.1" | |
| bit-vec = { version = "0.10.1", features = [ "serde" ] } | |
| bitfield = "0.20.0" | |
| bitflags = { version = "2.13.2", features = ["serde", "std"] } | |
| blocking = "1.7.0" | |
| bstr = { version = "1.13.1", default-features = false, features = [ "std" ] } | |
| bt-bass = { version = "0.0.1", features = ["test-utils"] } | |
| bt-broadcast-assistant = { version = "0.0.1", features = ["debug"] } | |
| bt-common = "0.0.1" | |
| bt-gatt = "0.0.1" | |
| bt-pacs = "0.0.1" | |
| bt-vcs = "0.0.1" | |
| bumpalo = { version = "3.20.3", features = [ "collections" ] } | |
| byteorder = "1.5.0" | |
| bytes = "1.12.1" | |
| camino = { version = "1.2.6", features = ["proptest1", "serde1"] } | |
| cbc = "0.2.1" | |
| cfg-if = "1.0.5" | |
| chacha20 = { version = "0.10.2", features = ["rng"] } | |
| # NB: morally we'd like to default-features = false here, but we have | |
| # transitive dependencies on this crate that *do* enable default features. | |
| # Cargo does something called "feature unification" | |
| # (https://doc.rust-lang.org/cargo/reference/features.html#feature-unification) | |
| # which causes a particular crate to be compiled with the superset of all | |
| # features requested of it by any of its dependents. In this case, that means | |
| # we get chrono with its default dependencies regardless of what we write here | |
| # so long as any of our dependencies themselves depend on chrono with its | |
| # default dependencies. In particular, an old version of the time crate is an | |
| # optional dependency of chrono that is enabled by default; we don't want to | |
| # write default-features = false here lest we prevent some unrelated crate | |
| # upgrade by causing it to unexpectedly remove features we ourselves rely on. | |
| # | |
| # The sanity of this behavior is debated in | |
| # https://github.com/rust-lang/cargo/issues/4463. Until there's an escape | |
| # hatch, all we can do is document and shed a silent tear while we wait for the | |
| # ecosystem to migrate away from time 0.1. | |
| chrono = { version = "0.4.45", default-features = false } | |
| chrono-english = "0.2.1" | |
| ciborium = { version = "0.2.2", features = ["std"] } | |
| cipher = "0.5.2" | |
| clap = { version = "4.6.7", default-features = false, features = ["std", "help", "usage", "error-context", "suggestions", "derive"] } | |
| cmac = "0.8" | |
| cpio = "0.4.1" | |
| crc = "3.4.0" | |
| crc32fast = "1.5.3" | |
| criterion = { version = "0.8.2", default-features = false, features = ["csv_output", "cargo_bench_support"] } | |
| crossbeam = "0.8.5" | |
| crossbeam-utils = "0.8.23" | |
| csv = "1.4.0" | |
| darling = "0.24.1" | |
| data-encoding = "2.11.1" | |
| derivative = { version = "2.2.0", features = ["use_core"] } | |
| derive_builder = "0.20.2" | |
| difference = "2.0.0" | |
| digest = "0.11.3" | |
| downcast-rs = "2.0.2" | |
| dyn-clone = "1.0.20" | |
| ecb = "0.2" | |
| either = "1.19.0" | |
| emboss_runtime = "0.1.0" | |
| enumn = "0.1.14" | |
| eui48 = { version = "1.1.0", default-features = false, features = ["serde", "disp_hexstring"] } | |
| event-listener = "5.4.2" | |
| fatfs = "0.3.6" | |
| figment = "0.10.19" | |
| flate2 = { version = "1.1.10", default-features = false, features = ["rust_backend"] } | |
| flyweights = { version = "0.1.5", features = ["serde"] } | |
| foreign-types = "0.3.1" | |
| fragile = "3.0.0" | |
| futures = "=0.3.34" | |
| futures-executor = "=0.3.34" | |
| futures-io = "=0.3.34" | |
| futures-lite = "2.6.1" | |
| futures-test = "=0.3.34" | |
| futures-util = "=0.3.34" | |
| glob = "0.3.4" | |
| googletest = "0.14.3" | |
| gpt = "4.1.0" | |
| half = "2.7.1" | |
| handlebars = "6.4.4" | |
| hashbrown = { version = "0.17.1", default-features = false, features = ["inline-more", "serde", "default-hasher"] } | |
| heck = { package = "heck", version = "0.5" } | |
| heck-0_3 = { package = "heck", version = "=0.3.3" } | |
| hex = { version = "0.4.3", features = ["serde"] } | |
| hkdf = "0.13.0" | |
| hkdf_0_12 = { package = "hkdf", version = "0.12.4" } | |
| hmac = "0.13.0" | |
| hmac-0_12 = { package = "hmac", version = "0.12.1", features = ["reset"] } | |
| hound = "3.5.1" | |
| http = "1" | |
| http-body = "1" | |
| http-body-util = "0.1" | |
| humansize = "2.1.3" | |
| # TODO(https://fxbug.dev/100964): We intentionally did not enable http2, since we're | |
| # currently not using it on Fuchsia. Please see this ticket if you want to | |
| # enable it. | |
| hyper = { version = "1", default-features = false, features = ["client", "http1", "server"] } | |
| hyper-util = { version = "0.1", default-features = false, features = ["client", "http1", "service", "server"] } | |
| indexmap = { version = "2.14.2", features = ["serde"] } | |
| iota = "0.2.3" | |
| itertools = "0.15" | |
| itoa = "1.0" | |
| json5format = "0.2.6" | |
| libc = { version = "0.2.190", features = ["extra_traits"] } | |
| libm = "0.2.16" | |
| linked-hash-map = "0.5.6" | |
| lock_api = { version = "0.4.14", features = ["serde"] } | |
| log = { version = "0.4.34", features = ["kv", "std"] } | |
| lru = "0.19.0" | |
| macro_rules_attribute = "0.2.3" | |
| maplit = "1.0" | |
| maybe-owned = "0.3.4" | |
| md-5 = "0.11.0" | |
| memchr = "2.8.3" | |
| memoffset = "0.9.1" | |
| metrics = "0.24.6" | |
| mockall = "0.15" | |
| munge = "0.4.7" | |
| nix = { version = "0.31.3", features = ["feature", "fs", "hostname", "net", "process", "signal", "user"] } | |
| nom = { version = "8.0.0", default-features = false, features = ["std"] } | |
| nom-language = "0.1.0" | |
| nom_locate = "5.0.0" | |
| num-bigint = "0.5.1" | |
| num-derive = "0.5.1" | |
| num-integer = "0.1.47" | |
| num-rational = { version = "0.4.2", default-features = false } | |
| num-traits = "0.2.19" | |
| omaha_client = "0.4.1" | |
| once_cell = "1.21.4" | |
| p256 = { version = "0.14.0", features = ["ecdh", "pem", "serde"] } | |
| paste = "1.0.15" | |
| pathdiff = { version = "0.2.3", features = ["camino"] } | |
| pem = "4.0.0" | |
| percent-encoding = "2.3.2" | |
| pest = "2.9.2" | |
| pest_derive = "2.9.2" | |
| phf = { version = "0.14.0", default-features = false, features = ["macros"] } | |
| pin-init = { version = "0.3.0", default-features = false } | |
| pin-project = "1.1" | |
| pin-project-lite = "0.2.17" | |
| pin-weak = "1.1.0" | |
| png = "0.18" # saved for future use | |
| pretty = "0.12.5" | |
| pretty_assertions = "1.4.1" | |
| prettytable-rs = "0.10.0" | |
| proptest = "1.11.0" | |
| proptest-derive = "0.9.0" | |
| prost = "0.14.4" | |
| prost-build = "0.14.4" | |
| rand = "0.10.3" | |
| rand_core = "0.10.1" | |
| rand_xorshift = "0.5.0" | |
| range-alloc = "0.1.5" | |
| # NOTE: Use caution when updating to a new major version of `rapidhash` as this may cause hash | |
| # values to change. We rely on this crate for stable hashes. | |
| rapidhash = { version = "1.4.0", features = ["unsafe"] } | |
| rayon = "1.12.0" | |
| ref-cast = "1.0.27" | |
| regex = "1.13.1" | |
| regex-lite = "0.1.9" | |
| ring = "0.17.14" | |
| rkyv = { version = "0.8.18", features = ["little_endian", "unaligned", "pointer_width_32"] } | |
| rsa = { version = "0.9.10", default-features = false } | |
| rustc-hash = "2.1.3" | |
| rustls = { version = "0.23.46", default-features = false, features = ["ring", "std", "logging", "tls12"] } | |
| rustls-pemfile = "2" | |
| rustls-webpki = { version = "0.103.16", features = ["ring", "std"] } | |
| rustyline = "19.0.0" | |
| rutabaga_gfx = { version = "0.1.85", features = ["gfxstream"] } | |
| sapphire-async = { version = "0.1.0", features = ["std", "testing"] } | |
| sapphire-buffer = { version = "0.1.0", features = ["std"] } | |
| sapphire-collections = { version = "0.1.0", features = ["std"] } | |
| sapphire-common = "0.1.0" | |
| sapphire-emboss = "0.1.0" | |
| sapphire-gap = "0.1.0" | |
| sapphire-gatt = "0.1.0" | |
| sapphire-hci = "0.1.0" | |
| sapphire-host = "0.1.0" | |
| sapphire-rpc-macro = "0.1.0" | |
| sapphire-sync = { version = "0.1.0", features = ["std"] } | |
| schemars = { version = "1.2.3", features = ["chrono04", "preserve_order"] } | |
| scopeguard = "1.2.0" | |
| serde = { version = "1.0.229", features = ["derive"] } | |
| serde_derive = "1.0.229" | |
| serde_json = "1.0.154" | |
| serde_json5 = "0.2.1" | |
| serde_repr = "0.1.21" | |
| sha1 = "0.11.0" | |
| sha1-0_10 = { package = "sha1", version = "0.10.7" } | |
| sha2 = "0.11.1" | |
| sha2-0_10 = { package = "sha2", version = "0.10.9" } | |
| # TODO(https://fxbug.dev/385403698): add a visibility allowlist to prevent unintended usage when | |
| # targetting fuchsia. | |
| simplelog = { version = "0.12.2", default-features = false } | |
| siphasher = "1.0.4" | |
| slab = "0.4.12" | |
| smallbox = "0.8.9" | |
| smallvec = {version= "1.16.3", features = ["const_generics", "const_new", "union"]} | |
| socket2 = { version = "=0.6.5", features = ["all"] } | |
| splines = "5.0.0" | |
| static_assertions = "1.1.0" | |
| strsim = "0.11.1" | |
| strum = "0.28.0" | |
| strum_macros = "0.28.0" | |
| tar = "0.4.46" | |
| tempfile = "3.2" | |
| termcolor = "1.4.1" | |
| termion = "4.0.6" | |
| test-case = "3.4.0" | |
| textwrap = { version = "0.16.4", default-features = false } | |
| thiserror = "2.0.21" | |
| tokio-rustls = { version = "0.26", default-features = false, features = ["ring", "logging", "tls12"] } | |
| toml = "1.1.8" | |
| toml_edit = "0.25.17+spec-1.1.0" | |
| tower-service = "0.3" | |
| tracing = { version = "0.1.44", default-features = false, features = ["std", "attributes", "log"] } | |
| tracing-mutex = { version = "0.3.3", features = ["experimental", "lockapi", "parkinglot"] } | |
| tuf = { path = "forks/tuf-0.3.0-beta14", default-features = false, features = ["hyper"] } | |
| typed-builder = "0.23.2" | |
| unic-char-range = "0.9" | |
| unic-ucd-block = "0.9" | |
| unicase = "2.10.0" | |
| unicode-segmentation = "1.13.3" | |
| unicode-width = "0.2.2" | |
| unicode-xid = "0.2.6" | |
| untrusted = "0.9" | |
| uom = "0.38.0" | |
| url = { version = "2.5.8", features = ["serde"] } | |
| utf8parse = "0.2.2" | |
| uuid = { version = "1.28.0", features = ["serde", "v4"] } | |
| valico = "4.0.0" | |
| vt100 = "0.16.2" | |
| vte = "0.15" | |
| walkdir = "2.5.0" | |
| which = "8.0.6" | |
| winnow = "1.0.4" | |
| xml = "1.4.0" | |
| zerocopy = { version = "0.8.63", features = ["alloc", "derive", "simd", "std"] } | |
| zerotrie = { version = "0.2.5", features = ["alloc"] } | |
| zstd = "0.14.3" | |
| zstd-safe = "8.2.0" | |
| # keep-sorted end | |
| # Kernel dependencies | |
| [target.'cfg(kernel)'.dependencies] | |
| # keep-sorted start | |
| bitflags = { version = "2.13.2", default-features = false } | |
| lock_api = { version = "0.4.14", default-features = false } | |
| num-traits = { version = "0.2.19", default-features = false } | |
| paste = "1.0.15" | |
| pin-init = { version = "0.3.0", default-features = false } | |
| rand = { version = "0.10.3", default-features = false } | |
| zerocopy = { version = "0.8.63", features = ["derive"] } | |
| # keep-sorted end | |
| # Target-side only dependencies | |
| [target.'cfg(target_os = "fuchsia")'.dependencies] | |
| # keep-sorted start | |
| coset = { version = "0.4.2", features = ["std"] } | |
| # do not add back without verifying certificate transparency is ready to use - see https://fxbug.dev/25100 | |
| # ct-logs = "0.6" | |
| der = { version = "0.8.2", features = ["alloc", "derive", "flagset", "oid", "zeroize"] } | |
| der-0_7_10 = { package = "der", version = "0.7.10", features = ["alloc", "derive", "flagset", "oid", "zeroize"] } | |
| euclid = { version = "0.22.14", features = [ "serde" ] } | |
| flagset = "0.4.7" | |
| getopts = "0.2" | |
| hickory-net = { version = "0.26.3", default-features = false } | |
| # TODO(https://fxbug.dev/42084779): Remove empty/critical-section and once_cell remove_features when upgrading to >= 0.26.4. | |
| hickory-proto = { version = "0.26.3", default-features = false } | |
| hickory-resolver = { version = "0.26.3", default-features = false, features = ["metrics"] } | |
| hyper-rustls = { version = "0.27.9", default-features = false, features = ["ring", "http1", "tls12"] } | |
| mock-omaha-server = "0.5.0" | |
| openat = "0.1.21" | |
| openssl = { version = "0.10.81", features = ["unstable_boringssl"] } | |
| pkcs1 = "0.7.5" | |
| pkcs8 = "0.11.0" | |
| pkcs8-0_10_2 = { package = "pkcs8", version = "0.10.2" } | |
| rust_icu_common = { version = "5.8.0", default-features = false, features = ["renaming"] } | |
| rust_icu_sys = { version = "5.8.0", default-features = false, features = ["renaming", "icu_version_in_env"] } | |
| rust_icu_ucal = { version = "5.8.0", default-features = false, features = ["renaming", "icu_version_in_env"] } | |
| rust_icu_udat = { version = "5.8.0", default-features = false, features = ["renaming", "icu_version_in_env"] } | |
| rust_icu_udata = { version = "5.8.0", default-features = false, features = ["renaming", "icu_version_in_env"] } | |
| rust_icu_uloc = { version = "5.8.0", default-features = false, features = ["renaming", "icu_version_in_env"] } | |
| rust_icu_ustring = { version = "5.8.0", default-features = false, features = ["renaming", "icu_version_in_env"] } | |
| sec1 = { version = "0.8.1", features = ["alloc", "der", "zeroize"] } | |
| sec1-0_7_3 = { package = "sec1", version = "0.7.3", features = ["alloc", "der", "pkcs8", "zeroize"] } | |
| spki = { version = "0.8.1", features = ["alloc"] } | |
| spki-0_7_3 = { package = "spki", version = "0.7.3", features = ["alloc"] } | |
| tokio = { version = "=1.54.1", default-features = false } | |
| trust-dns-proto = { version = "0.22.0", default-features = false, features = ["testing"] } | |
| trust-dns-resolver = { version = "0.22.0", default-features = false, features = ["testing"] } | |
| ttf-parser = "0.25.1" | |
| unicode-normalization = "0.1" | |
| vk-sys = "0.7.0" | |
| x509-cert = "0.3.0" | |
| x509-cert-0_2_5 = { package = "x509-cert", version = "0.2.5" } | |
| zeroize = "1.9.0" | |
| # keep-sorted end | |
| # Host-side only dependencies | |
| [target.'cfg(not(target_os = "fuchsia"))'.dependencies] | |
| # keep-sorted start | |
| askama = "0.16.1" | |
| async-fs = "2.2.0" | |
| cargo_metadata = "0.23.1" | |
| crossterm = { version = "0.29.0", default-features = false, features = ["events"] } | |
| fuse3 = { version = "0.9.0", features = ["tokio-runtime", "unprivileged"] } | |
| home = "0.5.12" | |
| hyper-rustls = { version = "0.27", default-features = false, features = ["http1", "rustls-native-certs", "ring", "tls12"] } | |
| indoc = "2.0.8" | |
| loom = { version = "0.7.2", features = ["checkpoint", "futures"] } | |
| # TODO(https://fxbug.dev/106164) Remove this explicit mio dependency when it can be | |
| # pulled in automatically by tokio | |
| mio = { version = "=1.2.4", features = ["net", "os-ext", "os-poll"] } | |
| mock-omaha-server = { version = "0.5.0", features = ["tokio"] } | |
| notify = { version = "8.2.0", default-features = false, features = ["macos_fsevent"] } | |
| # TODO(https://fxbug.dev/106164) Remove this explicit num_cpus dependency when it can be | |
| # pulled in automatically by tokio | |
| num_cpus = "1.17.0" | |
| # See b/42169853, not used for target-side code to avoid system-wide impact of yield in spinloops. | |
| parking_lot = "0.12.5" | |
| parking_lot_core = "0.9.12" | |
| petgraph = { version = "0.6.2" } | |
| proc-macro2 = { version = "1.0.107", features = ["span-locations"] } | |
| pulldown-cmark = { version = "0.13.5", features = ["serde"] } | |
| quote = "1.0.47" | |
| rustfix = "0.9.8" | |
| rustls-native-certs = "0.8.5" | |
| semver = "1.0.28" | |
| serde_yaml = "0.9.34+deprecated" # To use on Fuchsia, serde_yaml and unsafe-libyaml will need to be re-audited. | |
| serial_test = "4.0.1" # Not for use on Fuchsia, only for a single process. | |
| shared_child = { version = "1.1.2", default-features = false } | |
| signal-hook = "0.4.5" | |
| syn = { version = "3.0.9", features = ["full", "visit", "visit-mut", "extra-traits"] } | |
| synstructure = "0.14.0" | |
| term_grid = "0.2.0" | |
| # TODO(https://fxbug.dev/106164) Enable the "rt" and "net" features here once gnaw | |
| # supports target-specific feature resolution | |
| tokio = { version = "=1.54.1", default-features = false } | |
| tokio-stream = "0.1.19" | |
| xattr = "1.6.1" | |
| zip = { version = "9.0.5", default-features = false, features = ["deflate-flate2"] } | |
| # keep-sorted end | |
| # For crates we don't want to vendor, follow instructions at | |
| # //docs/development/languages/rust/external_crates.md. | |
| [patch.crates-io] | |
| ### In-tree Crates: crates which are on crates.io but which we build from our in-tree copy | |
| # keep-sorted start | |
| bssl-sys = { path = "intree/bssl-sys" } | |
| emboss_runtime = { path = "intree/emboss_runtime" } | |
| fuchsia-cprng = { path = "intree/fuchsia-cprng" } | |
| sapphire-async = { path = "intree/sunstone/sapphire-async" } | |
| sapphire-buffer = { path = "intree/sunstone/sapphire-buffer" } | |
| sapphire-collections = { path = "intree/sunstone/sapphire-collections" } | |
| sapphire-common = { path = "intree/sunstone/sapphire-common" } | |
| sapphire-emboss = { path = "intree/sunstone/sapphire-emboss" } | |
| sapphire-gap = { path = "intree/sunstone/sapphire-gap" } | |
| sapphire-gatt = { path = "intree/sunstone/sapphire-gatt" } | |
| sapphire-hci = { path = "intree/sunstone/sapphire-hci" } | |
| sapphire-host = { path = "intree/sunstone/sapphire-host" } | |
| sapphire-rpc-macro = { path = "intree/sunstone/sapphire-rpc-macro" } | |
| sapphire-sync = { path = "intree/sunstone/sapphire-sync" } | |
| # keep-sorted end | |
| ### Ask to Patch: crates which require a policy exception to contribute to. | |
| # keep-sorted start | |
| aho-corasick = { path = "ask2patch/aho-corasick" } | |
| byteorder = { path = "ask2patch/byteorder" } | |
| csv = { path = "ask2patch/csv" } | |
| csv-core = { path = "ask2patch/csv-core" } | |
| memchr = { path = "ask2patch/memchr" } | |
| same-file = { path = "ask2patch/same-file" } | |
| termcolor = { path = "ask2patch/termcolor" } | |
| walkdir = { path = "ask2patch/walkdir" } | |
| # keep-sorted end | |
| ### Empty Forks: empty forks kept only for satisfying cargo's resolution | |
| # keep-sorted start | |
| android_system_properties = { path = "empty/android_system_properties" } | |
| borsh = { path = "empty/borsh" } | |
| cc = { path = "empty/cc" } | |
| cfg_aliases = { path = "empty/cfg_aliases"} | |
| clipboard-win = { path = "empty/clipboard-win" } | |
| core-foundation-sys = { path = "empty/core-foundation-sys" } | |
| # TODO(https://fxbug.dev/42084779): Remove when hickory-proto is upgraded to >= 0.26.4. | |
| critical-section = { path = "empty/critical-section" } | |
| crunchy = { path = "empty/crunchy" } | |
| document-features = { path = "empty/document-features" } | |
| hermit-abi = { path = "empty/hermit-abi" } | |
| iana-time-zone-haiku = { path = "empty/iana-time-zone-haiku" } | |
| jni = { path = "empty/jni" } | |
| js-sys-102 = { package = "js-sys", path = "empty/js-sys-102" } | |
| kqueue = { path = "empty/kqueue" } | |
| pkg-config = { path = "empty/pkg-config" } | |
| portable-atomic = { path = "empty/portable-atomic" } | |
| portable-atomic-util = { path = "empty/portable-atomic-util" } | |
| r-efi = { path = "empty/r-efi" } | |
| r-efi-6 = { package = "r-efi", path = "empty/r-efi-6" } | |
| rustversion = { path = "empty/rustversion" } | |
| security-framework-3 = { package = "security-framework", path = "empty/security-framework-3" } | |
| vcpkg = { path = "empty/vcpkg" } | |
| wasi-0_11_0_preview1 = { path = "empty/wasi-0.11.0-wasi-snapshot-preview1", package = "wasi" } | |
| wasip2 = { path = "empty/wasip2" } | |
| wasm-bindgen-125 = { package = "wasm-bindgen", path = "empty/wasm-bindgen-125" } | |
| winapi = { path = "empty/winapi" } | |
| winapi-util = { path = "empty/winapi-util" } | |
| windows-core-0_62_2 = { package = "windows-core", path = "empty/windows-core-0.62.2" } | |
| windows-link-0_2_1 = { package = "windows-link", path = "empty/windows-link-0.2.1" } | |
| windows-result-0_3_4 = { package = "windows-result", path = "empty/windows-result-0.3.4" } | |
| windows-sys-0_52_0 = { package = "windows-sys", path = "empty/windows-sys-0.52.0" } | |
| windows-sys-0_60_2 = { package = "windows-sys", path = "empty/windows-sys-0.60.2" } | |
| windows-sys-0_61_2 = { package = "windows-sys", path = "empty/windows-sys-0.61.2" } | |
| zlib-rs = { path = "empty/zlib-rs" } | |
| # keep-sorted end | |
| ### Forks: vendored crates whose code doesn't match the upstream version | |
| # keep-sorted start | |
| anes = { path = "forks/anes-0.1.6" } | |
| bt-bap = { path = "forks/bluetooth/bt-bap" } | |
| bt-bass = { path = "forks/bluetooth/bt-bass" } | |
| bt-broadcast-assistant = { path = "forks/bluetooth/bt-broadcast-assistant" } | |
| bt-common = { path = "forks/bluetooth/bt-common" } | |
| bt-gatt = { path = "forks/bluetooth/bt-gatt" } | |
| bt-pacs = { path = "forks/bluetooth/bt-pacs" } | |
| bt-vcs = { path = "forks/bluetooth/bt-vcs" } | |
| errno = { path = "forks/errno-0.3.14" } | |
| fatfs = { path = "forks/fatfs" } | |
| fuse3 = { path = "forks/fuse3" } | |
| libc = { path = "forks/libc-0.2.190" } | |
| nix_0_29_0 = { package = "nix", path = "forks/nix-0.29.0" } | |
| nom-language = { package = "nom-language", path = "forks/nom-language-0.1.0" } | |
| notify = { path = "forks/notify" } | |
| num-bigint-dig = { path = "forks/num-bigint-dig" } | |
| # rust-openssl carries a patch: | |
| # https://github.com/sfackler/rust-openssl/pull/2371 rejected upstream waiting to be inlined into KeyMint (https://fxbug.dev/398863191) | |
| openssl = { path = "forks/openssl-0.10.81" } | |
| petgraph = { path = "forks/petgraph-0.8.3" } | |
| pin-init = { path = "forks/pin-init" } | |
| prettytable-rs = { path = "forks/prettytable-rs" } | |
| #pulldown-cmark = { path = "forks/pulldown-cmark" } | |
| # Fork of `rapidhash` has quality benchmarks removed; see forks/rapidhash-1.4.0/README.fuchsia. | |
| rapidhash = { path = "forks/rapidhash-1.4.0" } | |
| semver = { path = "forks/semver-1.0.28" } | |
| tracing-core = { path = "forks/tracing-core" } | |
| tracing-mutex = { path = "forks/tracing-mutex-0.3.3" } | |
| trait-make = { path = "forks/trait-make" } | |
| trust-dns-proto = { path = "forks/trust-dns-proto-0.22.0" } | |
| trust-dns-resolver = { path = "forks/trust-dns-resolver-0.22.0" } | |
| valico = { path = "forks/valico-4.0.0" } | |
| vt100 = { path = "forks/vt100-0.16.2" } | |
| zeroize = { path = "forks/zeroize" } | |
| zstd-sys = { path = "forks/zstd-sys" } | |
| # keep-sorted end | |
| ### Mirrors: forked crates managed as separate git repos | |
| # keep-sorted start | |
| # keep-sorted end | |
| ################################################################################# | |
| ### Cargo GNaw Configs ### | |
| ### ### | |
| ### See GNaw's documentation in //tools/cargo-gnaw/README.md for more details ### | |
| ### and examples. ### | |
| ################################################################################# | |
| # IMPORTANT: The expression ${gn_source_root} must be used to reference | |
| # a path to the root source directory relative to the current directory | |
| # (which would be the Ninja build directory in the case of Fuchsia). | |
| # | |
| # Apart from that, it is ok to use relative paths with any number of ../ in them | |
| # as long as these are relative to source locations instead. | |
| # | |
| # Global GN configs that will be added or removed from all generated targets | |
| [gn.config] | |
| remove_cfgs = [ | |
| # Fuchsia forces targets to comply with 2018 idioms. third_party can ignore this | |
| "//build/config/rust:2018_idioms", | |
| ] | |
| add_cfgs = [] | |
| # The min_publish_age (given in days) is intended to ensure a minimum bake time | |
| # for new crates. Note that the first run of 'fx update-rustc-third-party' | |
| # after adding this config will cause it to take O(minutes) to fetch all the | |
| # timestamps for the vendored crates over the network. For subsequent runs, the | |
| # slowdown is barely noticeable. | |
| min_publish_age = 14 | |
| require_licenses = true | |
| ################################################################################# | |
| # Per-package config | |
| ################################################################################# | |
| # The below config data is for the targets being used by cargo-gnaw. This | |
| # provides custom input that is usually provided by build.rs scripts. If the | |
| # build.rs script is simple enough, | |
| # cargo-gnaw will suggest what to put in here. if not, usually reading the | |
| # build.rs script is sufficient. | |
| # | |
| # Some dependencies have build scripts but do not actually requiring setting any | |
| # config here. cargo-gnaw still requires an empty config section to acknowledge | |
| # the presence of the build script. | |
| # | |
| # Some dependencies do not have build scripts but make use of environment | |
| # variables normally populated by cargo, those can be configured here as well. | |
| # | |
| # Keep this sorted alphabetically, please. | |
| [gn] | |
| # Crates which only have a subset of features audited and approved for use. See individual package | |
| # configs for approved features. | |
| require_feature_reviews = [ | |
| "bitflags", | |
| "bstr", | |
| "tokio", | |
| ] | |
| [gn.package.adler2."2.0.1"] | |
| license_files = ["LICENSE-APACHE"] | |
| [gn.package.aes."0.9.3"] | |
| license_files = ["LICENSE-APACHE"] | |
| [gn.package.ahash."0.8.12".platform."cfg(any(target_arch = \"x86_64\", target_arch = \"aarch64\", target_arch = \"mips64\", target_arch = \"powerpc64\", target_arch = \"riscv64gc\", target_arch = \"s390x\"))"] | |
| rustflags = [ "--cfg=feature=\\\"folded_multiply\\\"" ] | |
| [gn.package.alloca."0.4.0"] | |
| deps = [ "//third_party/rust_crates/compat/alloca-0.4.0:alloca-c" ] | |
| [gn.package.anyhow."1.0.104"] | |
| rustflags = [ | |
| "--cfg=std_backtrace", | |
| # TODO(https://github.com/rust-lang/rust/pull/99301): uncomment when generic member access is stable | |
| # "--cfg=error_generic_member_access", | |
| ] | |
| license_files = ["LICENSE-APACHE"] | |
| [gn.package.arbitrary."1.5.0"] | |
| license_files = ["LICENSE-APACHE"] | |
| [gn.package.ash."0.38.0+1.3.281"] | |
| rustflags = [] | |
| [gn.package.async-trait."0.1.92"] | |
| rustflags = [] | |
| [gn.package.async-ringbuf."0.3.10"] | |
| configs = [ | |
| "//third_party/rust_crates/configs/release:optimize_speed", | |
| "//third_party/rust_crates/configs/balanced:optimize_moderate" | |
| ] | |
| [gn.package.basic-toml."0.1.10"] | |
| env_vars = [ | |
| "CARGO_PKG_VERSION_MAJOR=0", | |
| "CARGO_PKG_VERSION_MINOR=1", | |
| "CARGO_PKG_VERSION_PATCH=10", | |
| ] | |
| [gn.package.bincode."1.3.3"] | |
| group_visibility = { import = "//third_party/rust_crates/visibility.gni", variable = "bincode_visibility" } | |
| [gn.package.bitflags."1.3.2"] | |
| reviewed_features = ["default"] | |
| [gn.package.bitflags."2.13.2"] | |
| reviewed_features = [ "serde", "serde_core", "std" ] | |
| [gn.package.bssl-macros."0.1.0"] | |
| existing_gn_target = "//third_party/boringssl/rust:bssl-macros" | |
| [gn.package.bssl-sys."0.1.0"] | |
| existing_gn_target = "//third_party/boringssl/rust:bssl-sys" | |
| # The unicode feature is excluded so we don't need to spend time auditing it. | |
| [gn.package.bstr."1.13.1"] | |
| reviewed_features = [ "std", "alloc" ] | |
| [gn.package.camino."1.2.6"] | |
| rustflags = [ | |
| "--cfg=absolute_path", | |
| "--cfg=os_str_bytes", | |
| "--cfg=os_string_pathbuf_leak", | |
| "--cfg=path_add_extension", | |
| "--cfg=path_buf_deref_mut", | |
| "--cfg=pathbuf_const_new", | |
| "--cfg=try_reserve_2", | |
| ] | |
| [gn.package.crc-catalog."2.5.0"] | |
| license_files = ["LICENSES/Apache-2.0.txt"] | |
| [gn.package.crc32fast."1.5.3"] | |
| rustflags = ["--cfg=stable_arm_crc32_intrinsics"] | |
| [gn.package.criterion."0.8.2"] | |
| env_vars = [ | |
| "CARGO_PKG_VERSION_MAJOR=0", | |
| "CARGO_PKG_VERSION_MINOR=8", | |
| "CARGO_PKG_VERSION_PATCH=2", | |
| ] | |
| [gn.package.crossbeam-deque."0.8.8"] | |
| rustflags = [] | |
| [gn.package.crossbeam-epoch."0.9.21"] | |
| rustflags = [] | |
| [gn.package.crossbeam-utils."0.8.23"] | |
| rustflags = [] | |
| [gn.package.der."0.7.10"] | |
| groups = [ | |
| { name = "der-0.7" } | |
| ] | |
| [gn.package.emboss_runtime."0.1.0"] | |
| existing_gn_target = "//third_party/github.com/google/experimental-emboss-rust:emboss_runtime" | |
| [gn.package.euclid."0.22.14"] | |
| license_files = ["LICENSE-APACHE"] | |
| [gn.package.sapphire-async."0.1.0"] | |
| uses_fuchsia_license = true | |
| tests = true | |
| [gn.package.sapphire-buffer."0.1.0"] | |
| uses_fuchsia_license = true | |
| tests = true | |
| [gn.package.sapphire-collections."0.1.0"] | |
| uses_fuchsia_license = true | |
| tests = true | |
| [gn.package.sapphire-common."0.1.0"] | |
| uses_fuchsia_license = true | |
| tests = true | |
| [gn.package.sapphire-emboss."0.1.0"] | |
| existing_gn_target = "//src/connectivity/bluetooth/sunstone/sapphire-emboss" | |
| [gn.package.sapphire-gap."0.1.0"] | |
| uses_fuchsia_license = true | |
| tests = true | |
| [gn.package.sapphire-gatt."0.1.0"] | |
| uses_fuchsia_license = true | |
| tests = true | |
| [gn.package.sapphire-hci."0.1.0"] | |
| uses_fuchsia_license = true | |
| tests = true | |
| [gn.package.sapphire-host."0.1.0"] | |
| uses_fuchsia_license = true | |
| tests = true | |
| [gn.package.sapphire-rpc-macro."0.1.0"] | |
| uses_fuchsia_license = true | |
| [gn.package.sapphire-sync."0.1.0"] | |
| uses_fuchsia_license = true | |
| tests = true | |
| [gn.package.figment."0.10.19"] | |
| rustflags = [] | |
| # generator has not gone through a thorough safety review yet, and needs to be | |
| # re-reviewed before it can be used outside of tests. | |
| [gn.package.generator."0.8.11"] | |
| visibility = [ | |
| "//third_party/rust_crates/compat/icu:*", | |
| ":loom-v0_7_2.actual", | |
| ":loom-v0_7_2.rustdoc", | |
| ":loom-v0_7_2.aux.deps.deps", | |
| ":loom-v0_7_2.aux.deps.transdeps", | |
| ":loom-v0_7_2.actual.rust_compilation_deps", | |
| ] | |
| testonly = true | |
| [gn.package.generic-array."0.14.9"] | |
| rustflags = [ "--cfg=relaxed_coherence" ] | |
| [gn.package.getrandom."0.2.17"] | |
| env_vars = [ "CARGO_PKG_NAME=getrandom", "CARGO_PKG_VERSION=0.2.17", "CARGO_MANIFEST_DIR=${gn_source_root}/third_party/rust_crates/vendor/getrandom-0.2.17" ] | |
| rustflags = [] | |
| [gn.package.getrandom."0.3.4"] | |
| env_vars = [ "CARGO_PKG_NAME=getrandom", "CARGO_PKG_VERSION=0.3.4", "CARGO_MANIFEST_DIR=${gn_source_root}/third_party/rust_crates/vendor/getrandom-0.3.4" ] | |
| rustflags = [] | |
| [gn.package.getrandom."0.4.3"] | |
| env_vars = [ "CARGO_PKG_NAME=getrandom", "CARGO_PKG_VERSION=0.4.3", "CARGO_MANIFEST_DIR=${gn_source_root}/third_party/rust_crates/vendor/getrandom-0.4.3" ] | |
| rustflags = [] | |
| [gn.package.handlebars."6.4.4"] | |
| # pest relies on this being set to find the grammar file | |
| env_vars = [ "CARGO_MANIFEST_DIR=${gn_source_root}/third_party/rust_crates/vendor/handlebars-6.4.4" ] | |
| [gn.package.heck."0.3.3"] | |
| group_name = "heck-0_3" | |
| # TODO(https://fxbug.dev/402302539) starnix tests rely on the older semantics of to_camel_case() | |
| visibility = [ | |
| "//third_party/rust_crates/compat/icu:*", "//src/sys/test_runners/starnix:*", "//third_party/rust_crates:*" ] | |
| [gn.package.hickory-resolver."0.26.3"] | |
| env_vars = [ "CARGO_PKG_VERSION=0.26.3" ] | |
| [gn.package.hkdf."0.12.4"] | |
| groups = [ { name = "hkdf-0.12", visibility = [ ":*", "//src/microfuchsia/tee/runtime/api_impl:*", "//vendor/*" ] } ] | |
| [gn.package.hmac."0.12.1"] | |
| groups = [ { name = "hmac-0.12", visibility = [ ":*", "//src/microfuchsia/tee/runtime/api_impl:*" ] } ] | |
| [gn.package.hmac."0.13.0"] | |
| [gn.package.httparse."1.10.1"] | |
| rustflags = [ | |
| "--cfg=httparse_simd", | |
| "--cfg=httparse_simd_neon_intrinsics", | |
| ] | |
| [gn.package.icu_normalizer_data."2.4.0"] | |
| [gn.package.icu_properties_data."2.4.0"] | |
| [gn.package.indexmap."1.9.3"] | |
| rustflags = ["--cfg=has_std"] | |
| [gn.package.libc."0.2.190"] | |
| rustflags = [ | |
| "--cfg=libc_priv_mod_use", | |
| "--cfg=libc_union", | |
| "--cfg=libc_const_size_of", | |
| "--cfg=libc_align", | |
| "--cfg=libc_core_cvoid", | |
| "--cfg=libc_packedN", | |
| "--cfg=libc_cfg_target_vendor", | |
| "--cfg=libc_int128", | |
| "--cfg=libc_non_exhaustive", | |
| "--cfg=libc_long_array", | |
| "--cfg=libc_ptr_addr_of", | |
| "--cfg=libc_underscore_const_names", | |
| "--cfg=libc_const_extern_fn", | |
| ] | |
| [gn.package.libc."0.2.190".platform."cfg(target_os = \"freebsd\")"] | |
| rustflags = ["--cfg=freebsd11"] | |
| [gn.package.libm."0.2.16"] | |
| # Mirrors the cfgs that build.rs/configure.rs would emit. Only `arch_enabled` | |
| # applies to us: it is gated on the default `arch` feature with | |
| # `force-soft-floats` off, and enables the SSE2/NEON implementations of sqrt, | |
| # fma and rint. The remaining cfgs are gated on unstable features | |
| # (`intrinsics_enabled`, `f16_enabled`, `f128_enabled`), are unreferenced | |
| # outside of upstream's own tests (`optimizations_enabled`, `assert_no_panic`), | |
| # or can never be true for our targets (`x86_no_sse`, 32-bit x86 without SSE). | |
| rustflags = [ | |
| "--cfg=arch_enabled", | |
| ] | |
| # Math routines are hot in the callers that pull this in, so optimize them | |
| # accordingly. | |
| configs = [ | |
| "//third_party/rust_crates/configs/release:optimize_speed", | |
| "//third_party/rust_crates/configs/balanced:optimize_moderate", | |
| ] | |
| # Loom has not gone through a thorough safety review yet, and needs to be | |
| # re-reviewed before it can be used outside of tests. | |
| [gn.package.loom."0.7.2"] | |
| testonly = true | |
| [gn.package.md-5."0.11.0"] | |
| group_visibility = { import = "//third_party/rust_crates/visibility.gni", variable = "md5_visibility" } | |
| [gn.package.memoffset."0.9.1"] | |
| rustflags = ["--cfg=tuple_ty", "--cfg=allow_clippy", "--cfg=maybe_uninit", "--cfg=doctests", "--cfg=raw_ref_macros", "--cfg=stable_const", "--cfg=stable_offset_of"] | |
| [gn.package.mock-omaha-server."0.5.0"] | |
| tests = true | |
| rustflags = ["--cfg=export_testing_macro"] | |
| deps = [ | |
| "//src/lib/fuchsia-async", | |
| "//src/lib/fuchsia-hyper", | |
| "//third_party/rust_crates:argh", | |
| "//third_party/rust_crates:hyper-util", | |
| "//third_party/rust_crates:tokio", | |
| ] | |
| [gn.package.mock-omaha-server."0.5.0".binary.mock-omaha-server] | |
| output_name = "mock-omaha-server" | |
| [gn.package.inotify-sys."0.1.8"] | |
| # Has build script but no config needed. | |
| [gn.package.mockall."0.15.0"] | |
| # Has build script but no config needed. | |
| [gn.package.mockall_derive."0.15.0"] | |
| # Has build script but no config needed. | |
| [gn.package.nix."0.29.0"] | |
| group_visibility = { import = "//src/lib/fuchsia_nix/nix_visibility.gni", variable = "nix_visibility" } | |
| visibility = [ | |
| "//third_party/rust_crates/compat/icu:*",":*"] | |
| [gn.package.nix."0.29.0".platform."cfg(target_os = \"linux\")"] | |
| rustflags = [ | |
| "--cfg=linux", | |
| "--cfg=linux_android", | |
| ] | |
| [gn.package.nix."0.29.0".platform."cfg(target_os = \"freebsd\")"] | |
| rustflags = [ | |
| "--cfg=bsd", | |
| "--cfg=freebsd", | |
| "--cfg=freebsdlike", | |
| ] | |
| [gn.package.nix."0.29.0".platform."cfg(target_os = \"macos\")"] | |
| rustflags = [ | |
| "--cfg=apple_targets", | |
| "--cfg=bsd", | |
| "--cfg=macos", | |
| ] | |
| [gn.package.nix."0.31.3"] | |
| group_visibility = { import = "//src/lib/fuchsia_nix/nix_visibility.gni", variable = "nix_visibility" } | |
| visibility = [ | |
| "//third_party/rust_crates/compat/icu:*",":*"] | |
| [gn.package.nix."0.31.3".platform."cfg(target_os = \"linux\")"] | |
| rustflags = [ | |
| "--cfg=linux", | |
| "--cfg=linux_android", | |
| ] | |
| [gn.package.nix."0.31.3".platform."cfg(target_os = \"freebsd\")"] | |
| rustflags = [ | |
| "--cfg=bsd", | |
| "--cfg=freebsd", | |
| "--cfg=freebsdlike", | |
| ] | |
| [gn.package.nix."0.31.3".platform."cfg(target_os = \"macos\")"] | |
| rustflags = [ | |
| "--cfg=apple_targets", | |
| "--cfg=bsd", | |
| "--cfg=macos", | |
| ] | |
| [gn.package.num-bigint-dig."0.8.6"] | |
| rustflags = ["--cfg=has_i128"] | |
| [gn.package.num_cpus."1.17.0"] | |
| # We need to explicitly depend on num_cpus for tokio, but we're not exposing it | |
| # to first party code. | |
| visibility = [ | |
| "//third_party/rust_crates/compat/icu:*", ":*" ] | |
| [gn.package.num-rational."0.4.2"] | |
| rustflags = ["--cfg=has_int_exp_fmt"] | |
| [gn.package.num-traits."0.2.19"] | |
| rustflags = [ | |
| "--cfg=has_copysign", | |
| "--cfg=has_div_euclid", | |
| "--cfg=has_float_to_from_bytes", | |
| "--cfg=has_int_to_from_bytes", | |
| "--cfg=has_is_subnormal", | |
| "--cfg=has_leading_trailing_ones", | |
| "--cfg=has_reverse_bits", | |
| "--cfg=has_to_int_unchecked", | |
| "--cfg=has_total_cmp", | |
| ] | |
| [gn.package.once_cell."1.21.4"] | |
| group_visibility = { import = "//third_party/rust_crates/visibility.gni", variable = "once_cell_visibility" } | |
| # TODO(https://fxbug.dev/42084779): Remove when hickory-proto is upgraded to >= 0.26.4. | |
| remove_features = [ "critical-section", "portable-atomic" ] | |
| [gn.package.openssl."0.10.81"] | |
| group_visibility = { import = "//third_party/rust_crates/visibility.gni", variable = "openssl_visibility" } | |
| rustflags = ["--cfg=boringssl"] | |
| configs = ["//third_party/boringssl/rust:osslconf"] | |
| [gn.package.openssl-sys."0.9.117"] | |
| rustflags = ["--cfg=boringssl"] | |
| configs = ["//third_party/boringssl/rust:osslconf"] | |
| [gn.package.parking_lot."0.12.5"] | |
| # Funnel usage of parking_lot through fuchsia_sync. | |
| visibility = [ | |
| "//third_party/rust_crates/compat/icu:*","//src/lib/fuchsia-sync", "//third_party/rust_crates:*"] | |
| [gn.package.parking_lot_core."0.9.12"] | |
| rustflags = [] | |
| [gn.package.paste."1.0.15"] | |
| rustflags = [] | |
| [gn.package.pin-init."0.3.0"] | |
| license_files = ["LICENSE-APACHE", "LICENSE-MIT"] | |
| [gn.package.pin-init-internal."0.3.0"] | |
| license_files = ["LICENSE-APACHE", "LICENSE-MIT"] | |
| [gn.package.pkcs1."0.7.5"] | |
| groups = [ | |
| { name = "pkcs1", visibility = [ "//vendor/*" ] }, | |
| { name = "pkcs1-0.7", visibility = [ "//vendor/*" ] } | |
| ] | |
| [gn.package.pkcs8."0.10.2"] | |
| groups = [ | |
| { name = "pkcs8-0.10" }, | |
| ] | |
| [gn.package.prettyplease."0.2.37"] | |
| rustflags = [] | |
| # cargo-gnaw suggested "--cfg=proc_macro_span" as well but proc_macro_span is still an unstable feature. | |
| [gn.package.proc-macro2."1.0.107"] | |
| rustflags = ["--cfg=span_locations", "--cfg=wrap_proc_macro"] | |
| [gn.package.pulldown-cmark."0.13.5"] | |
| # Has build script but no config needed. | |
| [gn.package.quote."1.0.47"] | |
| # Has build script but no config needed. | |
| [gn.package.rand_chacha."0.3.1"] | |
| license_files = ["LICENSE-APACHE"] | |
| [gn.package.rand_core."0.6.4"] | |
| license_files = ["LICENSE-APACHE"] | |
| [gn.package.rayon-core."1.13.0"] | |
| # Has build script but no config needed. | |
| [gn.package.ref-cast."1.0.27"] | |
| rustflags = [] | |
| env_vars = [ | |
| "CARGO_PKG_VERSION_PATCH=27", | |
| "OUT_DIR=../../../compat/ref-cast", | |
| ] | |
| [gn.package.ref-cast-impl."1.0.27"] | |
| rustflags = [] | |
| env_vars = [ | |
| "CARGO_PKG_VERSION_PATCH=27", | |
| ] | |
| [gn.package.regex."1.13.1"] | |
| group_visibility = { import = "//third_party/rust_crates/visibility.gni", variable = "regex_visibility" } | |
| [gn.package.ring."0.17.14"] | |
| # See https://fxbug.dev/104855 if you want to change this: Please talk to Security team. | |
| # Thank you! | |
| visibility = [ | |
| "//third_party/rust_crates/compat/icu:*", | |
| ":hickory-net-v0_26_3.actual", | |
| ":hickory-net-v0_26_3.rustdoc", | |
| ":hickory-net-v0_26_3.aux.deps.deps", | |
| ":hickory-net-v0_26_3.aux.deps.transdeps", | |
| ":hickory-net-v0_26_3.actual.rust_compilation_deps", | |
| ":hickory-proto-v0_26_3.actual", | |
| ":hickory-proto-v0_26_3.rustdoc", | |
| ":hickory-proto-v0_26_3.aux.deps.deps", | |
| ":hickory-proto-v0_26_3.aux.deps.transdeps", | |
| ":hickory-proto-v0_26_3.actual.rust_compilation_deps", | |
| ":ring", | |
| ":ring-0.17.14", | |
| ":rustls-v0_23_46.actual", | |
| ":rustls-v0_23_46.rustdoc", | |
| ":rustls-v0_23_46.aux.deps.deps", | |
| ":rustls-v0_23_46.aux.deps.transdeps", | |
| ":rustls-v0_23_46.actual.rust_compilation_deps", | |
| ":rustls-webpki-v0_103_16.actual", | |
| ":rustls-webpki-v0_103_16.rustdoc", | |
| ":rustls-webpki-v0_103_16.aux.deps.deps", | |
| ":rustls-webpki-v0_103_16.aux.deps.transdeps", | |
| ":rustls-webpki-v0_103_16.actual.rust_compilation_deps", | |
| ":tuf-v0_3_0-beta14.actual", | |
| ":tuf-v0_3_0-beta14.rustdoc", | |
| ":tuf-v0_3_0-beta14.aux.deps.deps", | |
| ":tuf-v0_3_0-beta14.aux.deps.transdeps", | |
| ":tuf-v0_3_0-beta14.actual.rust_compilation_deps", | |
| ":tuf-v0_3_0-beta14.test.actual", | |
| ":tuf-v0_3_0-beta14.test.actual.rust_compilation_deps", | |
| ":tuf-v0_3_0-beta14.test_executable.actual", | |
| ":tuf-v0_3_0-beta14.test_executable.actual.rust_compilation_deps", | |
| ":tuf-v0_3_0-beta14-test.actual", | |
| ":tuf-v0_3_0-beta14-test.actual.rust_compilation_deps", | |
| ":tuf-v0_3_0-beta14_test.actual", | |
| ":tuf-v0_3_0-beta14_test.actual.rust_compilation_deps", | |
| ":tuf-v0_3_0-beta14-test_executable.actual", | |
| ":tuf-v0_3_0-beta14-test_executable.actual.rust_compilation_deps", | |
| ":tuf-v0_3_0-beta14_test_executable.actual", | |
| ":tuf-v0_3_0-beta14_test_executable.actual.rust_compilation_deps", | |
| ] | |
| deps = [ "//third_party/rust_crates/compat/ring-0.17.14:ring-core" ] | |
| env_vars = [ | |
| "CARGO_PKG_NAME=ring", | |
| "CARGO_PKG_VERSION_MAJOR=0", | |
| "CARGO_PKG_VERSION_MINOR=17", | |
| "CARGO_PKG_VERSION_PATCH=14", | |
| "CARGO_PKG_VERSION_PRE=", | |
| "RING_CORE_PREFIX=ring_core_0_17_14_", | |
| ] | |
| [gn.package.ringbuf."0.5.3"] | |
| configs = [ | |
| "//third_party/rust_crates/configs/release:optimize_speed", | |
| "//third_party/rust_crates/configs/balanced:optimize_moderate" | |
| ] | |
| # Please keep the rust_icu_* crates together in this list. | |
| # Refer to //build/icu/README.md for the details of the approach. | |
| [gn.package.rust_icu_common."5.8.0"] | |
| configs = [ "//src/lib/icu:version" ] | |
| target_renaming = { import = "//build/icu/icu_rustc_library.gni", rule_name = "icu_rustc_library" } | |
| visibility = [ | |
| "//third_party/rust_crates/compat/icu:*", | |
| ":*", | |
| "//src/lib/icu_data/rust/icu_data:*", | |
| "//src/lib/intl/lookup/rust:*", | |
| ] | |
| [gn.package.rust_icu_sys."5.8.0"] | |
| configs = [ "//src/lib/icu:version" ] | |
| target_renaming = { import = "//build/icu/icu_rustc_library.gni", rule_name = "icu_rustc_library" } | |
| visibility = [ | |
| "//third_party/rust_crates/compat/icu:*", | |
| ":*", | |
| "//src/lib/intl/lookup/rust:*", | |
| "//src/ui/lib/input_pipeline:*", | |
| ] | |
| [gn.package.rust_icu_ucal."5.8.0"] | |
| configs = [ "//src/lib/icu:version" ] | |
| target_renaming = { import = "//build/icu/icu_rustc_library.gni", rule_name = "icu_rustc_library" } | |
| visibility = [ | |
| "//third_party/rust_crates/compat/icu:*", | |
| ":*", | |
| "//src/lib/icu_data/rust/icu_data:*", | |
| "//src/lib/intl/lookup/rust:*", | |
| ] | |
| [gn.package.rust_icu_udat."5.8.0"] | |
| configs = [ "//src/lib/icu:version" ] | |
| target_renaming = { import = "//build/icu/icu_rustc_library.gni", rule_name = "icu_rustc_library" } | |
| [gn.package.rust_icu_udata."5.8.0"] | |
| configs = [ "//src/lib/icu:version" ] | |
| target_renaming = { import = "//build/icu/icu_rustc_library.gni", rule_name = "icu_rustc_library" } | |
| visibility = [ | |
| "//third_party/rust_crates/compat/icu:*", | |
| ":*", | |
| "//src/lib/icu_data/rust/icu_data:*", | |
| "//src/lib/intl/lookup/rust:*", | |
| ] | |
| [gn.package.rust_icu_uenum."5.8.0"] | |
| configs = [ "//src/lib/icu:version" ] | |
| target_renaming = { import = "//build/icu/icu_rustc_library.gni", rule_name = "icu_rustc_library" } | |
| visibility = [ | |
| "//third_party/rust_crates/compat/icu:*", | |
| ":*", | |
| "//src/settings/intl:*", | |
| ] | |
| [gn.package.rust_icu_uloc."5.8.0"] | |
| configs = [ "//src/lib/icu:version" ] | |
| target_renaming = { import = "//build/icu/icu_rustc_library.gni", rule_name = "icu_rustc_library" } | |
| visibility = [ | |
| "//third_party/rust_crates/compat/icu:*", | |
| ":*", | |
| "//src/lib/intl/lookup/rust:*", | |
| "//src/settings/intl:*", | |
| ] | |
| [gn.package.rust_icu_ustring."5.8.0"] | |
| configs = [ "//src/lib/icu:version" ] | |
| target_renaming = { import = "//build/icu/icu_rustc_library.gni", rule_name = "icu_rustc_library" } | |
| [gn.package.rustix."1.1.5"] | |
| rustflags = [] | |
| license_files = ["LICENSE-APACHE"] | |
| [gn.package.rustix."1.1.5".platform."cfg(target_os = \"fuchsia\")"] | |
| rustflags = [ | |
| "--cfg=libc", | |
| ] | |
| [gn.package.rustix."1.1.5".platform."cfg(target_os = \"linux\")"] | |
| rustflags = [ | |
| "--cfg=linux_raw", | |
| "--cfg=linux_raw_dep", | |
| "--cfg=linux_like", | |
| "--cfg=linux_kernel", | |
| ] | |
| [gn.package.rustix."1.1.5".platform."cfg(target_os = \"macos\")"] | |
| rustflags = [ | |
| "--cfg=libc", | |
| "--cfg=apple", | |
| "--cfg=bsd", | |
| ] | |
| [gn.package.rustls."0.23.46"] | |
| rustflags = [] | |
| [gn.package.rutabaga_gfx."0.1.85"] | |
| # Has build script but no config needed. | |
| # scoped-tls has not gone through a thorough safety review yet, and needs to be | |
| # re-reviewed before it can be used outside of tests. | |
| [gn.package.scoped-tls."1.0.1"] | |
| visibility = [ | |
| "//third_party/rust_crates/compat/icu:*", | |
| ":loom-v0_7_2.actual", | |
| ":loom-v0_7_2.rustdoc", | |
| ":loom-v0_7_2.aux.deps.deps", | |
| ":loom-v0_7_2.aux.deps.transdeps", | |
| ":loom-v0_7_2.actual.rust_compilation_deps", | |
| ] | |
| testonly = true | |
| [gn.package.sec1."0.7.3"] | |
| groups = [ | |
| { name = "sec1-0.7" }, | |
| ] | |
| [gn.package.semver."1.0.28"] | |
| rustflags = [] | |
| [gn.package.serde."1.0.229"] | |
| rustflags = [] | |
| env_vars = [ | |
| "CARGO_PKG_VERSION_MAJOR=1", | |
| "CARGO_PKG_VERSION_MINOR=0", | |
| "CARGO_PKG_VERSION_PATCH=229", | |
| "OUT_DIR=../../../compat/serde", | |
| ] | |
| [gn.package.serde_core."1.0.229"] | |
| rustflags = [] | |
| env_vars = [ | |
| "CARGO_PKG_VERSION_MAJOR=1", | |
| "CARGO_PKG_VERSION_MINOR=0", | |
| "CARGO_PKG_VERSION_PATCH=229", | |
| "OUT_DIR=../../../compat/serde_core", | |
| ] | |
| [gn.package.serde_derive."1.0.229"] | |
| rustflags = [] | |
| env_vars = [ | |
| "CARGO_PKG_VERSION_MAJOR=1", | |
| "CARGO_PKG_VERSION_MINOR=0", | |
| "CARGO_PKG_VERSION_PATCH=229", | |
| ] | |
| [gn.package.serde_json."1.0.154"] | |
| rustflags = ["--cfg=fast_arithmetic=\\\"64\\\""] | |
| [gn.package.serial_test."4.0.1"] | |
| testonly = true | |
| [gn.package.sha1."0.10.7"] | |
| groups = [ | |
| { name = "sha1-0.10", visibility = [ ":*", "//src/microfuchsia/tee/runtime/api_impl:*" ] } | |
| ] | |
| [gn.package.sha1."0.11.0"] | |
| group_visibility = { import = "//third_party/rust_crates/visibility.gni", variable = "sha1_visibility" } | |
| [gn.package.sha2."0.10.9"] | |
| groups = [ { name = "sha2-0.10", visibility = [ ":*", "//src/microfuchsia/tee/runtime/api_impl:*", "//vendor/*" ] } ] | |
| [gn.package.signal-hook."0.3.18"] | |
| rustflags = [] | |
| [gn.package.signal-hook."0.4.5"] | |
| rustflags = [] | |
| [gn.package.slab."0.4.12"] | |
| rustflags = [] | |
| [gn.package.smallbox."0.8.9"] | |
| rustflags = [] | |
| [gn.package.spki."0.7.3"] | |
| groups = [ | |
| { name = "spki-0.7" } | |
| ] | |
| [gn.package.syn."1.0.109"] | |
| # Has build script but no config needed. | |
| # FIXME(https://fxbug.dev/332277415): temporarily allow legacy targets to | |
| # depend on 1.0.109 to enable a soft migration. New projects should be using syn | |
| # 2.x. | |
| visibility = [ | |
| "//third_party/rust_crates/compat/icu:*", | |
| ":*", | |
| "//src/connectivity/bluetooth/testing/test-harness-macro:*", | |
| "//src/connectivity/lib/ip-test-macro:*", | |
| "//src/connectivity/lib/ip-test-macro/test:*", | |
| "//src/connectivity/lib/net-declare:*", | |
| "//src/connectivity/lib/net-types:*", | |
| "//src/connectivity/lowpan/lib/spinel_pack/spinel_pack_macros:*", | |
| "//src/connectivity/network/netstack3/core/macros:*", | |
| "//src/connectivity/network/tests/integration/macros:*", | |
| "//src/connectivity/network/tests/integration/multicast-forwarding/macros:*", | |
| "//src/connectivity/wlan/lib/bitfield:*", | |
| "//src/connectivity/wlan/lib/frame_writer/macro:*", | |
| "//src/connectivity/wlan/lib/statemachine/macro:*", | |
| "//src/developer/ffx/config/macro/proc_macro:*", | |
| "//src/developer/ffx/core/macro:*", | |
| "//src/developer/ffx/lib/fho/macro:*", | |
| "//src/developer/ffx/lib/protocols/macros:*", | |
| "//src/developer/ffx/lib/validation/proc_macro:*", | |
| "//src/developer/ffx/plugins/fuzz/shell_args:*", | |
| "//src/lib/diagnostics/inspect/derive/macro:*", | |
| "//src/lib/fidl_table_validation/fidl_table_validation_derive:*", | |
| "//src/lib/from-enum:*", | |
| "//src/lib/fuchsia-async-macro:*", | |
| "//src/lib/fuchsia/macro:*", | |
| "//src/lib/fuzzing/rust:*", | |
| "//src/lib/include_bytes_from_working_dir:*", | |
| "//src/lib/include_str_from_working_dir:*", | |
| "//src/lib/testing/fixture:*", | |
| "//src/starnix/lib/filter_methods_macro:*", | |
| "//src/storage/fxfs:*", | |
| "//src/storage/fxfs/trace/macros:*", | |
| "//src/storage/lib/vfs/rust/macros:*", | |
| "//src/storage/type-fprint:*", | |
| "//src/sys/lib/cm_rust:*", | |
| "//src/sys/time/lib/inspect-writable/macro:*", | |
| "//tools/lib/config_client:*", | |
| "//tools/lib/reference_doc/macro:*", | |
| ] | |
| [gn.package.thiserror."2.0.21"] | |
| env_vars = [ | |
| "CARGO_PKG_VERSION_PATCH=21", | |
| "OUT_DIR=../../../compat/thiserror", | |
| ] | |
| [gn.package.thiserror."1.0.69"] | |
| # Has build script but no config needed. | |
| [gn.package.thiserror-impl."2.0.21"] | |
| env_vars = [ | |
| "CARGO_PKG_VERSION_PATCH=21", | |
| "OUT_DIR=../../../compat/thiserror", | |
| ] | |
| # TODO(https://fxbug.dev/106164) This manual configuration enables the "rt", "net" | |
| # "fs" and "sync" features on non-Fuchsia targets. It should be removed | |
| # once gnaw supports target-specific features. | |
| [gn.package.tokio."1.54.1"] | |
| reviewed_features = [ | |
| "bytes", | |
| "default", | |
| "fs", | |
| "io-util", | |
| "libc", | |
| "macros", | |
| "mio", | |
| "net", | |
| "num_cpus", | |
| "process", | |
| "rt", | |
| "rt-multi-thread", | |
| "singal-hook-registry", | |
| "socket2", | |
| "sync", | |
| "time", | |
| "tokio-macros", | |
| "windows-sys", | |
| ] | |
| [gn.package.tokio."1.54.1".platform."cfg(not(target_os = \"fuchsia\"))"] | |
| deps = [ | |
| ":bytes-v1_12_1", | |
| ":libc-v0_2_190", | |
| ":memchr-v2_8_3", | |
| ":mio-v1_2_4", | |
| ":num_cpus-v1_17_0", | |
| ":signal-hook-registry-v1_4_8", | |
| ":socket2-v0_6_5", | |
| ] | |
| rustflags = [ | |
| "--cfg=feature=\\\"bytes\\\"", | |
| "--cfg=feature=\\\"fs\\\"", | |
| "--cfg=feature=\\\"io-util\\\"", | |
| "--cfg=feature=\\\"libc\\\"", | |
| "--cfg=feature=\\\"mio\\\"", | |
| "--cfg=feature=\\\"net\\\"", | |
| "--cfg=feature=\\\"num_cpus\\\"", | |
| "--cfg=feature=\\\"process\\\"", | |
| "--cfg=feature=\\\"rt-multi-thread\\\"", | |
| "--cfg=feature=\\\"rt\\\"", | |
| "--cfg=feature=\\\"signal\\\"", | |
| "--cfg=feature=\\\"signal-hook-registry\\\"", | |
| "--cfg=feature=\\\"socket2\\\"", | |
| "--cfg=feature=\\\"sync\\\"", | |
| "--cfg=feature=\\\"time\\\"", | |
| "--cfg=tokio_unstable", | |
| ] | |
| [gn.package.tracing-mutex."0.3.3"] | |
| rustflags = [ | |
| # Our toolchain comes from nightly and has this type available. | |
| "--cfg=has_std__sync__LazyLock", | |
| ] | |
| # No build script but relies on cargo to populate environment variables. | |
| [gn.package.trust-dns-resolver."0.22.0"] | |
| env_vars = [ "CARGO_PKG_VERSION=\\\"0.22.0\\\"" ] | |
| [gn.package.tuf."0.3.0-beta14"] | |
| tests = true | |
| [gn.package.uncased."0.9.10"] | |
| rustflags = ["--cfg=const_fn_transmute"] | |
| [gn.package.unic-common."0.9.0"] | |
| env_vars = [ "CARGO_PKG_VERSION=\\\"0.9.0\\\"", "CARGO_PKG_NAME=\\\"unic-common\\\"", "CARGO_PKG_DESCRIPTION=\\\"\\\"", ] | |
| [gn.package.unic-ucd-version."0.9.0"] | |
| env_vars = [ "CARGO_PKG_VERSION=\\\"0.9.0\\\"", "CARGO_PKG_NAME=\\\"unic-ucd-version\\\"", "CARGO_PKG_DESCRIPTION=\\\"\\\"", ] | |
| [gn.package.unic-char-range."0.9.0"] | |
| env_vars = [ "CARGO_PKG_VERSION=\\\"0.9.0\\\"", "CARGO_PKG_NAME=\\\"unic-char-range\\\"", "CARGO_PKG_DESCRIPTION=\\\"\\\"", ] | |
| [gn.package.unic-char-property."0.9.0"] | |
| env_vars = [ "CARGO_PKG_VERSION=\\\"0.9.0\\\"", "CARGO_PKG_NAME=\\\"unic-char-property\\\"", "CARGO_PKG_DESCRIPTION=\\\"\\\"", ] | |
| [gn.package.unic-ucd-block."0.9.0"] | |
| env_vars = [ "CARGO_PKG_VERSION=\\\"0.9.0\\\"", "CARGO_PKG_NAME=\\\"unic-ucd-block\\\"", "CARGO_PKG_DESCRIPTION=\\\"\\\"", ] | |
| [gn.package.unicode-normalization."0.1.26"] | |
| license_files = ["LICENSE-APACHE"] | |
| [gn.package.unicode-segmentation."1.13.3"] | |
| license_files = ["LICENSE-APACHE"] | |
| [gn.package.unicode-width."0.1.14"] | |
| license_files = ["LICENSE-APACHE"] | |
| [gn.package.unicode-width."0.2.2"] | |
| license_files = ["LICENSE-APACHE"] | |
| [gn.package.unicode-xid."0.2.6"] | |
| license_files = ["LICENSE-APACHE"] | |
| [gn.package.uuid."1.28.0"] | |
| license_files = ["LICENSE-APACHE"] | |
| [gn.package.valico."4.0.0"] | |
| env_vars = ["OUT_DIR=../../../../compat/valico"] | |
| [gn.package.valuable."0.1.1"] | |
| rustflags = [] | |
| [gn.package.x509-cert."0.2.5"] | |
| groups = [ | |
| { name = "x509-cert-0.2" } | |
| ] | |
| [gn.package.zerocopy."0.8.63"] | |
| rustflags = [ "--cfg=zerocopy_inline_always" ] | |
| configs = [ | |
| "//third_party/rust_crates/configs/release:optimize_speed", | |
| "//third_party/rust_crates/configs/balanced:optimize_moderate" | |
| ] | |
| [gn.package.zerocopy-derive."0.8.63"] | |
| # See https://github.com/google/zerocopy/issues/1792 | |
| rustflags = [ "--cfg=zerocopy_derive_union_into_bytes" ] | |
| [gn.package.zeroize."1.9.0"] | |
| group_visibility = { import = "//third_party/rust_crates/visibility.gni", variable = "zeroize_visibility" } | |
| [gn.package.zip."9.0.5"] | |
| env_vars = [ "CARGO_PKG_VERSION=9.0.5" ] | |
| [gn.package.zmij."1.0.23"] | |
| rustflags = ["--cfg=opt_level=\\\"s\\\""] | |
| [gn.package.zstd-safe."8.2.0"] | |
| rustflags = [] | |
| # Note that the zstd version we use on Fuchsia doesn't match the current zstd/zstd-safe crate, | |
| # however we do not rely on any new or experimental features outside of the existing APIs these | |
| # crates provide. When we do update the zstd/zstd-safe crates, we should ensure that we update the | |
| # zstd version pinned in the integration repo via the fuchsia/third_party/flower file accordingly. | |
| [gn.package.zstd-sys."2.1.2+zstd.1.5.7"] | |
| rustflags = [] | |
| # It is a fork: | |
| uses_fuchsia_license = true |