diff --git a/.config/hakari.toml b/.config/hakari.toml new file mode 100644 index 0000000000..1cf0c2ee78 --- /dev/null +++ b/.config/hakari.toml @@ -0,0 +1,28 @@ +# This file contains settings for `cargo hakari`. +# See https://docs.rs/cargo-hakari/latest/cargo_hakari/config for a full list of options. + +hakari-package = "workspace-hack" + +# Format version for hakari's output. Version 4 requires cargo-hakari 0.9.22 or above. +dep-format-version = "4" + +# Setting workspace.resolver = "2" or higher in the root Cargo.toml is HIGHLY recommended. +# Hakari works much better with the v2 resolver. (The v2 and v3 resolvers are identical from +# hakari's perspective, so you're welcome to set either.) +# +# For more about the new feature resolver, see: +# https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#cargos-new-feature-resolver +resolver = "2" + +# Add triples corresponding to platforms commonly used by developers here. +# https://doc.rust-lang.org/rustc/platform-support.html +platforms = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu"] + +# Write out exact versions rather than a semver range. (Defaults to false.) +# exact-versions = true + +[traversal-excludes] +workspace-members = ["moq-net-fuzz", "moq-quic-fuzz"] + +[final-excludes] +workspace-members = ["kio-macros"] diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 0851b000bf..79877d84ea 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -31,6 +31,7 @@ concurrency: env: CARGO_NDK_VERSION: 4.1.2 + CARGO_HAKARI_VERSION: 0.9.39 jobs: android: @@ -58,5 +59,13 @@ jobs: - name: Install cargo-ndk run: cargo install --locked "cargo-ndk@$CARGO_NDK_VERSION" + # The host dev-dependencies in the workspace-hack need the Nix shell's + # native libraries, which this cross-build deliberately runs without. + - name: Disable the workspace-hack + run: | + cargo install --locked "cargo-hakari@$CARGO_HAKARI_VERSION" + cargo hakari disable + cargo update --workspace + - name: Check run: just rs android diff --git a/.github/workflows/features.yml b/.github/workflows/features.yml index e99bf3a918..b444e901f2 100644 --- a/.github/workflows/features.yml +++ b/.github/workflows/features.yml @@ -32,6 +32,11 @@ jobs: with: access-key-id: ${{ secrets.MBX_R2_ACCESS_KEY_ID }} secret-access-key: ${{ secrets.MBX_R2_SECRET_ACCESS_KEY }} + # The workspace-hack unifies third-party features so the gate's builds + # share a cache, which would hide a crate using a feature it does not + # declare. Every build here checks declarations, so it runs without it. + - name: Disable the workspace-hack + run: nix develop --command bash -c 'cargo hakari disable && cargo update --workspace' - name: Check feature and profile variants run: nix develop --command just ${{ matrix.recipe }} env: diff --git a/.taplo.toml b/.taplo.toml index a1834cfa30..fa00ce09a5 100644 --- a/.taplo.toml +++ b/.taplo.toml @@ -1,5 +1,15 @@ # Skip vendored, build, and scratch trees (c/moq/build links into target/) so `taplo format` doesn't recurse into them. -exclude = ["**/node_modules/**", "**/target/**", "c/moq/build/**", "**/dist/**", "**/.venv/**", "**/.direnv/**", "**/.tmp/**"] +# `cargo hakari` owns the workspace-hack's formatting; `just rs lint` checks it. +exclude = [ + "**/node_modules/**", + "**/target/**", + "c/moq/build/**", + "**/dist/**", + "**/.venv/**", + "**/.direnv/**", + "**/.tmp/**", + "rs/workspace-hack/Cargo.toml", +] # Match the existing repo style (4-space indent on Cargo.toml, lines up # to ~120 chars) so the initial format pass stays minimal. diff --git a/Cargo.lock b/Cargo.lock index 9eba9b2373..cd340c6768 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -855,6 +855,7 @@ version = "0.0.1" dependencies = [ "codspeed-criterion-compat", "criterion", + "workspace-hack", ] [[package]] @@ -3677,6 +3678,7 @@ dependencies = [ "tokio", "tracing", "url", + "workspace-hack", ] [[package]] @@ -4800,6 +4802,7 @@ dependencies = [ "smallvec", "test-env", "tokio", + "workspace-hack", ] [[package]] @@ -5039,6 +5042,9 @@ checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" [[package]] name = "libmoq" version = "0.6.12" +dependencies = [ + "workspace-hack", +] [[package]] name = "libredox" @@ -5345,6 +5351,7 @@ dependencies = [ "thiserror 2.0.21", "tokio", "tracing", + "workspace-hack", ] [[package]] @@ -5378,6 +5385,7 @@ dependencies = [ "tokio", "tracing", "unsafe-libopus", + "workspace-hack", ] [[package]] @@ -5413,6 +5421,7 @@ dependencies = [ "tracing-test", "url", "wiremock", + "workspace-hack", ] [[package]] @@ -5456,6 +5465,7 @@ dependencies = [ "toml 1.1.6+spec-1.1.0", "tracing", "usage-rs", + "workspace-hack", ] [[package]] @@ -5477,6 +5487,7 @@ dependencies = [ "tokio", "tracing", "usage-rs", + "workspace-hack", ] [[package]] @@ -5502,6 +5513,7 @@ dependencies = [ "tokio", "tracing", "url", + "workspace-hack", ] [[package]] @@ -5517,6 +5529,7 @@ dependencies = [ "parking_lot", "pollster", "tracing", + "workspace-hack", ] [[package]] @@ -5570,6 +5583,7 @@ dependencies = [ "usage-rs", "vt100", "winit", + "workspace-hack", ] [[package]] @@ -5582,6 +5596,7 @@ dependencies = [ "rand_pcg", "stats_alloc", "tracing", + "workspace-hack", ] [[package]] @@ -5598,6 +5613,7 @@ dependencies = [ "serde_json", "thiserror 2.0.21", "tokio", + "workspace-hack", "zeroize", ] @@ -5623,6 +5639,7 @@ dependencies = [ "tracing", "uniffi 0.32.2 (registry+https://github.com/rust-lang/crates.io-index)", "url", + "workspace-hack", ] [[package]] @@ -5647,6 +5664,7 @@ dependencies = [ "tracing", "tracing-subscriber", "url", + "workspace-hack", ] [[package]] @@ -5679,6 +5697,7 @@ dependencies = [ "tracing", "tracing-test", "url", + "workspace-hack", ] [[package]] @@ -5691,6 +5710,7 @@ dependencies = [ "thiserror 2.0.21", "tokio", "tracing", + "workspace-hack", ] [[package]] @@ -5709,6 +5729,7 @@ dependencies = [ "serde_path_to_error", "thiserror 2.0.21", "tracing", + "workspace-hack", ] [[package]] @@ -5718,6 +5739,7 @@ dependencies = [ "bytes", "moq-net", "thiserror 2.0.21", + "workspace-hack", ] [[package]] @@ -5727,6 +5749,7 @@ dependencies = [ "serde", "serde_json", "serde_with", + "workspace-hack", ] [[package]] @@ -5767,11 +5790,15 @@ dependencies = [ "tracing-test", "url", "webm-iterable", + "workspace-hack", ] [[package]] name = "moq-native" version = "0.20.0" +dependencies = [ + "workspace-hack", +] [[package]] name = "moq-net" @@ -5801,6 +5828,7 @@ dependencies = [ "tracing-test", "url", "uuid", + "workspace-hack", ] [[package]] @@ -5821,6 +5849,7 @@ dependencies = [ "moq-net", "serde_json", "tokio", + "workspace-hack", ] [[package]] @@ -5830,6 +5859,7 @@ dependencies = [ "cudarc", "libloading 0.9.0", "thiserror 2.0.21", + "workspace-hack", ] [[package]] @@ -5840,6 +5870,7 @@ dependencies = [ "moq-pattern 0.1.2", "serde", "serde_json", + "workspace-hack", ] [[package]] @@ -5881,6 +5912,7 @@ dependencies = [ "tinyvec", "tracing", "tracing-subscriber", + "workspace-hack", ] [[package]] @@ -5950,6 +5982,7 @@ dependencies = [ "url", "usage-rs", "web-transport-trait", + "workspace-hack", "x509-parser", ] @@ -5964,6 +5997,7 @@ dependencies = [ "moq-tokio", "thiserror 2.0.21", "tokio", + "workspace-hack", ] [[package]] @@ -5987,6 +6021,7 @@ dependencies = [ "tracing-test", "url", "uuid", + "workspace-hack", ] [[package]] @@ -6013,6 +6048,7 @@ dependencies = [ "tokio-rustls", "tracing", "tracing-test", + "workspace-hack", ] [[package]] @@ -6033,6 +6069,7 @@ dependencies = [ "tracing", "tracing-test", "url", + "workspace-hack", ] [[package]] @@ -6055,6 +6092,7 @@ dependencies = [ "tokio", "toml 1.1.6+spec-1.1.0", "tracing", + "workspace-hack", ] [[package]] @@ -6071,6 +6109,7 @@ dependencies = [ "serde_json", "tokio", "toml 1.1.6+spec-1.1.0", + "workspace-hack", ] [[package]] @@ -6088,6 +6127,7 @@ dependencies = [ "tempfile", "thiserror 2.0.21", "tokio", + "workspace-hack", "zeroize", ] @@ -6107,6 +6147,7 @@ dependencies = [ "tracing", "tracing-test", "windows-sys 0.61.2", + "workspace-hack", ] [[package]] @@ -6125,6 +6166,7 @@ dependencies = [ "tokio", "tracing", "tracing-subscriber", + "workspace-hack", ] [[package]] @@ -6142,6 +6184,7 @@ dependencies = [ "thiserror 2.0.21", "tokio", "tracing", + "workspace-hack", ] [[package]] @@ -6167,6 +6210,7 @@ dependencies = [ "tracing", "url", "usage-rs", + "workspace-hack", ] [[package]] @@ -6251,6 +6295,7 @@ dependencies = [ "web-transport-proto", "web-transport-trait", "webpki-roots 1.0.10", + "workspace-hack", "x509-parser", ] @@ -6271,6 +6316,7 @@ dependencies = [ "tracing", "url", "usage-rs", + "workspace-hack", ] [[package]] @@ -6305,6 +6351,7 @@ dependencies = [ "url", "web-transport-proto", "web-transport-trait", + "workspace-hack", ] [[package]] @@ -6313,6 +6360,7 @@ version = "0.1.0" dependencies = [ "bitflags 2.13.2", "libc", + "workspace-hack", ] [[package]] @@ -6379,6 +6427,7 @@ dependencies = [ "tracing-test", "wgpu", "windows", + "workspace-hack", "x11rb 0.14.0", "yuv", "zune-jpeg", @@ -8566,6 +8615,7 @@ dependencies = [ "tokio-util", "tracing", "web-transport-trait", + "workspace-hack", ] [[package]] @@ -10818,6 +10868,9 @@ dependencies = [ [[package]] name = "test-env" version = "0.0.1" +dependencies = [ + "workspace-hack", +] [[package]] name = "textwrap" @@ -11554,6 +11607,7 @@ name = "uniffi-bindgen" version = "0.1.0" dependencies = [ "uniffi 0.32.2 (git+https://github.com/kixelated/uniffi-rs?rev=88d835d)", + "workspace-hack", ] [[package]] @@ -13029,6 +13083,193 @@ dependencies = [ "primefield", ] +[[package]] +name = "workspace-hack" +version = "0.1.0" +dependencies = [ + "anyhow", + "arrayvec", + "aws-lc-rs", + "aws-lc-sys", + "base16ct 1.0.0", + "base64 0.23.1", + "bitflags 2.13.2", + "block2 0.6.2", + "bytemuck", + "byteorder", + "bytes", + "camino", + "cc", + "chrono", + "clang-sys", + "clap", + "clap_builder", + "const-oid 0.9.6", + "cpal", + "crc32fast", + "crossbeam-epoch", + "crossbeam-utils", + "crypto-common 0.1.7", + "crypto-common 0.2.2", + "ctutils", + "cudarc", + "data-encoding", + "der 0.7.10", + "der 0.8.2", + "derive_more 2.1.1", + "derive_more-impl", + "digest 0.10.7", + "digest 0.11.3", + "dispatch2", + "displaydoc", + "either", + "errno", + "event-listener", + "event-listener-strategy", + "fastrand", + "flate2", + "flume", + "foldhash", + "form_urlencoded", + "fs-err", + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-lite", + "futures-sink", + "futures-task", + "futures-util", + "getrandom 0.2.17", + "getrandom 0.3.4", + "getrandom 0.4.3", + "half", + "hashbrown 0.17.1", + "hex", + "hmac 0.12.1", + "hybrid-array", + "hyper", + "hyper-rustls", + "hyper-util", + "image", + "indexmap 2.14.2", + "itertools 0.13.0", + "lazy_static", + "libc", + "libspa", + "linux-raw-sys 0.12.1", + "log", + "md-5 0.10.6", + "md-5 0.11.0", + "memchr", + "miniz_oxide 0.8.9", + "mio", + "nix", + "nom 7.1.3", + "nom 8.0.0", + "num-bigint", + "num-complex", + "num-integer", + "num-iter", + "num-traits", + "objc2 0.6.5", + "objc2-core-audio", + "objc2-core-audio-types", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-core-video", + "objc2-foundation 0.3.2", + "objc2-metal 0.3.2", + "objc2-quartz-core 0.3.2", + "object_store", + "once_cell", + "percent-encoding", + "pipewire", + "pkcs1", + "pkcs8 0.10.2", + "pkcs8 0.11.0", + "portable-atomic", + "postcard", + "ppv-lite86", + "proc-macro2", + "proptest", + "quick-xml 0.41.0", + "quick-xml 0.42.0", + "quote", + "rand 0.8.8", + "rand 0.9.5", + "rand_chacha 0.3.1", + "rcgen 0.14.10", + "regex", + "regex-automata", + "regex-syntax", + "reqwest", + "rustc-hash 1.1.0", + "rustix 1.1.5", + "rustls", + "rustls-pki-types", + "rustls-webpki", + "security-framework-sys", + "semver", + "serde", + "serde_core", + "serde_json", + "serde_spanned 1.1.1", + "serde_with", + "sha2 0.10.9", + "sha2 0.11.1", + "signature 2.2.0", + "signature 3.0.0", + "simd-adler32", + "simdutf8", + "siphasher", + "slab", + "smallvec", + "socket2 0.6.5", + "spin 0.10.1", + "spin 0.9.9", + "spki 0.7.3", + "spki 0.8.1", + "subtle", + "syn 2.0.119", + "syn 3.0.6", + "time", + "tokio", + "tokio-rustls", + "tokio-tungstenite", + "tokio-util", + "toml 1.1.6+spec-1.1.0", + "toml_datetime 1.1.1+spec-1.1.0", + "toml_parser", + "tower", + "tower-http 0.6.11", + "tracing", + "tracing-core", + "tracing-subscriber", + "tungstenite", + "typenum", + "url", + "usage-argv", + "usage-rs", + "uuid", + "wgpu", + "wgpu-core", + "wgpu-hal", + "wgpu-types", + "winapi", + "windows", + "windows-core", + "windows-result", + "windows-sys 0.52.0", + "windows-sys 0.61.2", + "winit", + "winnow 0.7.15", + "winnow 1.0.4", + "x509-parser", + "zerocopy", + "zeroize", +] + [[package]] name = "writeable" version = "0.6.4" diff --git a/demo/carla/bridge/Cargo.toml b/demo/carla/bridge/Cargo.toml index 8809275a99..bd2c67d2f1 100644 --- a/demo/carla/bridge/Cargo.toml +++ b/demo/carla/bridge/Cargo.toml @@ -31,6 +31,9 @@ parking_lot = "0.12" pollster = { workspace = true } tracing = { workspace = true } +[dev-dependencies] +workspace-hack = { path = "../../../rs/workspace-hack" } + [target.'cfg(target_os = "linux")'.dev-dependencies] # The stand-in producer: a native Vulkan renderer that hands the bridge # exportable slots exactly the way the CARLA plugin does. diff --git a/flake.nix b/flake.nix index 6666e66fb0..a80d0d6c8b 100644 --- a/flake.nix +++ b/flake.nix @@ -158,6 +158,8 @@ cargo-semver-checks cargo-deny cargo-bloat + # The workspace-hack that gives every build one feature set per dependency. + cargo-hakari # Weekly mutation testing of the security-critical modules (`just rs mutants`). cargo-mutants cargo-nextest diff --git a/quest/m0/ci/README.md b/quest/m0/ci/README.md index 5ae13f591b..9a5829c6f1 100644 --- a/quest/m0/ci/README.md +++ b/quest/m0/ci/README.md @@ -161,7 +161,7 @@ The historical samples locate candidates; they are not controlled benchmarks. - [Measure the parallel frontend](/quest/m0/ci/nightly-levers.md) - a pinned nightly's parallel frontend, adopted only if the numbers beat its risks; Cranelift is ruled out - [Verify the R2 Rust cache](/quest/m0/ci/mbx-r2-verify.md) - confirm the hosted Nightly jobs reuse the previous Nightly, then measure restore time and expiry - [Verify the Nix cache](/quest/m0/ci/nix-cache-verify.md) - confirm releases use `nix.moq.dev`, check its bucket sizes, and retire Cachix -- [Unify dependency features](/quest/m0/ci/hakari.md) - a cargo-hakari workspace-hack so every job compiles each dependency alike and mbx hits across jobs +- [Unify dependency features](/quest/m0/ci/hakari.md) - align the FFI builds' features and record the hosted platform jobs' hits once the workspace-hack lands - [Release credentials off main](/quest/m0/ci/publish-release-only.md) - `publish` admits only `release` and release tags once its `workflow_run` publishers run on their tag - [The queue host keeps the queue's disk](/quest/m0/ci/queue-host-disk.md) - agent sessions can't starve the queue runner of disk, and a crashed runner restarts - [Biome checks every file it can parse](/quest/m0/ci/biome-whole-repo.md) - Biome runs over the whole repository and main is clean under it diff --git a/quest/m0/ci/hakari.md b/quest/m0/ci/hakari.md index 461cb4e56a..377f473477 100644 --- a/quest/m0/ci/hakari.md +++ b/quest/m0/ci/hakari.md @@ -1,12 +1,10 @@ -# [M] Unify dependency features with cargo-hakari +# [S] Unify dependency features with cargo-hakari ## Goal -Every CI job, the queue gate, Nightly's platform jobs, and the FFI builds -compile each dependency with the same features, so mbx's cache hits across -them. A cargo-hakari workspace-hack crate pins the union of the dependency -features, and the gate fails when it is out of date. Record mbx's hit rate across -jobs, and their CPU time, before and after. +The FFI builds compile each dependency with the same features as each other, +so mbx's cache hits across them, and Nightly's hosted platform jobs record +their hit rate and CPU time before and after the workspace-hack. ## Plan @@ -15,31 +13,19 @@ from guppy's authors, rather than only trimming CI's feature permutations. mbx keys every compilation on its inputs, so a dependency built with a different feature set in another job is a miss, however warm the cache. -- Generate the workspace-hack crate with `cargo hakari generate`, and add a - `cargo hakari generate --diff` and `cargo hakari manage-deps --dry-run` check to - `just check`. -- moq publishes crates with release-plz, and a published crate cannot depend on - an unpublished workspace-hack. Use hakari's supported setup for published - workspaces, and prove a release-plz dry run still publishes. -- Keep the feature-contract checks, which `just rs features` runs nightly and - on release PRs, testing each crate's own declarations: the - `quic-features` recipe in `rs/justfile` (moq-quic has no native runtime), - `sh/rs/media-features.sh` (minimal builds exclude codecs and rendering), and - `sh/rs/net-features.sh` and `sh/rs/tokio-features.sh`. A workspace-hack would - inject the union into them and hide a missing declaration. Exclude the crates - they guard from the hack, or run those checks with it disabled - (`cargo hakari disable`), and show each still fails on a planted violation. -- Unifying features means some packages build features they don't use. Measure - whether that costs more CPU than the cache hits save; target, profile, and - `RUSTFLAGS` differences still split keys. -- Measure the baseline here, before generating the hack: across jobs, which - compilations one job misses although another job built the same crate at - the same version, grouped by what differs (features, profile, `RUSTFLAGS`, - target). Repeat it after, from the same commit. +[moq-dev/moq#6985](https://github.com/moq-dev/moq/pull/6985) added +`rs/workspace-hack` as a path-only dev-dependency of every member outside +`.config/hakari.toml`'s excludes. Test, lint, and bench builds now unify; +library-only builds do not, since dev-dependencies stay out of them. That +leaves the FFI builds (`cargo build --release -p moq-ffi` in the bindings and +release workflows), which also split on their own flags: the Dart build passes +the host triple as `--target` and adds the `testing` feature. Align those +invocations rather than add the hack to them, unless the PR's decision on the +layout says otherwise. -Decided 2026-10-27 (maintainer): this quest no longer waits on -[Verify the R2 Rust cache](/quest/m0/ci/mbx-r2-verify.md). It measures its own -before and after baseline, so the cross-job miss report moved here from that -quest, which stays a waiting quest for the R2 numbers alone. +Nightly's macOS and Windows jobs read and write R2, so their before and after +can only come from scheduled Nightlies on `main` +(`gh run list --workflow nightly.yml --branch main --event schedule`): compare +the mbx summaries of the last run before the merge with the first two after. Public API: none; the workspace-hack crate is not published. diff --git a/rs/bench-harness/Cargo.toml b/rs/bench-harness/Cargo.toml index ebdc164515..4943205802 100644 --- a/rs/bench-harness/Cargo.toml +++ b/rs/bench-harness/Cargo.toml @@ -17,5 +17,8 @@ codspeed-criterion-compat = "6" [target.'cfg(not(codspeed))'.dependencies] criterion = "0.8" +[dev-dependencies] +workspace-hack = { path = "../workspace-hack" } + [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ["cfg(codspeed)"] } diff --git a/rs/hang/Cargo.toml b/rs/hang/Cargo.toml index 3370a7768d..865232fe5a 100644 --- a/rs/hang/Cargo.toml +++ b/rs/hang/Cargo.toml @@ -36,6 +36,7 @@ moq-tokio = { path = "../moq-tokio", default-features = false, features = ["quic tokio = { workspace = true, features = ["macros", "fs"] } tracing = { workspace = true } url = { workspace = true } +workspace-hack = { path = "../workspace-hack" } [lints] workspace = true diff --git a/rs/justfile b/rs/justfile index eb5b90ec00..0c77bde020 100644 --- a/rs/justfile +++ b/rs/justfile @@ -51,7 +51,10 @@ lint *args: cargo fmt --all --check RUSTDOCFLAGS="-D warnings" bash sh/local.sh cargo doc --locked --no-deps "$@" cargo shear - cargo sort --workspace --check --no-format + # The workspace-hack's table order is `cargo hakari`'s, which `cargo sort` disagrees with. + cargo sort --check --no-format . $(cargo metadata --locked --no-deps --format-version 1 | jq -r '.packages[] | select(.name != "workspace-hack") | .manifest_path | rtrimstr("/Cargo.toml")') + cargo hakari generate --diff + python3 sh/rs/hakari.py # Auto-fix clippy/format/shear/sort. [positional-arguments] @@ -59,7 +62,8 @@ fix *args: bash sh/local.sh cargo clippy --locked --fix --allow-staged --allow-dirty --all-targets "$@" cargo fmt --all cargo shear --fix - cargo sort --workspace --no-format + cargo hakari generate + cargo sort --no-format . $(cargo metadata --locked --no-deps --format-version 1 | jq -r '.packages[] | select(.name != "workspace-hack") | .manifest_path | rtrimstr("/Cargo.toml")') # Like `check`, but only the crates in a changed-file list plus their dependents. check-changed $LIST: @@ -186,7 +190,9 @@ x11-bench-ci: } 2>&1 | tee "$log" # moq-video's MediaCodec code is `#[cfg(target_os = "android")]`. Needs an NDK, -# which the dev shell lacks, so android.yml runs it outside Nix. `check` rather +# which the dev shell lacks, so android.yml runs it outside Nix with the +# workspace-hack disabled (`cargo hakari disable && cargo update --workspace`). +# Do the same locally, then restore Cargo.lock and rs/workspace-hack. `check` rather # than a denying clippy: the capture plumbing is dead on a target without a # capture backend. @@ -212,6 +218,10 @@ relay-minimal: c-tests: sh/rs/c-tests.sh +# The workspace-hack would supply third-party features a crate forgets to +# declare, so CI runs this after `cargo hakari disable && cargo update +# --workspace`; do the same locally, then `git checkout Cargo.lock rs/workspace-hack`. + # Compile the full feature matrix, including isolated combinations and their tests. features: just rs net-features --all diff --git a/rs/kio/Cargo.toml b/rs/kio/Cargo.toml index 4e6291cebf..1f829d3086 100644 --- a/rs/kio/Cargo.toml +++ b/rs/kio/Cargo.toml @@ -63,6 +63,7 @@ kio = { path = ".", features = ["async", "manual", "sim", "serde"] } serde_json = { workspace = true } test-env = { path = "../test-env" } tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread", "test-util", "time"] } +workspace-hack = { path = "../workspace-hack" } [[bench]] name = "tasks" diff --git a/rs/libmoq/Cargo.toml b/rs/libmoq/Cargo.toml index 79dce540ac..81eb3d6825 100644 --- a/rs/libmoq/Cargo.toml +++ b/rs/libmoq/Cargo.toml @@ -12,5 +12,8 @@ rust-version.workspace = true keywords = ["quic", "media", "live"] categories = ["multimedia", "network-programming"] +[dev-dependencies] +workspace-hack = { path = "../workspace-hack" } + [lints] workspace = true diff --git a/rs/moq-archive/Cargo.toml b/rs/moq-archive/Cargo.toml index 06e2585c95..7bf235b54a 100644 --- a/rs/moq-archive/Cargo.toml +++ b/rs/moq-archive/Cargo.toml @@ -34,6 +34,7 @@ s3s = "0.17" s3s-fs = "0.17" tempfile = { workspace = true } tokio = { workspace = true, features = ["macros", "net", "rt", "sync", "test-util", "time"] } +workspace-hack = { path = "../workspace-hack" } [[bench]] name = "producer" diff --git a/rs/moq-audio/Cargo.toml b/rs/moq-audio/Cargo.toml index 89e4140570..24aac34cf6 100644 --- a/rs/moq-audio/Cargo.toml +++ b/rs/moq-audio/Cargo.toml @@ -139,6 +139,7 @@ criterion = { package = "bench-harness", path = "../bench-harness" } serde = { workspace = true } serde_json = { workspace = true } tokio = { workspace = true, features = ["macros", "rt", "test-util"] } +workspace-hack = { path = "../workspace-hack" } [[bench]] name = "bus" diff --git a/rs/moq-auth/Cargo.toml b/rs/moq-auth/Cargo.toml index 082ea4de2d..41bc8ba6fe 100644 --- a/rs/moq-auth/Cargo.toml +++ b/rs/moq-auth/Cargo.toml @@ -51,6 +51,7 @@ tempfile = { workspace = true } tokio = { workspace = true, features = ["macros", "rt-multi-thread", "test-util"] } tracing-test = { workspace = true } wiremock = "0.6" +workspace-hack = { path = "../workspace-hack" } [[bench]] name = "verify" diff --git a/rs/moq-bench/Cargo.toml b/rs/moq-bench/Cargo.toml index c282274686..dc5dccf8af 100644 --- a/rs/moq-bench/Cargo.toml +++ b/rs/moq-bench/Cargo.toml @@ -68,6 +68,7 @@ tempfile = { workspace = true } test-env = { path = "../test-env" } # test-util enables tokio::time::pause/advance for the deterministic produce tests. tokio = { workspace = true, features = ["test-util"] } +workspace-hack = { path = "../workspace-hack" } [lints] workspace = true diff --git a/rs/moq-boy/Cargo.toml b/rs/moq-boy/Cargo.toml index 2e1df4f2fd..5ac64f902d 100644 --- a/rs/moq-boy/Cargo.toml +++ b/rs/moq-boy/Cargo.toml @@ -49,6 +49,7 @@ usage-rs = { workspace = true, features = ["completions", "config"] } [dev-dependencies] tokio = { workspace = true, features = ["test-util"] } +workspace-hack = { path = "../workspace-hack" } [lints] workspace = true diff --git a/rs/moq-c/Cargo.toml b/rs/moq-c/Cargo.toml index 0b116b6fd7..20276f96d8 100644 --- a/rs/moq-c/Cargo.toml +++ b/rs/moq-c/Cargo.toml @@ -57,6 +57,7 @@ moq-video = { path = "../moq-video", features = ["openh264"] } # Runs the tests that need a variable set or unset in a child process given it. test-env = { path = "../test-env" } tokio = { workspace = true, features = ["test-util"] } +workspace-hack = { path = "../workspace-hack" } [lints] workspace = true diff --git a/rs/moq-cli/Cargo.toml b/rs/moq-cli/Cargo.toml index daa31ee58f..15dd40bd54 100644 --- a/rs/moq-cli/Cargo.toml +++ b/rs/moq-cli/Cargo.toml @@ -170,6 +170,7 @@ test-env = { path = "../test-env" } tokio = { workspace = true, features = ["test-util"] } # Plays the `announced` view's frames on a virtual terminal, scrolling included. vt100 = "0.17.0" +workspace-hack = { path = "../workspace-hack" } [target.'cfg(unix)'.dev-dependencies] # Sends the signals the `auth serve` shutdown test checks. diff --git a/rs/moq-congestion/Cargo.toml b/rs/moq-congestion/Cargo.toml index 594044b653..9c7618a56e 100644 --- a/rs/moq-congestion/Cargo.toml +++ b/rs/moq-congestion/Cargo.toml @@ -21,6 +21,7 @@ tracing = { workspace = true } cpu-time = "1.0.0" kio = { path = "../kio", features = ["runtime"] } stats_alloc = "0.1.10" +workspace-hack = { path = "../workspace-hack" } [lints] workspace = true diff --git a/rs/moq-e2ee/Cargo.toml b/rs/moq-e2ee/Cargo.toml index 0fafe3ebbd..84056b6188 100644 --- a/rs/moq-e2ee/Cargo.toml +++ b/rs/moq-e2ee/Cargo.toml @@ -28,6 +28,7 @@ hex = { workspace = true } kio = { workspace = true, features = ["runtime"] } serde_json = { workspace = true } tokio = { workspace = true, features = ["macros", "rt", "sync", "time"] } +workspace-hack = { path = "../workspace-hack" } [[bench]] name = "protect" diff --git a/rs/moq-ffi/Cargo.toml b/rs/moq-ffi/Cargo.toml index 736b72e575..612554c52a 100644 --- a/rs/moq-ffi/Cargo.toml +++ b/rs/moq-ffi/Cargo.toml @@ -76,6 +76,7 @@ pollster = { workspace = true } # Runs the key log tests with `SSLKEYLOGFILE` set or unset, in a child process. test-env = { path = "../test-env" } tokio = { workspace = true, features = ["test-util"] } +workspace-hack = { path = "../workspace-hack" } [target.'cfg(unix)'.dev-dependencies] # Process CPU time for the benchmark's baselines. diff --git a/rs/moq-gst/Cargo.toml b/rs/moq-gst/Cargo.toml index 7200b4a28a..b37a2eac1b 100644 --- a/rs/moq-gst/Cargo.toml +++ b/rs/moq-gst/Cargo.toml @@ -43,6 +43,7 @@ moq-audio = { path = "../moq-audio", default-features = false } # Runs the tests that need a variable set or unset in a child process given it. test-env = { path = "../test-env" } tokio = { workspace = true, features = ["test-util"] } +workspace-hack = { path = "../workspace-hack" } [[bench]] name = "catalog" diff --git a/rs/moq-hls/Cargo.toml b/rs/moq-hls/Cargo.toml index 2252e77246..c62c3427dd 100644 --- a/rs/moq-hls/Cargo.toml +++ b/rs/moq-hls/Cargo.toml @@ -48,6 +48,7 @@ moq-tokio = { path = "../moq-tokio", default-features = false, features = ["tcp" tokio = { workspace = true, features = ["test-util"] } tower = { version = "0.5", features = ["util"] } tracing-test = { workspace = true } +workspace-hack = { path = "../workspace-hack" } [lints] workspace = true diff --git a/rs/moq-ice/Cargo.toml b/rs/moq-ice/Cargo.toml index aedb5b0218..6b533666d2 100644 --- a/rs/moq-ice/Cargo.toml +++ b/rs/moq-ice/Cargo.toml @@ -22,6 +22,7 @@ tracing = { workspace = true } [dev-dependencies] tokio = { workspace = true, features = ["macros", "rt-multi-thread", "test-util"] } +workspace-hack = { path = "../workspace-hack" } [lints] workspace = true diff --git a/rs/moq-json/Cargo.toml b/rs/moq-json/Cargo.toml index 37e226ec92..e62e4bc8cb 100644 --- a/rs/moq-json/Cargo.toml +++ b/rs/moq-json/Cargo.toml @@ -27,6 +27,7 @@ criterion = { package = "bench-harness", path = "../bench-harness" } futures = { workspace = true } json-patch = "4" proptest = { workspace = true, features = ["handle-panics"] } +workspace-hack = { path = "../workspace-hack" } [[bench]] name = "codec" diff --git a/rs/moq-loc/Cargo.toml b/rs/moq-loc/Cargo.toml index 0507e77e3e..3ee83e561b 100644 --- a/rs/moq-loc/Cargo.toml +++ b/rs/moq-loc/Cargo.toml @@ -17,5 +17,8 @@ bytes = { workspace = true } moq-net = { workspace = true } thiserror = { workspace = true } +[dev-dependencies] +workspace-hack = { path = "../workspace-hack" } + [lints] workspace = true diff --git a/rs/moq-msf/Cargo.toml b/rs/moq-msf/Cargo.toml index 931c0563b6..8da5ddeb3e 100644 --- a/rs/moq-msf/Cargo.toml +++ b/rs/moq-msf/Cargo.toml @@ -17,5 +17,8 @@ serde = { workspace = true } serde_json = { workspace = true } serde_with = { workspace = true } +[dev-dependencies] +workspace-hack = { path = "../workspace-hack" } + [lints] workspace = true diff --git a/rs/moq-mux/Cargo.toml b/rs/moq-mux/Cargo.toml index 4b24fcbd15..a150682f5a 100644 --- a/rs/moq-mux/Cargo.toml +++ b/rs/moq-mux/Cargo.toml @@ -50,6 +50,7 @@ kio = { workspace = true, features = ["sim"] } proptest = { workspace = true } tokio = { workspace = true, features = ["test-util"] } tracing-test = { workspace = true } +workspace-hack = { path = "../workspace-hack" } # The ts_schedule bench pins glibc's heap. [target.'cfg(all(target_os = "linux", target_env = "gnu"))'.dev-dependencies] diff --git a/rs/moq-native/Cargo.toml b/rs/moq-native/Cargo.toml index c9c38e89c1..1b6bc24ea4 100644 --- a/rs/moq-native/Cargo.toml +++ b/rs/moq-native/Cargo.toml @@ -27,5 +27,8 @@ uds = [] ring = [] android-logcat = [] +[dev-dependencies] +workspace-hack = { path = "../workspace-hack" } + [lints] workspace = true diff --git a/rs/moq-net-tests/Cargo.toml b/rs/moq-net-tests/Cargo.toml index 9450844734..cbc6aa233c 100644 --- a/rs/moq-net-tests/Cargo.toml +++ b/rs/moq-net-tests/Cargo.toml @@ -19,6 +19,7 @@ moq-json = { path = "../moq-json" } moq-net = { path = "../moq-net", features = ["fuzz"] } serde_json = { workspace = true } tokio = { workspace = true, features = ["rt"] } +workspace-hack = { path = "../workspace-hack" } [lints] workspace = true diff --git a/rs/moq-net/Cargo.toml b/rs/moq-net/Cargo.toml index a85d38b186..43f7288053 100644 --- a/rs/moq-net/Cargo.toml +++ b/rs/moq-net/Cargo.toml @@ -58,6 +58,7 @@ serde_json = { workspace = true } # dependency feature set. tokio = { workspace = true, features = ["rt", "rt-multi-thread", "test-util", "time"] } tracing-test = { workspace = true } +workspace-hack = { path = "../workspace-hack" } # Thread and process CPU timing in the session benchmark. [target.'cfg(unix)'.dev-dependencies] diff --git a/rs/moq-nvenc/Cargo.toml b/rs/moq-nvenc/Cargo.toml index a608e0681a..02853b48f6 100644 --- a/rs/moq-nvenc/Cargo.toml +++ b/rs/moq-nvenc/Cargo.toml @@ -21,5 +21,8 @@ cudarc = { workspace = true } libloading = { workspace = true } thiserror = { workspace = true } +[dev-dependencies] +workspace-hack = { path = "../workspace-hack" } + [lints] workspace = true diff --git a/rs/moq-pattern/Cargo.toml b/rs/moq-pattern/Cargo.toml index c52e4730bd..2b735b702c 100644 --- a/rs/moq-pattern/Cargo.toml +++ b/rs/moq-pattern/Cargo.toml @@ -24,6 +24,7 @@ criterion = { package = "bench-harness", path = "../bench-harness" } # Enable serde so the crate's own tests cover the optional impls in the merge gate. moq-pattern = { path = ".", features = ["serde"] } serde_json = { workspace = true } +workspace-hack = { path = "../workspace-hack" } [[bench]] name = "matching" diff --git a/rs/moq-quic/Cargo.toml b/rs/moq-quic/Cargo.toml index 4e8ee27303..f4cbc5dbba 100644 --- a/rs/moq-quic/Cargo.toml +++ b/rs/moq-quic/Cargo.toml @@ -76,6 +76,7 @@ proptest = { workspace = true } rand_pcg = { workspace = true } rcgen = { workspace = true, features = ["pem", "ring"] } tracing-subscriber = { version = "0.3.0", default-features = false, features = ["env-filter", "fmt", "ansi", "time", "local-time"] } +workspace-hack = { path = "../workspace-hack" } # Writes the generated fuzzer corpus to disk. Needs the `fuzz` feature, so a default # `--all-targets` build skips it rather than failing to find the module. diff --git a/rs/moq-relay/Cargo.toml b/rs/moq-relay/Cargo.toml index 60efb09166..651572846e 100644 --- a/rs/moq-relay/Cargo.toml +++ b/rs/moq-relay/Cargo.toml @@ -130,6 +130,7 @@ test-env = { path = "../test-env" } time = { workspace = true } tokio = { workspace = true, features = ["test-util"] } tracing-subscriber = { workspace = true } +workspace-hack = { path = "../workspace-hack" } [target.'cfg(target_os = "linux")'.dev-dependencies] # Workers built inside a runtime with a manual clock installed run on that clock. diff --git a/rs/moq-room/Cargo.toml b/rs/moq-room/Cargo.toml index fed15448a0..b94fa76370 100644 --- a/rs/moq-room/Cargo.toml +++ b/rs/moq-room/Cargo.toml @@ -23,6 +23,7 @@ thiserror = { workspace = true } [dev-dependencies] moq-tokio = { path = "../moq-tokio", default-features = false, features = ["net"] } tokio = { workspace = true, features = ["macros", "rt", "test-util"] } +workspace-hack = { path = "../workspace-hack" } [lints] workspace = true diff --git a/rs/moq-rtc/Cargo.toml b/rs/moq-rtc/Cargo.toml index 9f73a89af7..110497ebab 100644 --- a/rs/moq-rtc/Cargo.toml +++ b/rs/moq-rtc/Cargo.toml @@ -49,6 +49,7 @@ aws-lc-rs = { workspace = true } moq-tokio = { workspace = true, features = ["net", "tcp"] } tokio = { workspace = true, features = ["test-util"] } tracing-test = { workspace = true } +workspace-hack = { path = "../workspace-hack" } [lints] workspace = true diff --git a/rs/moq-rtmp/Cargo.toml b/rs/moq-rtmp/Cargo.toml index 95c02d891b..3724f83a98 100644 --- a/rs/moq-rtmp/Cargo.toml +++ b/rs/moq-rtmp/Cargo.toml @@ -62,6 +62,7 @@ kio = { path = "../kio", features = ["sim"] } moq-tokio = { path = "../moq-tokio", default-features = false, features = ["aws-lc-rs", "net"] } tokio = { workspace = true, features = ["test-util"] } tracing-test = { workspace = true } +workspace-hack = { path = "../workspace-hack" } [[bench]] name = "chunk_interleaving" diff --git a/rs/moq-rtsp/Cargo.toml b/rs/moq-rtsp/Cargo.toml index df9e23430d..261e118d89 100644 --- a/rs/moq-rtsp/Cargo.toml +++ b/rs/moq-rtsp/Cargo.toml @@ -41,6 +41,7 @@ base64 = { workspace = true } kio = { path = "../kio", features = ["manual"] } tokio = { workspace = true, features = ["full", "test-util"] } tracing-test = { workspace = true } +workspace-hack = { path = "../workspace-hack" } [lints] workspace = true diff --git a/rs/moq-scene/Cargo.toml b/rs/moq-scene/Cargo.toml index aceb936a59..3e7c799668 100644 --- a/rs/moq-scene/Cargo.toml +++ b/rs/moq-scene/Cargo.toml @@ -50,6 +50,7 @@ tracing = { workspace = true } [dev-dependencies] tempfile = { workspace = true } tokio = { workspace = true, features = ["macros", "rt", "test-util"] } +workspace-hack = { path = "../workspace-hack" } [lints] workspace = true diff --git a/rs/moq-shaper/Cargo.toml b/rs/moq-shaper/Cargo.toml index 1cbd2e2985..59925805d0 100644 --- a/rs/moq-shaper/Cargo.toml +++ b/rs/moq-shaper/Cargo.toml @@ -34,6 +34,7 @@ toml = { workspace = true } [dev-dependencies] tokio = { workspace = true, features = ["test-util"] } +workspace-hack = { path = "../workspace-hack" } [lints] workspace = true diff --git a/rs/moq-sign/Cargo.toml b/rs/moq-sign/Cargo.toml index 8b1bff66db..bcad6ad037 100644 --- a/rs/moq-sign/Cargo.toml +++ b/rs/moq-sign/Cargo.toml @@ -28,6 +28,7 @@ hex = { workspace = true } serde_json = { workspace = true } tempfile = { workspace = true } tokio = { workspace = true, features = ["macros", "rt", "test-util"] } +workspace-hack = { path = "../workspace-hack" } [[bench]] name = "sign" diff --git a/rs/moq-sock/Cargo.toml b/rs/moq-sock/Cargo.toml index 7c01e824ef..73d540478d 100644 --- a/rs/moq-sock/Cargo.toml +++ b/rs/moq-sock/Cargo.toml @@ -34,6 +34,7 @@ cfg_aliases = "0.2" criterion = { package = "bench-harness", path = "../bench-harness" } rand = "0.10" tracing-test = "0.2" +workspace-hack = { path = "../workspace-hack" } [target.'cfg(target_vendor = "apple")'.dev-dependencies] nix = { workspace = true } diff --git a/rs/moq-srt/Cargo.toml b/rs/moq-srt/Cargo.toml index a8a6b7e006..e9972ee83d 100644 --- a/rs/moq-srt/Cargo.toml +++ b/rs/moq-srt/Cargo.toml @@ -31,6 +31,7 @@ hang = { path = "../hang" } kio = { workspace = true, features = ["runtime"] } srt-protocol = "0.4" tracing-subscriber = { workspace = true } +workspace-hack = { path = "../workspace-hack" } [lints] workspace = true diff --git a/rs/moq-stats/Cargo.toml b/rs/moq-stats/Cargo.toml index 0bdd053bdf..6b609c48d8 100644 --- a/rs/moq-stats/Cargo.toml +++ b/rs/moq-stats/Cargo.toml @@ -33,6 +33,7 @@ tracing = { workspace = true } criterion = { package = "bench-harness", path = "../bench-harness" } futures = { workspace = true } tokio = { workspace = true, features = ["macros", "rt", "test-util", "time"] } +workspace-hack = { path = "../workspace-hack" } [[bench]] name = "decode" diff --git a/rs/moq-studio/Cargo.toml b/rs/moq-studio/Cargo.toml index 60b3738059..f68afbc275 100644 --- a/rs/moq-studio/Cargo.toml +++ b/rs/moq-studio/Cargo.toml @@ -60,6 +60,7 @@ usage-rs = { workspace = true, features = ["completions", "config"] } [dev-dependencies] moq-relay = { path = "../moq-relay", default-features = false, features = ["test-support"] } tempfile = { workspace = true } +workspace-hack = { path = "../workspace-hack" } [lints] workspace = true diff --git a/rs/moq-tokio/Cargo.toml b/rs/moq-tokio/Cargo.toml index 194e2dfce9..1591a40fdb 100644 --- a/rs/moq-tokio/Cargo.toml +++ b/rs/moq-tokio/Cargo.toml @@ -163,6 +163,7 @@ tokio = { workspace = true, features = ["test-util"] } tokio-rustls = { workspace = true } toml = "1.1" tracing-test = { workspace = true } +workspace-hack = { path = "../workspace-hack" } # The examples and integration tests run MoQ sessions, which a driver-only build lacks. [[example]] diff --git a/rs/moq-transcode/Cargo.toml b/rs/moq-transcode/Cargo.toml index 2b0bbfc726..f0edc0e6e9 100644 --- a/rs/moq-transcode/Cargo.toml +++ b/rs/moq-transcode/Cargo.toml @@ -54,6 +54,7 @@ moq-video = { path = "../moq-video", features = ["openh264"] } tokio = { workspace = true, features = ["full", "test-util"] } url = { workspace = true } usage-rs = { workspace = true } +workspace-hack = { path = "../workspace-hack" } [lints] workspace = true diff --git a/rs/moq-uring/Cargo.toml b/rs/moq-uring/Cargo.toml index 5d500566e2..c915908af0 100644 --- a/rs/moq-uring/Cargo.toml +++ b/rs/moq-uring/Cargo.toml @@ -57,6 +57,7 @@ moq-net = { path = "../moq-net" } thiserror = { workspace = true } tokio = { workspace = true, features = ["macros", "net", "rt", "sync", "time"] } web-transport-trait = { workspace = true } +workspace-hack = { path = "../workspace-hack" } [target.'cfg(target_os = "linux")'.dev-dependencies] io-uring = { workspace = true } diff --git a/rs/moq-v4l/Cargo.toml b/rs/moq-v4l/Cargo.toml index 5e8c23eb26..e48891634a 100644 --- a/rs/moq-v4l/Cargo.toml +++ b/rs/moq-v4l/Cargo.toml @@ -16,5 +16,8 @@ categories = ["multimedia::video", "os::linux-apis"] bitflags = { workspace = true } libc = { workspace = true } +[dev-dependencies] +workspace-hack = { path = "../workspace-hack" } + [lints] workspace = true diff --git a/rs/moq-video/Cargo.toml b/rs/moq-video/Cargo.toml index aa603bc021..768d2ac3bf 100644 --- a/rs/moq-video/Cargo.toml +++ b/rs/moq-video/Cargo.toml @@ -286,6 +286,7 @@ pollster = { workspace = true } # `start_paused`, so the capture driver tests run on mocked time. tokio = { workspace = true, features = ["test-util"] } tracing-test = { workspace = true } +workspace-hack = { path = "../workspace-hack" } [lints] workspace = true diff --git a/rs/qmux/Cargo.toml b/rs/qmux/Cargo.toml index adeb0f1b03..c407ca7cbd 100644 --- a/rs/qmux/Cargo.toml +++ b/rs/qmux/Cargo.toml @@ -50,6 +50,7 @@ rustls = { version = "0.23", default-features = false, features = ["aws-lc-rs", tokio = { workspace = true, features = ["full", "test-util"] } # The 0.6 release's stream API, for driving it in the interop tests. web-transport-trait = { workspace = true } +workspace-hack = { path = "../workspace-hack" } [[example]] name = "interop-client" diff --git a/rs/test-env/Cargo.toml b/rs/test-env/Cargo.toml index 2365060b4c..1765a9aba4 100644 --- a/rs/test-env/Cargo.toml +++ b/rs/test-env/Cargo.toml @@ -10,3 +10,6 @@ edition = "2024" rust-version.workspace = true publish = false + +[dev-dependencies] +workspace-hack = { path = "../workspace-hack" } diff --git a/rs/uniffi-bindgen/Cargo.toml b/rs/uniffi-bindgen/Cargo.toml index 448ea829e8..f4c43377d5 100644 --- a/rs/uniffi-bindgen/Cargo.toml +++ b/rs/uniffi-bindgen/Cargo.toml @@ -23,5 +23,8 @@ cli = ["dep:uniffi"] # published package has no git dependencies. uniffi = { git = "https://github.com/kixelated/uniffi-rs", rev = "88d835d", features = ["cli"], optional = true } +[dev-dependencies] +workspace-hack = { path = "../workspace-hack" } + [lints] workspace = true diff --git a/rs/workspace-hack/.gitattributes b/rs/workspace-hack/.gitattributes new file mode 100644 index 0000000000..3e9dba4b64 --- /dev/null +++ b/rs/workspace-hack/.gitattributes @@ -0,0 +1,4 @@ +# Avoid putting conflict markers in the generated Cargo.toml file, since their presence breaks +# Cargo. +# Also do not check out the file as CRLF on Windows, as that's what hakari needs. +Cargo.toml merge=binary -crlf diff --git a/rs/workspace-hack/Cargo.toml b/rs/workspace-hack/Cargo.toml new file mode 100644 index 0000000000..002efed81d --- /dev/null +++ b/rs/workspace-hack/Cargo.toml @@ -0,0 +1,578 @@ +# This file is generated by `cargo hakari`. +# To regenerate, run: +# cargo hakari generate + +# Every member dev-depends on this crate by path (`sh/rs/hakari.py` checks), so +# a test or lint build compiles each third-party crate with one feature set +# whichever packages it selects, and mbx reuses that build across jobs. +# `cargo publish` strips path-only dev-dependencies, so it is never published. +[package] +name = "workspace-hack" +description = "Media over QUIC - One feature set per dependency, managed by cargo hakari" +authors = ["Luke Curley "] +repository = "https://github.com/moq-dev/moq" +license = "MIT OR Apache-2.0" + +version = "0.1.0" +edition = "2024" +rust-version.workspace = true + +publish = false + +# The parts of the file between the BEGIN HAKARI SECTION and END HAKARI SECTION comments +# are managed by hakari. + +### BEGIN HAKARI SECTION +[dependencies] +anyhow = { version = "1", features = ["backtrace"] } +aws-lc-rs = { version = "1", features = ["prebuilt-nasm"] } +aws-lc-sys = { version = "0.46", default-features = false, features = ["prebuilt-nasm"] } +base16ct = { version = "1", default-features = false, features = ["alloc"] } +base64 = { version = "0.23" } +bitflags = { version = "2", default-features = false, features = ["std"] } +bytemuck = { version = "1", default-features = false, features = ["derive", "extern_crate_alloc", "min_const_generics"] } +byteorder = { version = "1" } +bytes = { version = "1", features = ["serde"] } +camino = { version = "1", default-features = false, features = ["serde1"] } +chrono = { version = "0.4", features = ["serde"] } +clap = { version = "4", features = ["cargo", "derive"] } +clap_builder = { version = "4", default-features = false, features = ["cargo", "color", "help", "std", "suggestions", "usage"] } +const-oid = { version = "0.9", default-features = false, features = ["db"] } +cpal = { version = "0.18", features = ["pipewire", "pulseaudio"] } +crc32fast = { version = "1" } +crossbeam-utils = { version = "0.8" } +crypto-common-6f8ce4dd05d13bba = { package = "crypto-common", version = "0.2", default-features = false, features = ["getrandom"] } +crypto-common-c65f7effa3be6d31 = { package = "crypto-common", version = "0.1", default-features = false, features = ["std"] } +ctutils = { version = "0.4", default-features = false, features = ["subtle"] } +data-encoding = { version = "2" } +der-c38e5c1d305a1b54 = { package = "der", version = "0.8", default-features = false, features = ["oid", "pem", "std"] } +der-ca01ad9e24f5d932 = { package = "der", version = "0.7", default-features = false, features = ["derive", "flagset", "oid", "pem", "std"] } +derive_more = { version = "2", features = ["add", "add_assign", "debug", "deref", "deref_mut", "display", "error", "from", "from_str", "into_iterator", "try_into"] } +digest-93f6ce9d446188ac = { package = "digest", version = "0.10", features = ["mac", "oid", "std"] } +digest-a6292c17cd707f01 = { package = "digest", version = "0.11", features = ["alloc", "mac", "oid", "rand_core"] } +either = { version = "1", features = ["use_std"] } +fastrand = { version = "2", features = ["js"] } +flate2 = { version = "1", features = ["zlib-rs"] } +flume = { version = "0.12" } +foldhash = { version = "0.2" } +form_urlencoded = { version = "1" } +fs-err = { version = "3", default-features = false, features = ["tokio"] } +futures-channel = { version = "0.3", features = ["sink"] } +futures-core = { version = "0.3" } +futures-executor = { version = "0.3" } +futures-io = { version = "0.3" } +futures-sink = { version = "0.3" } +futures-task = { version = "0.3", default-features = false, features = ["std"] } +futures-util = { version = "0.3", features = ["channel", "io", "sink"] } +getrandom-6f8ce4dd05d13bba = { package = "getrandom", version = "0.2", default-features = false, features = ["std"] } +hashbrown = { version = "0.17", default-features = false, features = ["default-hasher", "inline-more"] } +hex = { version = "0.4" } +hmac = { version = "0.12", default-features = false, features = ["reset"] } +hybrid-array = { version = "0.4", default-features = false, features = ["alloc", "subtle", "zeroize"] } +hyper = { version = "1", features = ["full"] } +hyper-util = { version = "0.1", features = ["server-auto", "service", "tokio"] } +indexmap = { version = "2", features = ["serde"] } +lazy_static = { version = "1", default-features = false, features = ["spin_no_std"] } +log = { version = "0.4", default-features = false, features = ["std"] } +md-5-93f6ce9d446188ac = { package = "md-5", version = "0.10" } +md-5-a6292c17cd707f01 = { package = "md-5", version = "0.11" } +memchr = { version = "2" } +mio = { version = "1", features = ["net", "os-ext"] } +nom-181b0d20215bb231 = { package = "nom", version = "8" } +num-bigint = { version = "0.4" } +num-complex = { version = "0.4" } +num-integer = { version = "0.1", features = ["i128"] } +num-iter = { version = "0.1", default-features = false, features = ["i128", "std"] } +num-traits = { version = "0.2", features = ["i128", "libm"] } +object_store = { version = "0.14", default-features = false, features = ["aws", "azure-base", "fs", "gcp-base"] } +once_cell = { version = "1" } +percent-encoding = { version = "2" } +pkcs1 = { version = "0.7", default-features = false, features = ["pem", "pkcs8", "std"] } +pkcs8-93f6ce9d446188ac = { package = "pkcs8", version = "0.10", default-features = false, features = ["pem", "std"] } +pkcs8-a6292c17cd707f01 = { package = "pkcs8", version = "0.11", default-features = false, features = ["pem", "std"] } +portable-atomic = { version = "1", features = ["serde"] } +postcard = { version = "1", default-features = false, features = ["experimental-derive", "use-std"] } +ppv-lite86 = { version = "0.2", default-features = false, features = ["simd", "std"] } +proptest = { version = "1", default-features = false, features = ["handle-panics"] } +rand-274715c4dabd11b0 = { package = "rand", version = "0.9" } +rand-c38e5c1d305a1b54 = { package = "rand", version = "0.8" } +rand_chacha = { version = "0.3", default-features = false, features = ["std"] } +rcgen = { version = "0.14", default-features = false, features = ["aws_lc_rs", "pem", "ring", "x509-parser"] } +regex-automata = { version = "0.4", default-features = false, features = ["dfa-build", "dfa-onepass", "hybrid", "meta", "nfa-backtrack", "perf-inline", "perf-literal", "std", "unicode"] } +regex-syntax = { version = "0.8" } +reqwest = { version = "0.13", default-features = false, features = ["gzip", "http2", "json", "rustls", "rustls-no-provider", "stream"] } +rustls = { version = "0.23", features = ["ring"] } +rustls-pki-types = { version = "1", features = ["std"] } +rustls-webpki = { version = "0.103", features = ["aws-lc-rs", "ring"] } +semver = { version = "1", features = ["serde"] } +serde = { version = "1", features = ["alloc", "derive", "rc"] } +serde_core = { version = "1", features = ["alloc", "rc"] } +serde_json = { version = "1", features = ["preserve_order", "raw_value", "unbounded_depth"] } +serde_spanned = { version = "1", default-features = false, features = ["serde", "std"] } +serde_with = { version = "3", features = ["base64", "hex", "json"] } +sha2-93f6ce9d446188ac = { package = "sha2", version = "0.10" } +sha2-a6292c17cd707f01 = { package = "sha2", version = "0.11" } +signature-7b89eefb6aaa9bf3 = { package = "signature", version = "3", default-features = false, features = ["alloc", "digest", "rand_core"] } +signature-f595c2ba2a3f28df = { package = "signature", version = "2", default-features = false, features = ["digest", "rand_core", "std"] } +simd-adler32 = { version = "0.3" } +simdutf8 = { version = "0.1", default-features = false, features = ["aarch64_neon", "std"] } +siphasher = { version = "1" } +slab = { version = "0.4" } +smallvec = { version = "1", default-features = false, features = ["const_new", "union", "write"] } +socket2 = { version = "0.6", default-features = false, features = ["all"] } +spin-274715c4dabd11b0 = { package = "spin", version = "0.9" } +spki-c38e5c1d305a1b54 = { package = "spki", version = "0.8", default-features = false, features = ["pem", "std"] } +spki-ca01ad9e24f5d932 = { package = "spki", version = "0.7", default-features = false, features = ["pem", "std"] } +subtle = { version = "2", features = ["const-generics"] } +time = { version = "0.3", features = ["formatting", "local-offset", "macros", "parsing"] } +tokio = { version = "1", features = ["full", "test-util"] } +tokio-rustls = { version = "0.26", default-features = false, features = ["aws-lc-rs", "logging"] } +tokio-tungstenite = { version = "0.30", features = ["rustls-tls-native-roots"] } +tokio-util = { version = "0.7", features = ["codec", "io-util", "rt"] } +toml = { version = "1" } +toml_datetime = { version = "1", features = ["serde"] } +toml_parser = { version = "1" } +tower = { version = "0.5", default-features = false, features = ["make", "util"] } +tracing-core = { version = "0.1" } +tracing-subscriber = { version = "0.3", features = ["env-filter", "local-time"] } +tungstenite = { version = "0.30", default-features = false, features = ["__rustls-tls", "handshake"] } +typenum = { version = "1", default-features = false, features = ["const-generics"] } +url = { version = "2", features = ["serde"] } +usage-argv = { version = "7", default-features = false, features = ["complete", "diagnostics", "help-advanced"] } +usage-rs = { version = "7", features = ["completions", "config"] } +uuid = { version = "1", features = ["v4", "v7"] } +winnow-dff4ba8e3ae991db = { package = "winnow", version = "1", features = ["simd"] } +x509-parser = { version = "0.18", features = ["verify", "verify-aws"] } +zeroize = { version = "1", features = ["derive"] } + +[build-dependencies] +anyhow = { version = "1", features = ["backtrace"] } +aws-lc-rs = { version = "1", features = ["prebuilt-nasm"] } +aws-lc-sys = { version = "0.46", default-features = false, features = ["prebuilt-nasm"] } +base16ct = { version = "1", default-features = false, features = ["alloc"] } +base64 = { version = "0.23" } +bitflags = { version = "2", default-features = false, features = ["std"] } +bytemuck = { version = "1", default-features = false, features = ["derive", "extern_crate_alloc", "min_const_generics"] } +byteorder = { version = "1" } +bytes = { version = "1", features = ["serde"] } +camino = { version = "1", default-features = false, features = ["serde1"] } +cc = { version = "1", default-features = false, features = ["parallel"] } +chrono = { version = "0.4", features = ["serde"] } +clap = { version = "4", features = ["cargo", "derive"] } +clap_builder = { version = "4", default-features = false, features = ["cargo", "color", "help", "std", "suggestions", "usage"] } +const-oid = { version = "0.9", default-features = false, features = ["db"] } +cpal = { version = "0.18", features = ["pipewire", "pulseaudio"] } +crc32fast = { version = "1" } +crossbeam-utils = { version = "0.8" } +crypto-common-6f8ce4dd05d13bba = { package = "crypto-common", version = "0.2", default-features = false, features = ["getrandom"] } +crypto-common-c65f7effa3be6d31 = { package = "crypto-common", version = "0.1", default-features = false, features = ["std"] } +ctutils = { version = "0.4", default-features = false, features = ["subtle"] } +data-encoding = { version = "2" } +der-c38e5c1d305a1b54 = { package = "der", version = "0.8", default-features = false, features = ["oid", "pem", "std"] } +der-ca01ad9e24f5d932 = { package = "der", version = "0.7", default-features = false, features = ["derive", "flagset", "oid", "pem", "std"] } +derive_more = { version = "2", features = ["add", "add_assign", "debug", "deref", "deref_mut", "display", "error", "from", "from_str", "into_iterator", "try_into"] } +derive_more-impl = { version = "2", features = ["add", "add_assign", "debug", "deref", "deref_mut", "display", "error", "from", "from_str", "into_iterator", "try_into"] } +digest-93f6ce9d446188ac = { package = "digest", version = "0.10", features = ["mac", "oid", "std"] } +digest-a6292c17cd707f01 = { package = "digest", version = "0.11", features = ["alloc", "mac", "oid", "rand_core"] } +displaydoc = { version = "0.2" } +either = { version = "1", features = ["use_std"] } +fastrand = { version = "2", features = ["js"] } +flate2 = { version = "1", features = ["zlib-rs"] } +flume = { version = "0.12" } +foldhash = { version = "0.2" } +form_urlencoded = { version = "1" } +fs-err = { version = "3", default-features = false, features = ["tokio"] } +futures-channel = { version = "0.3", features = ["sink"] } +futures-core = { version = "0.3" } +futures-executor = { version = "0.3" } +futures-io = { version = "0.3" } +futures-sink = { version = "0.3" } +futures-task = { version = "0.3", default-features = false, features = ["std"] } +futures-util = { version = "0.3", features = ["channel", "io", "sink"] } +getrandom-6f8ce4dd05d13bba = { package = "getrandom", version = "0.2", default-features = false, features = ["std"] } +hashbrown = { version = "0.17", default-features = false, features = ["default-hasher", "inline-more"] } +hex = { version = "0.4" } +hmac = { version = "0.12", default-features = false, features = ["reset"] } +hybrid-array = { version = "0.4", default-features = false, features = ["alloc", "subtle", "zeroize"] } +hyper = { version = "1", features = ["full"] } +hyper-util = { version = "0.1", features = ["server-auto", "service", "tokio"] } +indexmap = { version = "2", features = ["serde"] } +lazy_static = { version = "1", default-features = false, features = ["spin_no_std"] } +log = { version = "0.4", default-features = false, features = ["std"] } +md-5-93f6ce9d446188ac = { package = "md-5", version = "0.10" } +md-5-a6292c17cd707f01 = { package = "md-5", version = "0.11" } +memchr = { version = "2" } +mio = { version = "1", features = ["net", "os-ext"] } +nom-181b0d20215bb231 = { package = "nom", version = "8" } +num-bigint = { version = "0.4" } +num-complex = { version = "0.4" } +num-integer = { version = "0.1", features = ["i128"] } +num-iter = { version = "0.1", default-features = false, features = ["i128", "std"] } +num-traits = { version = "0.2", features = ["i128", "libm"] } +object_store = { version = "0.14", default-features = false, features = ["aws", "azure-base", "fs", "gcp-base"] } +once_cell = { version = "1" } +percent-encoding = { version = "2" } +pkcs1 = { version = "0.7", default-features = false, features = ["pem", "pkcs8", "std"] } +pkcs8-93f6ce9d446188ac = { package = "pkcs8", version = "0.10", default-features = false, features = ["pem", "std"] } +pkcs8-a6292c17cd707f01 = { package = "pkcs8", version = "0.11", default-features = false, features = ["pem", "std"] } +portable-atomic = { version = "1", features = ["serde"] } +postcard = { version = "1", default-features = false, features = ["experimental-derive", "use-std"] } +ppv-lite86 = { version = "0.2", default-features = false, features = ["simd", "std"] } +proc-macro2 = { version = "1" } +proptest = { version = "1", default-features = false, features = ["handle-panics"] } +quote = { version = "1" } +rand-274715c4dabd11b0 = { package = "rand", version = "0.9" } +rand-c38e5c1d305a1b54 = { package = "rand", version = "0.8" } +rand_chacha = { version = "0.3", default-features = false, features = ["std"] } +rcgen = { version = "0.14", default-features = false, features = ["aws_lc_rs", "pem", "ring", "x509-parser"] } +regex-automata = { version = "0.4", default-features = false, features = ["dfa-build", "dfa-onepass", "hybrid", "meta", "nfa-backtrack", "perf-inline", "perf-literal", "std", "unicode"] } +regex-syntax = { version = "0.8" } +reqwest = { version = "0.13", default-features = false, features = ["gzip", "http2", "json", "rustls", "rustls-no-provider", "stream"] } +rustls = { version = "0.23", features = ["ring"] } +rustls-pki-types = { version = "1", features = ["std"] } +rustls-webpki = { version = "0.103", features = ["aws-lc-rs", "ring"] } +semver = { version = "1", features = ["serde"] } +serde = { version = "1", features = ["alloc", "derive", "rc"] } +serde_core = { version = "1", features = ["alloc", "rc"] } +serde_json = { version = "1", features = ["preserve_order", "raw_value", "unbounded_depth"] } +serde_spanned = { version = "1", default-features = false, features = ["serde", "std"] } +serde_with = { version = "3", features = ["base64", "hex", "json"] } +sha2-93f6ce9d446188ac = { package = "sha2", version = "0.10" } +sha2-a6292c17cd707f01 = { package = "sha2", version = "0.11" } +signature-7b89eefb6aaa9bf3 = { package = "signature", version = "3", default-features = false, features = ["alloc", "digest", "rand_core"] } +signature-f595c2ba2a3f28df = { package = "signature", version = "2", default-features = false, features = ["digest", "rand_core", "std"] } +simd-adler32 = { version = "0.3" } +simdutf8 = { version = "0.1", default-features = false, features = ["aarch64_neon", "std"] } +siphasher = { version = "1" } +slab = { version = "0.4" } +smallvec = { version = "1", default-features = false, features = ["const_new", "union", "write"] } +socket2 = { version = "0.6", default-features = false, features = ["all"] } +spin-274715c4dabd11b0 = { package = "spin", version = "0.9" } +spki-c38e5c1d305a1b54 = { package = "spki", version = "0.8", default-features = false, features = ["pem", "std"] } +spki-ca01ad9e24f5d932 = { package = "spki", version = "0.7", default-features = false, features = ["pem", "std"] } +subtle = { version = "2", features = ["const-generics"] } +syn-7b89eefb6aaa9bf3 = { package = "syn", version = "3", features = ["extra-traits", "fold", "full", "visit", "visit-mut"] } +syn-f595c2ba2a3f28df = { package = "syn", version = "2", features = ["extra-traits", "fold", "full", "visit", "visit-mut"] } +time = { version = "0.3", features = ["formatting", "local-offset", "macros", "parsing"] } +tokio = { version = "1", features = ["full", "test-util"] } +tokio-rustls = { version = "0.26", default-features = false, features = ["aws-lc-rs", "logging"] } +tokio-tungstenite = { version = "0.30", features = ["rustls-tls-native-roots"] } +tokio-util = { version = "0.7", features = ["codec", "io-util", "rt"] } +toml = { version = "1" } +toml_datetime = { version = "1", features = ["serde"] } +toml_parser = { version = "1" } +tower = { version = "0.5", default-features = false, features = ["make", "util"] } +tracing-core = { version = "0.1" } +tracing-subscriber = { version = "0.3", features = ["env-filter", "local-time"] } +tungstenite = { version = "0.30", default-features = false, features = ["__rustls-tls", "handshake"] } +typenum = { version = "1", default-features = false, features = ["const-generics"] } +url = { version = "2", features = ["serde"] } +usage-argv = { version = "7", default-features = false, features = ["complete", "diagnostics", "help-advanced"] } +usage-rs = { version = "7", features = ["completions", "config"] } +uuid = { version = "1", features = ["v4", "v7"] } +winnow-ca01ad9e24f5d932 = { package = "winnow", version = "0.7" } +winnow-dff4ba8e3ae991db = { package = "winnow", version = "1", features = ["simd"] } +x509-parser = { version = "0.18", features = ["verify", "verify-aws"] } +zeroize = { version = "1", features = ["derive"] } + +[target.aarch64-apple-darwin.dependencies] +arrayvec = { version = "0.7" } +block2 = { version = "0.6" } +crossbeam-epoch = { version = "0.9" } +dispatch2 = { version = "0.3" } +errno = { version = "0.3" } +getrandom-9fbad63c4bcf4a8f = { package = "getrandom", version = "0.4", default-features = false, features = ["std", "sys_rng"] } +half = { version = "2", features = ["num-traits"] } +hyper-rustls = { version = "0.27", default-features = false, features = ["aws-lc-rs", "http1", "http2", "tls12"] } +hyper-util = { version = "0.1", default-features = false, features = ["client-legacy", "client-proxy"] } +image = { version = "0.25", default-features = false, features = ["jpeg", "png", "tiff"] } +libc = { version = "0.2", features = ["extra_traits"] } +miniz_oxide = { version = "0.8", features = ["simd"] } +nix = { version = "0.31", features = ["net", "uio"] } +objc2 = { version = "0.6" } +objc2-core-audio = { version = "0.3", default-features = false, features = ["AudioHardware", "AudioHardwareDeprecated", "objc2", "objc2-core-audio-types", "objc2-foundation", "std"] } +objc2-core-audio-types = { version = "0.3" } +objc2-core-foundation = { version = "0.3", features = ["CFBase"] } +objc2-core-graphics = { version = "0.3" } +objc2-core-video = { version = "0.3" } +objc2-foundation = { version = "0.3" } +objc2-metal = { version = "0.3" } +objc2-quartz-core = { version = "0.3", default-features = false, features = ["CALayer", "CAMediaTiming", "CAMetalLayer", "objc2-core-foundation", "objc2-core-graphics", "objc2-metal", "std"] } +quick-xml-b32c9ddb6d93a9d2 = { package = "quick-xml", version = "0.42", features = ["serialize"] } +regex = { version = "1" } +rustix = { version = "1", features = ["event", "fs", "net", "pipe", "process", "termios", "time"] } +security-framework-sys = { version = "2" } +spin-93f6ce9d446188ac = { package = "spin", version = "0.10", default-features = false, features = ["once", "rwlock", "spin_mutex"] } +tokio-rustls = { version = "0.26", default-features = false, features = ["tls12"] } +tower = { version = "0.5", default-features = false, features = ["retry", "timeout"] } +tower-http = { version = "0.6", default-features = false, features = ["decompression-gzip", "follow-redirect"] } +tracing = { version = "0.1", features = ["log"] } +wgpu = { version = "30", features = ["fragile-send-sync-non-atomic-wasm", "webgl"] } +wgpu-core = { version = "30", features = ["dx12", "fragile-send-sync-non-atomic-wasm", "gles", "metal", "portable-atomic", "renderdoc", "vulkan", "webgl", "wgsl"] } +wgpu-hal = { version = "30", default-features = false, features = ["fragile-send-sync-non-atomic-wasm", "metal", "portable-atomic"] } +wgpu-types = { version = "30", default-features = false, features = ["fragile-send-sync-non-atomic-wasm", "std", "web"] } +winit = { version = "0.30" } +zerocopy = { version = "0.8", default-features = false, features = ["derive", "simd"] } + +[target.aarch64-apple-darwin.build-dependencies] +arrayvec = { version = "0.7" } +block2 = { version = "0.6" } +crossbeam-epoch = { version = "0.9" } +dispatch2 = { version = "0.3" } +errno = { version = "0.3" } +getrandom-9fbad63c4bcf4a8f = { package = "getrandom", version = "0.4", default-features = false, features = ["std", "sys_rng"] } +half = { version = "2", features = ["num-traits"] } +hyper-rustls = { version = "0.27", default-features = false, features = ["aws-lc-rs", "http1", "http2", "tls12"] } +hyper-util = { version = "0.1", default-features = false, features = ["client-legacy", "client-proxy"] } +image = { version = "0.25", default-features = false, features = ["jpeg", "png", "tiff"] } +libc = { version = "0.2", features = ["extra_traits"] } +miniz_oxide = { version = "0.8", features = ["simd"] } +nix = { version = "0.31", features = ["net", "uio"] } +objc2 = { version = "0.6" } +objc2-core-audio = { version = "0.3", default-features = false, features = ["AudioHardware", "AudioHardwareDeprecated", "objc2", "objc2-core-audio-types", "objc2-foundation", "std"] } +objc2-core-audio-types = { version = "0.3" } +objc2-core-foundation = { version = "0.3", features = ["CFBase"] } +objc2-core-graphics = { version = "0.3" } +objc2-core-video = { version = "0.3" } +objc2-foundation = { version = "0.3" } +objc2-metal = { version = "0.3" } +objc2-quartz-core = { version = "0.3", default-features = false, features = ["CALayer", "CAMediaTiming", "CAMetalLayer", "objc2-core-foundation", "objc2-core-graphics", "objc2-metal", "std"] } +quick-xml-b32c9ddb6d93a9d2 = { package = "quick-xml", version = "0.42", features = ["serialize"] } +regex = { version = "1" } +rustix = { version = "1", features = ["event", "fs", "net", "pipe", "process", "termios", "time"] } +security-framework-sys = { version = "2" } +spin-93f6ce9d446188ac = { package = "spin", version = "0.10", default-features = false, features = ["once", "rwlock", "spin_mutex"] } +tokio-rustls = { version = "0.26", default-features = false, features = ["tls12"] } +tower = { version = "0.5", default-features = false, features = ["retry", "timeout"] } +tower-http = { version = "0.6", default-features = false, features = ["decompression-gzip", "follow-redirect"] } +tracing = { version = "0.1", features = ["log"] } +wgpu = { version = "30", features = ["fragile-send-sync-non-atomic-wasm", "webgl"] } +wgpu-core = { version = "30", features = ["dx12", "fragile-send-sync-non-atomic-wasm", "gles", "metal", "portable-atomic", "renderdoc", "vulkan", "webgl", "wgsl"] } +wgpu-hal = { version = "30", default-features = false, features = ["fragile-send-sync-non-atomic-wasm", "metal", "portable-atomic"] } +wgpu-types = { version = "30", default-features = false, features = ["fragile-send-sync-non-atomic-wasm", "std", "web"] } +winit = { version = "0.30" } +zerocopy = { version = "0.8", default-features = false, features = ["derive", "simd"] } + +[target.aarch64-unknown-linux-gnu.dependencies] +arrayvec = { version = "0.7" } +bytemuck = { version = "1", default-features = false, features = ["aarch64_simd"] } +crossbeam-epoch = { version = "0.9" } +cudarc = { version = "0.19", default-features = false, features = ["cuda-12020", "driver", "fallback-dynamic-loading", "nvrtc"] } +event-listener = { version = "5" } +event-listener-strategy = { version = "0.5" } +futures-lite = { version = "2" } +getrandom-468e82937335b1c9 = { package = "getrandom", version = "0.3", default-features = false, features = ["std"] } +getrandom-9fbad63c4bcf4a8f = { package = "getrandom", version = "0.4", default-features = false, features = ["std", "sys_rng"] } +half = { version = "2", default-features = false, features = ["num-traits"] } +hyper-rustls = { version = "0.27", default-features = false, features = ["aws-lc-rs", "http1", "http2", "tls12"] } +hyper-util = { version = "0.1", default-features = false, features = ["client-legacy", "client-proxy"] } +itertools = { version = "0.13" } +libc = { version = "0.2", features = ["extra_traits"] } +libspa = { version = "0.10", default-features = false, features = ["v0_3_33"] } +linux-raw-sys = { version = "0.12", features = ["auxvec", "elf", "if_ether", "ioctl", "net", "netlink", "no_std", "prctl", "system", "xdp"] } +log = { version = "0.4", default-features = false, features = ["release_max_level_debug"] } +miniz_oxide = { version = "0.8", features = ["simd"] } +nix = { version = "0.31", features = ["net", "uio"] } +nom-15128469a54ed75a = { package = "nom", version = "7" } +pipewire = { version = "0.10", default-features = false, features = ["v0_3_53"] } +proc-macro2 = { version = "1" } +quick-xml-4beaf6d1349630b6 = { package = "quick-xml", version = "0.41", features = ["overlapped-lists", "serialize"] } +quote = { version = "1" } +regex = { version = "1" } +rustc-hash = { version = "1" } +rustix = { version = "1", features = ["event", "net", "param", "pipe", "process", "shm", "system", "termios", "thread", "time"] } +spin-93f6ce9d446188ac = { package = "spin", version = "0.10", default-features = false, features = ["once", "rwlock", "spin_mutex"] } +syn-7b89eefb6aaa9bf3 = { package = "syn", version = "3", features = ["extra-traits", "fold", "full", "visit", "visit-mut"] } +tokio = { version = "1", default-features = false, features = ["tracing"] } +tokio-rustls = { version = "0.26", default-features = false, features = ["tls12"] } +tower = { version = "0.5", default-features = false, features = ["retry", "timeout"] } +tower-http = { version = "0.6", default-features = false, features = ["decompression-gzip", "follow-redirect"] } +tracing = { version = "0.1", features = ["log"] } +uuid = { version = "1", default-features = false, features = ["serde"] } +wgpu = { version = "30", features = ["fragile-send-sync-non-atomic-wasm", "webgl"] } +wgpu-core = { version = "30", features = ["dx12", "fragile-send-sync-non-atomic-wasm", "gles", "metal", "portable-atomic", "renderdoc", "vulkan", "webgl", "wgsl"] } +wgpu-hal = { version = "30", default-features = false, features = ["dx12", "fragile-send-sync-non-atomic-wasm", "gles", "portable-atomic", "renderdoc", "vulkan"] } +wgpu-types = { version = "30", default-features = false, features = ["fragile-send-sync-non-atomic-wasm", "std", "web"] } +winit = { version = "0.30" } +zerocopy = { version = "0.8", default-features = false, features = ["derive", "simd"] } + +[target.aarch64-unknown-linux-gnu.build-dependencies] +arrayvec = { version = "0.7" } +bytemuck = { version = "1", default-features = false, features = ["aarch64_simd"] } +clang-sys = { version = "1", default-features = false, features = ["clang_11_0", "runtime"] } +crossbeam-epoch = { version = "0.9" } +cudarc = { version = "0.19", default-features = false, features = ["cuda-12020", "driver", "fallback-dynamic-loading", "nvrtc"] } +event-listener = { version = "5" } +event-listener-strategy = { version = "0.5" } +futures-lite = { version = "2" } +getrandom-468e82937335b1c9 = { package = "getrandom", version = "0.3", default-features = false, features = ["std"] } +getrandom-9fbad63c4bcf4a8f = { package = "getrandom", version = "0.4", default-features = false, features = ["std", "sys_rng"] } +half = { version = "2", default-features = false, features = ["num-traits"] } +hyper-rustls = { version = "0.27", default-features = false, features = ["aws-lc-rs", "http1", "http2", "tls12"] } +hyper-util = { version = "0.1", default-features = false, features = ["client-legacy", "client-proxy"] } +itertools = { version = "0.13" } +libc = { version = "0.2", features = ["extra_traits"] } +libspa = { version = "0.10", default-features = false, features = ["v0_3_33"] } +linux-raw-sys = { version = "0.12", features = ["auxvec", "elf", "if_ether", "ioctl", "net", "netlink", "no_std", "prctl", "system", "xdp"] } +log = { version = "0.4", default-features = false, features = ["release_max_level_debug"] } +miniz_oxide = { version = "0.8", features = ["simd"] } +nix = { version = "0.31", features = ["net", "uio"] } +nom-15128469a54ed75a = { package = "nom", version = "7" } +pipewire = { version = "0.10", default-features = false, features = ["v0_3_53"] } +quick-xml-4beaf6d1349630b6 = { package = "quick-xml", version = "0.41", features = ["overlapped-lists", "serialize"] } +regex = { version = "1" } +rustc-hash = { version = "1" } +rustix = { version = "1", features = ["event", "net", "param", "pipe", "process", "shm", "system", "termios", "thread", "time"] } +spin-93f6ce9d446188ac = { package = "spin", version = "0.10", default-features = false, features = ["once", "rwlock", "spin_mutex"] } +tokio = { version = "1", default-features = false, features = ["tracing"] } +tokio-rustls = { version = "0.26", default-features = false, features = ["tls12"] } +tower = { version = "0.5", default-features = false, features = ["retry", "timeout"] } +tower-http = { version = "0.6", default-features = false, features = ["decompression-gzip", "follow-redirect"] } +tracing = { version = "0.1", features = ["log"] } +uuid = { version = "1", default-features = false, features = ["serde"] } +wgpu = { version = "30", features = ["fragile-send-sync-non-atomic-wasm", "webgl"] } +wgpu-core = { version = "30", features = ["dx12", "fragile-send-sync-non-atomic-wasm", "gles", "metal", "portable-atomic", "renderdoc", "vulkan", "webgl", "wgsl"] } +wgpu-hal = { version = "30", default-features = false, features = ["dx12", "fragile-send-sync-non-atomic-wasm", "gles", "portable-atomic", "renderdoc", "vulkan"] } +wgpu-types = { version = "30", default-features = false, features = ["fragile-send-sync-non-atomic-wasm", "std", "web"] } +winit = { version = "0.30" } +zerocopy = { version = "0.8", default-features = false, features = ["derive", "simd"] } + +[target.x86_64-pc-windows-msvc.dependencies] +arrayvec = { version = "0.7" } +crossbeam-epoch = { version = "0.9" } +getrandom-9fbad63c4bcf4a8f = { package = "getrandom", version = "0.4", default-features = false, features = ["std", "sys_rng"] } +half = { version = "2", default-features = false, features = ["num-traits"] } +hyper-rustls = { version = "0.27", default-features = false, features = ["aws-lc-rs", "http1", "http2", "tls12"] } +hyper-util = { version = "0.1", default-features = false, features = ["client-legacy", "client-proxy"] } +image = { version = "0.25", default-features = false, features = ["bmp", "jpeg", "png"] } +regex = { version = "1" } +spin-93f6ce9d446188ac = { package = "spin", version = "0.10", default-features = false, features = ["once", "rwlock", "spin_mutex"] } +tokio-rustls = { version = "0.26", default-features = false, features = ["tls12"] } +tower = { version = "0.5", default-features = false, features = ["retry", "timeout"] } +tower-http = { version = "0.6", default-features = false, features = ["decompression-gzip", "follow-redirect"] } +tracing = { version = "0.1", features = ["log"] } +wgpu = { version = "30", features = ["fragile-send-sync-non-atomic-wasm", "webgl"] } +wgpu-core = { version = "30", features = ["dx12", "fragile-send-sync-non-atomic-wasm", "gles", "metal", "portable-atomic", "renderdoc", "vulkan", "webgl", "wgsl"] } +wgpu-hal = { version = "30", default-features = false, features = ["dx12", "fragile-send-sync-non-atomic-wasm", "gles", "portable-atomic", "renderdoc", "vulkan"] } +wgpu-types = { version = "30", default-features = false, features = ["fragile-send-sync-non-atomic-wasm", "std", "web"] } +winapi = { version = "0.3", default-features = false, features = ["cfg", "evntrace", "in6addr", "inaddr", "minwinbase", "minwindef", "ntsecapi", "processthreadsapi", "sysinfoapi", "winbase", "windef", "winioctl"] } +windows = { version = "0.62", features = ["Foundation_Metadata", "Graphics_Capture", "Graphics_DirectX_Direct3D11", "Security_Authorization_AppCapabilityAccess", "Wdk_System_SystemInformation", "Wdk_System_SystemServices", "Wdk_System_Threading", "Win32_Devices_DeviceAndDriverInstallation", "Win32_Devices_Display", "Win32_Devices_Properties", "Win32_Graphics_Direct3D10", "Win32_Graphics_Direct3D11", "Win32_Graphics_Direct3D12", "Win32_Graphics_Direct3D_Dxc", "Win32_Graphics_Direct3D_Fxc", "Win32_Graphics_DirectComposition", "Win32_Graphics_Dwm", "Win32_Graphics_Dxgi_Common", "Win32_Graphics_Gdi", "Win32_Graphics_OpenGL", "Win32_Media_Audio", "Win32_Media_KernelStreaming", "Win32_Media_MediaFoundation", "Win32_Media_Multimedia", "Win32_NetworkManagement_IpHelper", "Win32_NetworkManagement_Ndis", "Win32_Networking_WinSock", "Win32_Security_Authorization", "Win32_System_Com_StructuredStorage", "Win32_System_Diagnostics_Debug", "Win32_System_Diagnostics_ToolHelp", "Win32_System_Kernel", "Win32_System_LibraryLoader", "Win32_System_Memory", "Win32_System_Ole", "Win32_System_Performance", "Win32_System_Power", "Win32_System_ProcessStatus", "Win32_System_Registry", "Win32_System_RemoteDesktop", "Win32_System_Rpc", "Win32_System_SystemInformation", "Win32_System_SystemServices", "Win32_System_Threading", "Win32_System_Variant", "Win32_System_WinRT_Direct3D11", "Win32_System_WinRT_Graphics_Capture", "Win32_System_Wmi", "Win32_UI_HiDpi", "Win32_UI_Shell_PropertiesSystem", "Win32_UI_WindowsAndMessaging"] } +windows-core = { version = "0.62" } +windows-result = { version = "0.4" } +windows-sys-b21d60becc0929df = { package = "windows-sys", version = "0.52", features = ["Win32_Devices_HumanInterfaceDevice", "Win32_Foundation", "Win32_Globalization", "Win32_Graphics_Dwm", "Win32_Graphics_Gdi", "Win32_Media", "Win32_Networking_WinSock", "Win32_Security", "Win32_System_Com_StructuredStorage", "Win32_System_IO", "Win32_System_LibraryLoader", "Win32_System_Ole", "Win32_System_SystemInformation", "Win32_System_SystemServices", "Win32_System_Threading", "Win32_System_WindowsProgramming", "Win32_UI_Accessibility", "Win32_UI_Controls", "Win32_UI_HiDpi", "Win32_UI_Input_Ime", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_Input_Pointer", "Win32_UI_Input_Touch", "Win32_UI_Shell", "Win32_UI_TextServices", "Win32_UI_WindowsAndMessaging"] } +windows-sys-d4189bed749088b6 = { package = "windows-sys", version = "0.61", features = ["Wdk_Foundation", "Wdk_Storage_FileSystem", "Wdk_System_IO", "Win32_Graphics_Gdi", "Win32_NetworkManagement_IpHelper", "Win32_NetworkManagement_Ndis", "Win32_Networking_WinSock", "Win32_Security_Authentication_Identity", "Win32_Security_Credentials", "Win32_Security_Cryptography", "Win32_Storage_FileSystem", "Win32_System_Com", "Win32_System_Console", "Win32_System_DataExchange", "Win32_System_Diagnostics_Debug", "Win32_System_IO", "Win32_System_LibraryLoader", "Win32_System_Memory", "Win32_System_Ole", "Win32_System_Pipes", "Win32_System_Registry", "Win32_System_SystemInformation", "Win32_System_SystemServices", "Win32_System_Threading", "Win32_System_WindowsProgramming", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_Shell", "Win32_UI_WindowsAndMessaging"] } +winit = { version = "0.30" } +zerocopy = { version = "0.8", default-features = false, features = ["derive", "simd"] } + +[target.x86_64-pc-windows-msvc.build-dependencies] +arrayvec = { version = "0.7" } +crossbeam-epoch = { version = "0.9" } +getrandom-9fbad63c4bcf4a8f = { package = "getrandom", version = "0.4", default-features = false, features = ["std", "sys_rng"] } +half = { version = "2", default-features = false, features = ["num-traits"] } +hyper-rustls = { version = "0.27", default-features = false, features = ["aws-lc-rs", "http1", "http2", "tls12"] } +hyper-util = { version = "0.1", default-features = false, features = ["client-legacy", "client-proxy"] } +image = { version = "0.25", default-features = false, features = ["bmp", "jpeg", "png"] } +regex = { version = "1" } +spin-93f6ce9d446188ac = { package = "spin", version = "0.10", default-features = false, features = ["once", "rwlock", "spin_mutex"] } +tokio-rustls = { version = "0.26", default-features = false, features = ["tls12"] } +tower = { version = "0.5", default-features = false, features = ["retry", "timeout"] } +tower-http = { version = "0.6", default-features = false, features = ["decompression-gzip", "follow-redirect"] } +tracing = { version = "0.1", features = ["log"] } +wgpu = { version = "30", features = ["fragile-send-sync-non-atomic-wasm", "webgl"] } +wgpu-core = { version = "30", features = ["dx12", "fragile-send-sync-non-atomic-wasm", "gles", "metal", "portable-atomic", "renderdoc", "vulkan", "webgl", "wgsl"] } +wgpu-hal = { version = "30", default-features = false, features = ["dx12", "fragile-send-sync-non-atomic-wasm", "gles", "portable-atomic", "renderdoc", "vulkan"] } +wgpu-types = { version = "30", default-features = false, features = ["fragile-send-sync-non-atomic-wasm", "std", "web"] } +winapi = { version = "0.3", default-features = false, features = ["cfg", "evntrace", "in6addr", "inaddr", "minwinbase", "minwindef", "ntsecapi", "processthreadsapi", "sysinfoapi", "winbase", "windef", "winioctl"] } +windows = { version = "0.62", features = ["Foundation_Metadata", "Graphics_Capture", "Graphics_DirectX_Direct3D11", "Security_Authorization_AppCapabilityAccess", "Wdk_System_SystemInformation", "Wdk_System_SystemServices", "Wdk_System_Threading", "Win32_Devices_DeviceAndDriverInstallation", "Win32_Devices_Display", "Win32_Devices_Properties", "Win32_Graphics_Direct3D10", "Win32_Graphics_Direct3D11", "Win32_Graphics_Direct3D12", "Win32_Graphics_Direct3D_Dxc", "Win32_Graphics_Direct3D_Fxc", "Win32_Graphics_DirectComposition", "Win32_Graphics_Dwm", "Win32_Graphics_Dxgi_Common", "Win32_Graphics_Gdi", "Win32_Graphics_OpenGL", "Win32_Media_Audio", "Win32_Media_KernelStreaming", "Win32_Media_MediaFoundation", "Win32_Media_Multimedia", "Win32_NetworkManagement_IpHelper", "Win32_NetworkManagement_Ndis", "Win32_Networking_WinSock", "Win32_Security_Authorization", "Win32_System_Com_StructuredStorage", "Win32_System_Diagnostics_Debug", "Win32_System_Diagnostics_ToolHelp", "Win32_System_Kernel", "Win32_System_LibraryLoader", "Win32_System_Memory", "Win32_System_Ole", "Win32_System_Performance", "Win32_System_Power", "Win32_System_ProcessStatus", "Win32_System_Registry", "Win32_System_RemoteDesktop", "Win32_System_Rpc", "Win32_System_SystemInformation", "Win32_System_SystemServices", "Win32_System_Threading", "Win32_System_Variant", "Win32_System_WinRT_Direct3D11", "Win32_System_WinRT_Graphics_Capture", "Win32_System_Wmi", "Win32_UI_HiDpi", "Win32_UI_Shell_PropertiesSystem", "Win32_UI_WindowsAndMessaging"] } +windows-core = { version = "0.62" } +windows-result = { version = "0.4" } +windows-sys-b21d60becc0929df = { package = "windows-sys", version = "0.52", features = ["Win32_Devices_HumanInterfaceDevice", "Win32_Foundation", "Win32_Globalization", "Win32_Graphics_Dwm", "Win32_Graphics_Gdi", "Win32_Media", "Win32_Networking_WinSock", "Win32_Security", "Win32_System_Com_StructuredStorage", "Win32_System_IO", "Win32_System_LibraryLoader", "Win32_System_Ole", "Win32_System_SystemInformation", "Win32_System_SystemServices", "Win32_System_Threading", "Win32_System_WindowsProgramming", "Win32_UI_Accessibility", "Win32_UI_Controls", "Win32_UI_HiDpi", "Win32_UI_Input_Ime", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_Input_Pointer", "Win32_UI_Input_Touch", "Win32_UI_Shell", "Win32_UI_TextServices", "Win32_UI_WindowsAndMessaging"] } +windows-sys-d4189bed749088b6 = { package = "windows-sys", version = "0.61", features = ["Wdk_Foundation", "Wdk_Storage_FileSystem", "Wdk_System_IO", "Win32_Graphics_Gdi", "Win32_NetworkManagement_IpHelper", "Win32_NetworkManagement_Ndis", "Win32_Networking_WinSock", "Win32_Security_Authentication_Identity", "Win32_Security_Credentials", "Win32_Security_Cryptography", "Win32_Storage_FileSystem", "Win32_System_Com", "Win32_System_Console", "Win32_System_DataExchange", "Win32_System_Diagnostics_Debug", "Win32_System_IO", "Win32_System_LibraryLoader", "Win32_System_Memory", "Win32_System_Ole", "Win32_System_Pipes", "Win32_System_Registry", "Win32_System_SystemInformation", "Win32_System_SystemServices", "Win32_System_Threading", "Win32_System_WindowsProgramming", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_Shell", "Win32_UI_WindowsAndMessaging"] } +winit = { version = "0.30" } +zerocopy = { version = "0.8", default-features = false, features = ["derive", "simd"] } + +[target.x86_64-unknown-linux-gnu.dependencies] +arrayvec = { version = "0.7" } +bytemuck = { version = "1", default-features = false, features = ["aarch64_simd"] } +crossbeam-epoch = { version = "0.9" } +cudarc = { version = "0.19", default-features = false, features = ["cuda-12020", "driver", "fallback-dynamic-loading", "nvrtc"] } +event-listener = { version = "5" } +event-listener-strategy = { version = "0.5" } +futures-lite = { version = "2" } +getrandom-468e82937335b1c9 = { package = "getrandom", version = "0.3", default-features = false, features = ["std"] } +getrandom-9fbad63c4bcf4a8f = { package = "getrandom", version = "0.4", default-features = false, features = ["std", "sys_rng"] } +half = { version = "2", default-features = false, features = ["num-traits"] } +hyper-rustls = { version = "0.27", default-features = false, features = ["aws-lc-rs", "http1", "http2", "tls12"] } +hyper-util = { version = "0.1", default-features = false, features = ["client-legacy", "client-proxy"] } +itertools = { version = "0.13" } +libc = { version = "0.2", features = ["extra_traits"] } +libspa = { version = "0.10", default-features = false, features = ["v0_3_33"] } +linux-raw-sys = { version = "0.12", features = ["auxvec", "elf", "if_ether", "ioctl", "net", "netlink", "no_std", "prctl", "system", "xdp"] } +log = { version = "0.4", default-features = false, features = ["release_max_level_debug"] } +miniz_oxide = { version = "0.8", features = ["simd"] } +nix = { version = "0.31", features = ["net", "uio"] } +nom-15128469a54ed75a = { package = "nom", version = "7" } +pipewire = { version = "0.10", default-features = false, features = ["v0_3_53"] } +proc-macro2 = { version = "1" } +quick-xml-4beaf6d1349630b6 = { package = "quick-xml", version = "0.41", features = ["overlapped-lists", "serialize"] } +quote = { version = "1" } +regex = { version = "1" } +rustc-hash = { version = "1" } +rustix = { version = "1", features = ["event", "net", "param", "pipe", "process", "shm", "system", "termios", "thread", "time"] } +spin-93f6ce9d446188ac = { package = "spin", version = "0.10", default-features = false, features = ["once", "rwlock", "spin_mutex"] } +syn-7b89eefb6aaa9bf3 = { package = "syn", version = "3", features = ["extra-traits", "fold", "full", "visit", "visit-mut"] } +tokio = { version = "1", default-features = false, features = ["tracing"] } +tokio-rustls = { version = "0.26", default-features = false, features = ["tls12"] } +tower = { version = "0.5", default-features = false, features = ["retry", "timeout"] } +tower-http = { version = "0.6", default-features = false, features = ["decompression-gzip", "follow-redirect"] } +tracing = { version = "0.1", features = ["log"] } +uuid = { version = "1", default-features = false, features = ["serde"] } +wgpu = { version = "30", features = ["fragile-send-sync-non-atomic-wasm", "webgl"] } +wgpu-core = { version = "30", features = ["dx12", "fragile-send-sync-non-atomic-wasm", "gles", "metal", "portable-atomic", "renderdoc", "vulkan", "webgl", "wgsl"] } +wgpu-hal = { version = "30", default-features = false, features = ["dx12", "fragile-send-sync-non-atomic-wasm", "gles", "portable-atomic", "renderdoc", "vulkan"] } +wgpu-types = { version = "30", default-features = false, features = ["fragile-send-sync-non-atomic-wasm", "std", "web"] } +winit = { version = "0.30" } +zerocopy = { version = "0.8", default-features = false, features = ["derive", "simd"] } + +[target.x86_64-unknown-linux-gnu.build-dependencies] +arrayvec = { version = "0.7" } +bytemuck = { version = "1", default-features = false, features = ["aarch64_simd"] } +clang-sys = { version = "1", default-features = false, features = ["clang_11_0", "runtime"] } +crossbeam-epoch = { version = "0.9" } +cudarc = { version = "0.19", default-features = false, features = ["cuda-12020", "driver", "fallback-dynamic-loading", "nvrtc"] } +event-listener = { version = "5" } +event-listener-strategy = { version = "0.5" } +futures-lite = { version = "2" } +getrandom-468e82937335b1c9 = { package = "getrandom", version = "0.3", default-features = false, features = ["std"] } +getrandom-9fbad63c4bcf4a8f = { package = "getrandom", version = "0.4", default-features = false, features = ["std", "sys_rng"] } +half = { version = "2", default-features = false, features = ["num-traits"] } +hyper-rustls = { version = "0.27", default-features = false, features = ["aws-lc-rs", "http1", "http2", "tls12"] } +hyper-util = { version = "0.1", default-features = false, features = ["client-legacy", "client-proxy"] } +itertools = { version = "0.13" } +libc = { version = "0.2", features = ["extra_traits"] } +libspa = { version = "0.10", default-features = false, features = ["v0_3_33"] } +linux-raw-sys = { version = "0.12", features = ["auxvec", "elf", "if_ether", "ioctl", "net", "netlink", "no_std", "prctl", "system", "xdp"] } +log = { version = "0.4", default-features = false, features = ["release_max_level_debug"] } +miniz_oxide = { version = "0.8", features = ["simd"] } +nix = { version = "0.31", features = ["net", "uio"] } +nom-15128469a54ed75a = { package = "nom", version = "7" } +pipewire = { version = "0.10", default-features = false, features = ["v0_3_53"] } +quick-xml-4beaf6d1349630b6 = { package = "quick-xml", version = "0.41", features = ["overlapped-lists", "serialize"] } +regex = { version = "1" } +rustc-hash = { version = "1" } +rustix = { version = "1", features = ["event", "net", "param", "pipe", "process", "shm", "system", "termios", "thread", "time"] } +spin-93f6ce9d446188ac = { package = "spin", version = "0.10", default-features = false, features = ["once", "rwlock", "spin_mutex"] } +tokio = { version = "1", default-features = false, features = ["tracing"] } +tokio-rustls = { version = "0.26", default-features = false, features = ["tls12"] } +tower = { version = "0.5", default-features = false, features = ["retry", "timeout"] } +tower-http = { version = "0.6", default-features = false, features = ["decompression-gzip", "follow-redirect"] } +tracing = { version = "0.1", features = ["log"] } +uuid = { version = "1", default-features = false, features = ["serde"] } +wgpu = { version = "30", features = ["fragile-send-sync-non-atomic-wasm", "webgl"] } +wgpu-core = { version = "30", features = ["dx12", "fragile-send-sync-non-atomic-wasm", "gles", "metal", "portable-atomic", "renderdoc", "vulkan", "webgl", "wgsl"] } +wgpu-hal = { version = "30", default-features = false, features = ["dx12", "fragile-send-sync-non-atomic-wasm", "gles", "portable-atomic", "renderdoc", "vulkan"] } +wgpu-types = { version = "30", default-features = false, features = ["fragile-send-sync-non-atomic-wasm", "std", "web"] } +winit = { version = "0.30" } +zerocopy = { version = "0.8", default-features = false, features = ["derive", "simd"] } + +### END HAKARI SECTION diff --git a/rs/workspace-hack/build.rs b/rs/workspace-hack/build.rs new file mode 100644 index 0000000000..92518ef04c --- /dev/null +++ b/rs/workspace-hack/build.rs @@ -0,0 +1,2 @@ +// A build script is required for cargo to consider build dependencies. +fn main() {} diff --git a/rs/workspace-hack/src/lib.rs b/rs/workspace-hack/src/lib.rs new file mode 100644 index 0000000000..22489f632b --- /dev/null +++ b/rs/workspace-hack/src/lib.rs @@ -0,0 +1 @@ +// This is a stub lib.rs. diff --git a/sh/rs/hakari.py b/sh/rs/hakari.py new file mode 100755 index 0000000000..4fb46d8482 --- /dev/null +++ b/sh/rs/hakari.py @@ -0,0 +1,57 @@ +#!/usr/bin/env python3 +"""Fail when a workspace member's edge to the workspace-hack is missing or wrong. + +The hack is a path-only dev-dependency, so tests and lints share one build of +every third-party crate while `cargo publish` strips it. `cargo hakari +manage-deps` only writes normal dependencies, so this checks the edges instead: +every member dev-depends on the hack, except those `.config/hakari.toml` +excludes, which must not depend on it at all. Run from `just rs lint`. +""" + +import json +import subprocess +import sys +from pathlib import Path + +import tomllib + +ROOT = Path(__file__).resolve().parents[2] + +config = tomllib.loads((ROOT / ".config/hakari.toml").read_text()) +hack = config["hakari-package"] +excluded = {hack} +for section in ("final-excludes", "traversal-excludes"): + excluded |= set(config.get(section, {}).get("workspace-members", [])) + +metadata = json.loads( + subprocess.run( + ["cargo", "metadata", "--locked", "--no-deps", "--format-version", "1"], + cwd=ROOT, + check=True, + capture_output=True, + text=True, + ).stdout +) + +errors = [] +for package in metadata["packages"]: + name = package["name"] + edges = [dep for dep in package["dependencies"] if dep["name"] == hack] + manifest = Path(package["manifest_path"]).relative_to(ROOT) + if name in excluded: + if edges: + errors.append(f"{manifest}: {name} is excluded in .config/hakari.toml but depends on {hack}") + continue + # A version requirement would survive `cargo publish` and point at a crate + # that was never published. + if not any(dep["kind"] == "dev" and dep.get("path") and dep["req"] == "*" for dep in edges): + hack_dir = Path(next(p["manifest_path"] for p in metadata["packages"] if p["name"] == hack)).parent + rel = Path(*[".."] * len(manifest.parent.parts)) / hack_dir.relative_to(ROOT) + errors.append(f'{manifest}: add `{hack} = {{ path = "{rel}" }}` under [dev-dependencies]') + for dep in edges: + if dep["kind"] != "dev": + errors.append(f"{manifest}: {hack} must be a dev-dependency only, or publishing {name} fails") + +if errors: + print("\n".join(errors), file=sys.stderr) + sys.exit(1)