diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c39b4a2458e..7a49190d77f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -453,6 +453,37 @@ jobs: path: ${{ github.workspace }}/target/cargo-timings/ retention-days: 30 + dep_check: + needs: [merge_queue_noop] + if: ${{ needs.merge_queue_noop.outputs.skip != 'true' }} + name: Dependency Check + runs-on: spacetimedb-new-runner-2 + env: + CARGO_TARGET_DIR: ${{ github.workspace }}/target + RUST_BACKTRACE: full + steps: + - name: Checkout sources + uses: actions/checkout@v3 + + - uses: dsherret/rust-toolchain-file@v1 + - name: Set default rust toolchain + run: rustup default $(rustup show active-toolchain | cut -d' ' -f1) + - run: echo ::add-matcher::.github/workflows/rust_matcher.json + + - name: Cache Rust dependencies + uses: Swatinem/rust-cache@v2 + with: + workspaces: ${{ github.workspace }} + shared-key: spacetimedb + save-if: false + prefix-key: v1 + + - name: Install cargo-machete + run: cargo install cargo-machete --locked + + - name: Run dependency check + run: cargo ci dep-check + codeowners_check: if: ${{ github.event_name == 'pull_request' }} name: CODEOWNERS check diff --git a/Cargo.lock b/Cargo.lock index 18004020f46..64ae2828a25 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -156,12 +156,6 @@ dependencies = [ "backtrace", ] -[[package]] -name = "anymap" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33954243bd79057c2de7338850b85983a44588021f8a5fee574a8888c6de4344" - [[package]] name = "anymap3" version = "1.0.1" @@ -480,7 +474,6 @@ dependencies = [ name = "benchmarks-module" version = "0.1.0" dependencies = [ - "anyhow", "spacetimedb", ] @@ -654,16 +647,6 @@ dependencies = [ "allocator-api2", ] -[[package]] -name = "byte-unit" -version = "4.0.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da78b32057b8fdfc352504708feeba7216dcd65a2c9ab02978cbd288d1279b6c" -dependencies = [ - "serde", - "utf8-width", -] - [[package]] name = "bytecheck" version = "0.6.12" @@ -955,6 +938,15 @@ dependencies = [ "serde_json", ] +[[package]] +name = "ci-dep-check" +version = "0.1.0" +dependencies = [ + "anyhow", + "ci-common", + "duct", +] + [[package]] name = "ci-docs-build" version = "0.1.0" @@ -2104,15 +2096,6 @@ version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" -[[package]] -name = "email_address" -version = "0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e079f19b08ca6239f47f8ba8509c11cf3ea30095831f7fed61441475edd8c449" -dependencies = [ - "serde", -] - [[package]] name = "embedded-io" version = "0.4.0" @@ -3044,17 +3027,6 @@ dependencies = [ "windows-sys 0.59.0", ] -[[package]] -name = "hostname" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c731c3e10504cc8ed35cfe2f1db4c9274c3d35fa486e3b31df46f068ef3e867" -dependencies = [ - "libc", - "match_cfg", - "winapi", -] - [[package]] name = "http" version = "0.2.12" @@ -3500,15 +3472,6 @@ dependencies = [ "winapi-util", ] -[[package]] -name = "imara-diff" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17d34b7d42178945f775e84bc4c36dde7c1c6cdfea656d3354d009056f2bb3d2" -dependencies = [ - "hashbrown 0.15.5", -] - [[package]] name = "indexmap" version = "1.9.3" @@ -3867,7 +3830,6 @@ dependencies = [ name = "keynote-benchmarks" version = "0.1.0" dependencies = [ - "log", "spacetimedb", ] @@ -4152,12 +4114,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "match_cfg" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffbee8634e0d45d258acb448e7eaab3fce7a0a467395d4d9f228e3c1f01fb2e4" - [[package]] name = "matchers" version = "0.2.0" @@ -5466,7 +5422,6 @@ checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" name = "perf-test-module" version = "0.1.0" dependencies = [ - "log", "spacetimedb", ] @@ -5535,17 +5490,6 @@ dependencies = [ "serde", ] -[[package]] -name = "pg_interval" -version = "0.4.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ceff720b1579b383347d48e5df5f604042adaa6a06f640b1f1e3c065f40766d" -dependencies = [ - "bytes", - "chrono", - "postgres-types", -] - [[package]] name = "pgwire" version = "0.37.0" @@ -5719,15 +5663,6 @@ version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483" -[[package]] -name = "portpicker" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be97d76faf1bfab666e1375477b23fde79eccf0276e9b63b92a39d676a889ba9" -dependencies = [ - "rand 0.8.5", -] - [[package]] name = "postcard" version = "1.1.3" @@ -5740,18 +5675,6 @@ dependencies = [ "serde", ] -[[package]] -name = "postgres-derive" -version = "0.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56df96f5394370d1b20e49de146f9e6c25aa9ae750f449c9d665eafecb3ccae6" -dependencies = [ - "heck 0.5.0", - "proc-macro2", - "quote", - "syn 2.0.107", -] - [[package]] name = "postgres-protocol" version = "0.6.9" @@ -5780,7 +5703,6 @@ dependencies = [ "bytes", "chrono", "fallible-iterator 0.2.0", - "postgres-derive", "postgres-protocol", "serde_core", "serde_json", @@ -6503,7 +6425,6 @@ version = "0.1.0" dependencies = [ "clap 4.5.50", "ignore", - "memchr", "regex", ] @@ -7322,7 +7243,6 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" name = "sdk-test-case-conversion" version = "0.1.0" dependencies = [ - "log", "spacetimedb", ] @@ -7338,7 +7258,6 @@ name = "sdk-test-module" version = "0.1.0" dependencies = [ "anyhow", - "log", "paste", "spacetimedb", ] @@ -7354,9 +7273,7 @@ dependencies = [ name = "sdk-test-procedure-concurrency-module" version = "0.1.0" dependencies = [ - "anyhow", "log", - "paste", "spacetimedb", ] @@ -7364,9 +7281,6 @@ dependencies = [ name = "sdk-test-procedure-module" version = "0.1.0" dependencies = [ - "anyhow", - "log", - "paste", "spacetimedb", ] @@ -7374,9 +7288,6 @@ dependencies = [ name = "sdk-test-view" version = "0.1.0" dependencies = [ - "anyhow", - "log", - "paste", "spacetimedb", ] @@ -7856,7 +7767,6 @@ dependencies = [ name = "spacetime-module" version = "0.1.0" dependencies = [ - "log", "spacetimedb", ] @@ -7867,13 +7777,11 @@ dependencies = [ "anyhow", "bytemuck", "bytes", - "derive_more 0.99.20", "getrandom 0.2.16", "http 1.3.1", "insta", "log", "rand 0.8.5", - "scoped-tls", "serde_json", "spacetimedb-bindings-macro", "spacetimedb-bindings-sys", @@ -7902,13 +7810,10 @@ version = "2.8.0" dependencies = [ "ahash 0.8.12", "anyhow", - "anymap", - "byte-unit", "clap 4.5.50", "convert_case 0.6.0", "criterion", "foldhash 0.2.0", - "futures", "hashbrown 0.16.1", "iai-callgrind", "iai-callgrind-macros", @@ -7924,9 +7829,7 @@ dependencies = [ "serde_json", "serial_test", "smallvec", - "spacetimedb-client-api", "spacetimedb-client-api-messages", - "spacetimedb-core", "spacetimedb-data-structures", "spacetimedb-datastore", "spacetimedb-execution", @@ -7936,7 +7839,6 @@ dependencies = [ "spacetimedb-query", "spacetimedb-sats", "spacetimedb-schema", - "spacetimedb-standalone", "spacetimedb-table", "spacetimedb-testing", "tempdir", @@ -7955,7 +7857,6 @@ dependencies = [ "humantime", "proc-macro2", "quote", - "spacetimedb-primitives", "syn 2.0.107", ] @@ -7982,8 +7883,6 @@ dependencies = [ "dialoguer", "dirs", "duct", - "email_address", - "flate2", "fs-err", "fs_extra", "futures", @@ -8001,7 +7900,6 @@ dependencies = [ "path-clean", "percent-encoding", "pretty_assertions", - "quick-xml 0.31.0", "regex", "reqwest 0.12.24", "rolldown", @@ -8012,7 +7910,6 @@ dependencies = [ "serde", "serde_json", "serde_with", - "slab", "spacetimedb-auth", "spacetimedb-client-api-messages", "spacetimedb-codegen", @@ -8021,11 +7918,9 @@ dependencies = [ "spacetimedb-jsonwebtoken", "spacetimedb-lib", "spacetimedb-paths", - "spacetimedb-primitives", "spacetimedb-schema", "syntect", "tabled", - "tar", "tempfile", "termcolor", "termtree", @@ -8036,7 +7931,6 @@ dependencies = [ "tokio-tungstenite 0.27.0", "toml 0.8.23", "toml_edit 0.22.27", - "tracing", "walkdir", "wasmbin", "webbrowser", @@ -8056,10 +7950,8 @@ dependencies = [ "base64 0.21.7", "bytes", "bytestring", - "chrono", "crossbeam-queue", "derive_more 0.99.20", - "email_address", "futures", "headers", "http 1.3.1", @@ -8067,38 +7959,29 @@ dependencies = [ "humantime", "hyper 1.7.0", "hyper-util", - "itoa", "jemalloc_pprof", - "lazy_static", "log", "mime", "pretty_assertions", "prometheus", "proptest", "rand 0.9.2", - "regex", "scopeguard", "serde", "serde_json", "serde_with", "spacetimedb-client-api-messages", - "spacetimedb-core", "spacetimedb-data-structures", - "spacetimedb-datastore", "spacetimedb-jsonwebtoken", "spacetimedb-lib", "spacetimedb-paths", "spacetimedb-schema", - "tempfile", "thiserror 1.0.69", "tokio", - "tokio-stream", "tokio-tungstenite 0.27.0", "toml 0.8.23", "tower", "tower-http 0.5.2", - "tower-layer", - "tower-service", "tracing", "uuid", ] @@ -8109,7 +7992,6 @@ version = "2.8.0" dependencies = [ "bytes", "bytestring", - "chrono", "derive_more 0.99.20", "enum-as-inner", "hex", @@ -8122,7 +8004,6 @@ dependencies = [ "spacetimedb-lib", "spacetimedb-primitives", "spacetimedb-sats", - "strum", "thiserror 1.0.69", ] @@ -8176,7 +8057,6 @@ dependencies = [ "tokio", "tokio-stream", "tokio-util", - "zstd-framed", ] [[package]] @@ -8184,11 +8064,9 @@ name = "spacetimedb-core" version = "2.8.0" dependencies = [ "anyhow", - "arrayvec", "async-trait", "async_cache", "axum", - "backtrace", "base64 0.21.7", "blake3", "brotli", @@ -8198,27 +8076,19 @@ dependencies = [ "chrono", "core_affinity", "criterion", - "crossbeam-channel", "crossbeam-queue", "deno_core_icudata", "derive_more 0.99.20", - "dirs", - "enum-as-inner", "enum-map", "env_logger 0.10.2", "faststr", "flate2", - "fs2", "fs_extra", "futures", "futures-util", - "hex", - "hostname", "http 1.3.1", "http-body-util", "humantime", - "hyper 1.7.0", - "imara-diff", "indexmap 2.12.0", "itertools 0.12.1", "lazy_static", @@ -8229,7 +8099,6 @@ dependencies = [ "once_cell", "openssl", "parking_lot 0.12.5", - "paste", "pin-project-lite", "pretty_assertions", "prometheus", @@ -8248,10 +8117,7 @@ dependencies = [ "serde_json", "serde_path_to_error", "serde_with", - "sha1", - "similar", "slab", - "sled", "smallvec", "sourcemap", "spacetimedb-auth", @@ -8263,7 +8129,6 @@ dependencies = [ "spacetimedb-engine", "spacetimedb-execution", "spacetimedb-expr", - "spacetimedb-fs-utils", "spacetimedb-jsonwebtoken", "spacetimedb-jwks", "spacetimedb-lib", @@ -8276,14 +8141,10 @@ dependencies = [ "spacetimedb-runtime", "spacetimedb-sats", "spacetimedb-schema", - "spacetimedb-snapshot", "spacetimedb-subscription", "spacetimedb-table", - "sqlparser", "strum", - "tabled", "tempfile", - "thin-vec", "thiserror 1.0.69", "tikv-jemalloc-ctl", "tikv-jemallocator", @@ -8296,12 +8157,9 @@ dependencies = [ "tracing-appender", "tracing-core", "tracing-flame", - "tracing-log 0.1.4", "tracing-subscriber", "tracing-tracy", "url", - "urlencoding", - "uuid", "v8", "wasmtime", "wasmtime-internal-fiber", @@ -8330,7 +8188,6 @@ dependencies = [ "anyhow", "bytes", "derive_more 0.99.20", - "enum-as-inner", "enum-map", "itertools 0.12.1", "lazy_static", @@ -8347,7 +8204,6 @@ dependencies = [ "spacetimedb-execution", "spacetimedb-lib", "spacetimedb-metrics", - "spacetimedb-paths", "spacetimedb-primitives", "spacetimedb-sats", "spacetimedb-schema", @@ -8363,7 +8219,6 @@ name = "spacetimedb-dst-lib" version = "2.8.0" dependencies = [ "anyhow", - "clap 4.5.50", "spacetimedb-commitlog", "spacetimedb-datastore", "spacetimedb-durability", @@ -8375,7 +8230,6 @@ dependencies = [ "spacetimedb-schema", "spacetimedb-table", "tracing", - "tracing-subscriber", ] [[package]] @@ -8392,7 +8246,6 @@ dependencies = [ "spacetimedb-fs-utils", "spacetimedb-paths", "spacetimedb-runtime", - "spacetimedb-sats", "tempfile", "thiserror 1.0.69", "tokio", @@ -8452,7 +8305,6 @@ dependencies = [ "spacetimedb-physical-plan", "spacetimedb-primitives", "spacetimedb-sats", - "spacetimedb-sql-parser", "spacetimedb-table", ] @@ -8462,8 +8314,6 @@ version = "2.8.0" dependencies = [ "anyhow", "bigdecimal", - "bytes", - "derive_more 0.99.20", "ethnum", "pretty_assertions", "spacetimedb", @@ -8496,7 +8346,6 @@ dependencies = [ name = "spacetimedb-guard" version = "2.8.0" dependencies = [ - "portpicker", "reqwest 0.12.24", "tempfile", ] @@ -8545,17 +8394,11 @@ name = "spacetimedb-lib" version = "2.8.0" dependencies = [ "anyhow", - "bitflags 2.10.0", "blake3", - "bytes", - "chrono", "derive_more 0.99.20", - "enum-as-inner", "enum-map", "hex", "insta", - "itertools 0.12.1", - "log", "proptest", "proptest-derive", "ron", @@ -8566,7 +8409,6 @@ dependencies = [ "spacetimedb-metrics", "spacetimedb-primitives", "spacetimedb-sats", - "thiserror 1.0.69", ] [[package]] @@ -8659,17 +8501,12 @@ name = "spacetimedb-query" version = "2.8.0" dependencies = [ "anyhow", - "itertools 0.12.1", - "rayon", - "spacetimedb-client-api-messages", "spacetimedb-execution", "spacetimedb-expr", "spacetimedb-lib", "spacetimedb-physical-plan", "spacetimedb-primitives", "spacetimedb-schema", - "spacetimedb-sql-parser", - "spacetimedb-table", ] [[package]] @@ -8716,7 +8553,6 @@ dependencies = [ "ahash 0.8.12", "anyhow", "arrayvec", - "bitflags 2.10.0", "blake3", "bytemuck", "bytes", @@ -8761,7 +8597,6 @@ dependencies = [ "lean_string", "petgraph 0.6.5", "proptest", - "serde_json", "serial_test", "smallvec", "spacetimedb-data-structures", @@ -8769,7 +8604,6 @@ dependencies = [ "spacetimedb-memory-usage", "spacetimedb-primitives", "spacetimedb-sats", - "spacetimedb-sql-parser", "spacetimedb-testing", "termcolor", "thiserror 1.0.69", @@ -8782,7 +8616,6 @@ name = "spacetimedb-sdk" version = "2.8.0" dependencies = [ "anymap3", - "base64 0.21.7", "brotli", "bytes", "cursive", @@ -8810,7 +8643,6 @@ dependencies = [ "spacetimedb-metrics", "spacetimedb-query-builder", "spacetimedb-sats", - "spacetimedb-schema", "spacetimedb-testing", "thiserror 1.0.69", "tokio", @@ -8854,7 +8686,6 @@ dependencies = [ "crossbeam-queue", "env_logger 0.10.2", "futures", - "hex", "log", "pretty_assertions", "rand 0.9.2", @@ -8883,7 +8714,6 @@ dependencies = [ name = "spacetimedb-sql-parser" version = "2.8.0" dependencies = [ - "derive_more 0.99.20", "spacetimedb-lib", "sqlparser", "thiserror 1.0.69", @@ -8897,17 +8727,12 @@ dependencies = [ "async-trait", "axum", "clap 4.5.50", - "dirs", - "futures", - "hostname", "http 1.3.1", "log", "netstat2", "once_cell", - "openssl", "parse-size", "prometheus", - "scopeguard", "serde", "serde_json", "sled", @@ -8927,8 +8752,6 @@ dependencies = [ "tikv-jemallocator", "tokio", "toml 0.8.23", - "tower-http 0.5.2", - "tracing", ] [[package]] @@ -8954,7 +8777,6 @@ dependencies = [ "blake3", "bytemuck", "criterion", - "crossbeam-queue", "decorum", "derive_more 0.99.20", "enum-as-inner", @@ -8993,7 +8815,6 @@ dependencies = [ "spacetimedb-cli", "spacetimedb-client-api", "spacetimedb-client-api-messages", - "spacetimedb-core", "spacetimedb-data-structures", "spacetimedb-guard", "spacetimedb-lib", @@ -9002,7 +8823,6 @@ dependencies = [ "spacetimedb-standalone", "tempfile", "tokio", - "wasmbin", ] [[package]] @@ -9027,7 +8847,6 @@ dependencies = [ "tar", "tempfile", "tokio", - "toml 0.8.23", "tracing", "windows-sys 0.59.0", "zip", @@ -9063,29 +8882,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "sqllogictest-engines" -version = "0.17.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec8b8bc26d3d9cf2e273bef46f4e9a90a451cf12f5a6d593b2e4fb86b44eb145" -dependencies = [ - "async-trait", - "bytes", - "chrono", - "futures", - "log", - "pg_interval", - "postgres-types", - "rust_decimal", - "serde", - "serde_json", - "sqllogictest", - "thiserror 1.0.69", - "tokio", - "tokio-postgres", - "tokio-util", -] - [[package]] name = "sqlparser" version = "0.38.0" @@ -9106,19 +8902,15 @@ dependencies = [ "console", "derive_more 0.99.20", "fs-err", - "futures", "glob", "itertools 0.12.1", - "parking_lot 0.12.5", "postgres-types", "quick-junit", "rusqlite", "rust_decimal", - "spacetimedb-core", "spacetimedb-lib", "spacetimedb-sats", "sqllogictest", - "sqllogictest-engines", "tempfile", "tokio", "tokio-postgres", @@ -9534,7 +9326,6 @@ name = "test-counter" version = "2.8.0" dependencies = [ "anyhow", - "futures", "gloo-timers", "spacetimedb-data-structures", ] @@ -10113,17 +9904,6 @@ dependencies = [ "tracing-subscriber", ] -[[package]] -name = "tracing-log" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f751112709b4e791d8ce53e32c4ed2d353565a795ce84da2285393f41557bdf2" -dependencies = [ - "log", - "once_cell", - "tracing-core", -] - [[package]] name = "tracing-log" version = "0.2.0" @@ -10162,7 +9942,7 @@ dependencies = [ "thread_local", "tracing", "tracing-core", - "tracing-log 0.2.0", + "tracing-log", "tracing-serde", ] @@ -10295,8 +10075,6 @@ checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" name = "typescript-test-app" version = "0.1.0" dependencies = [ - "anyhow", - "log", "spacetimedb", ] @@ -10304,8 +10082,6 @@ dependencies = [ name = "typescript-test-react-router-app" version = "0.1.0" dependencies = [ - "anyhow", - "log", "spacetimedb", ] @@ -10313,8 +10089,6 @@ dependencies = [ name = "typescript-test-solid-router-app" version = "0.1.0" dependencies = [ - "anyhow", - "log", "spacetimedb", ] @@ -10423,12 +10197,6 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" -[[package]] -name = "utf8-width" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86bd8d4e895da8537e5315b8254664e6b769c4ff3db18321b297a1e7004392e3" - [[package]] name = "utf8_iter" version = "1.0.4" diff --git a/Cargo.toml b/Cargo.toml index a1a94f15fc3..15695cf4b77 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -75,6 +75,7 @@ members = [ "tools/ci/commands/keynote-bench", "tools/ci/commands/update-flow", "tools/ci/commands/cli-docs", + "tools/ci/commands/dep-check", "tools/ci/commands/global-json-policy", "tools/ci/commands/publish-checks", "tools/ci/commands/typescript-test", diff --git a/crates/bench/Cargo.toml b/crates/bench/Cargo.toml index 115eb115022..3d0a3cc0797 100644 --- a/crates/bench/Cargo.toml +++ b/crates/bench/Cargo.toml @@ -37,9 +37,7 @@ name = "summarize" bench = false [dependencies] -spacetimedb-client-api = { path = "../client-api" } spacetimedb-client-api-messages = { path = "../client-api-messages" } -spacetimedb-core = { path = "../core", features = ["test"] } spacetimedb-data-structures.workspace = true spacetimedb-datastore.workspace = true spacetimedb-execution = { path = "../execution" } @@ -49,18 +47,14 @@ spacetimedb-primitives = { path = "../primitives" } spacetimedb-query = { path = "../query" } spacetimedb-sats = { path = "../sats" } spacetimedb-schema = { workspace = true, features = ["test"] } -spacetimedb-standalone = { path = "../standalone" } spacetimedb-table = { path = "../table" } spacetimedb-testing = { path = "../testing" } ahash.workspace = true anyhow.workspace = true convert_case.workspace = true -anymap.workspace = true -byte-unit.workspace = true clap.workspace = true criterion.workspace = true -futures.workspace = true foldhash.workspace = true hashbrown.workspace = true lazy_static.workspace = true diff --git a/crates/bindings-macro/Cargo.toml b/crates/bindings-macro/Cargo.toml index 9e0094df23a..0a54464f8a6 100644 --- a/crates/bindings-macro/Cargo.toml +++ b/crates/bindings-macro/Cargo.toml @@ -12,7 +12,6 @@ proc-macro = true bench = false [dependencies] -spacetimedb-primitives.workspace = true humantime.workspace = true proc-macro2.workspace = true diff --git a/crates/bindings-typescript/test-app/server/Cargo.toml b/crates/bindings-typescript/test-app/server/Cargo.toml index 7bc77ce9454..84695c84618 100644 --- a/crates/bindings-typescript/test-app/server/Cargo.toml +++ b/crates/bindings-typescript/test-app/server/Cargo.toml @@ -10,5 +10,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb = { workspace = true } -log = "0.4" -anyhow = "1.0" diff --git a/crates/bindings-typescript/test-react-router-app/server/Cargo.toml b/crates/bindings-typescript/test-react-router-app/server/Cargo.toml index 99797536040..e89454b96f8 100644 --- a/crates/bindings-typescript/test-react-router-app/server/Cargo.toml +++ b/crates/bindings-typescript/test-react-router-app/server/Cargo.toml @@ -10,5 +10,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log = "0.4" -anyhow = "1.0" diff --git a/crates/bindings-typescript/test-solid-router/server/Cargo.toml b/crates/bindings-typescript/test-solid-router/server/Cargo.toml index a7ad32478e1..fa12084c62e 100644 --- a/crates/bindings-typescript/test-solid-router/server/Cargo.toml +++ b/crates/bindings-typescript/test-solid-router/server/Cargo.toml @@ -10,5 +10,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log = "0.4" -anyhow = "1.0" diff --git a/crates/bindings/Cargo.toml b/crates/bindings/Cargo.toml index 54c3bd3c74e..d241d8959be 100644 --- a/crates/bindings/Cargo.toml +++ b/crates/bindings/Cargo.toml @@ -29,10 +29,8 @@ spacetimedb-query-builder.workspace = true anyhow.workspace = true bytemuck.workspace = true bytes.workspace = true -derive_more.workspace = true http.workspace = true log.workspace = true -scoped-tls.workspace = true rand08 = { workspace = true, optional = true } # we depend on getrandom and enable the `custom` feature, so that @@ -45,5 +43,9 @@ serde_json.workspace = true insta.workspace = true trybuild.workspace = true +[package.metadata.cargo-machete] +# See the `getrandom02` dependency comment above. +ignored = ["getrandom02"] + [lints] workspace = true diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index bb71fb8b6e5..81f406ebbec 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -28,7 +28,6 @@ spacetimedb-data-structures.workspace = true spacetimedb-fs-utils.workspace = true spacetimedb-lib.workspace = true spacetimedb-paths.workspace = true -spacetimedb-primitives.workspace = true spacetimedb-schema.workspace = true anyhow.workspace = true @@ -41,9 +40,7 @@ colored.workspace = true convert_case.workspace = true dirs.workspace = true duct.workspace = true -email_address.workspace = true futures.workspace = true -flate2.workspace = true fs-err.workspace = true http.workspace = true is-terminal.workspace = true @@ -60,19 +57,15 @@ rustyline.workspace = true serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true, features = ["raw_value", "preserve_order", "arbitrary_precision"] } serde_with = { workspace = true, features = ["chrono_0_4"] } -slab.workspace = true syntect.workspace = true tabled.workspace = true -tar.workspace = true tempfile.workspace = true termcolor.workspace = true termtree.workspace = true thiserror.workspace = true tokio.workspace = true tokio-tungstenite.workspace = true -toml.workspace = true toml_edit.workspace = true -tracing = { workspace = true, features = ["release_max_level_off"] } walkdir.workspace = true wasmbin.workspace = true webbrowser.workspace = true @@ -85,7 +78,6 @@ rolldown_common.workspace = true rolldown_error.workspace = true rolldown_utils.workspace = true xmltree.workspace = true -quick-xml.workspace = true names.workspace = true notify.workspace = true path-clean = "1.0.1" diff --git a/crates/client-api-messages/Cargo.toml b/crates/client-api-messages/Cargo.toml index a5af8be01f0..f278ac59e02 100644 --- a/crates/client-api-messages/Cargo.toml +++ b/crates/client-api-messages/Cargo.toml @@ -13,13 +13,11 @@ spacetimedb-sats = { workspace = true, features = ["bytestring"] } bytes.workspace = true bytestring.workspace = true -chrono = { workspace = true, features = ["serde"] } enum-as-inner.workspace = true serde = { workspace = true, features = ["derive"] } serde_json.workspace = true serde_with.workspace = true smallvec.workspace = true -strum.workspace = true thiserror.workspace = true derive_more.workspace = true diff --git a/crates/client-api/Cargo.toml b/crates/client-api/Cargo.toml index 09fcb563300..923aa4ea87f 100644 --- a/crates/client-api/Cargo.toml +++ b/crates/client-api/Cargo.toml @@ -8,9 +8,7 @@ rust-version.workspace = true [dependencies] spacetimedb-client-api-messages.workspace = true -spacetimedb-core.workspace = true spacetimedb-data-structures.workspace = true -spacetimedb-datastore.workspace = true spacetimedb-lib = { workspace = true, features = ["serde"] } spacetimedb-paths.workspace = true spacetimedb-schema.workspace = true @@ -18,17 +16,12 @@ spacetimedb-schema.workspace = true base64.workspace = true http-body-util.workspace = true tokio = { workspace = true, features = ["full"] } -lazy_static = "1.4.0" log = "0.4.4" serde = "1.0.136" serde_json = { version = "1.0", features = ["raw_value"] } anyhow = { version = "1.0.57", features = ["backtrace"] } -regex = "1" prometheus.workspace = true -email_address = "0.2.3" -tempfile.workspace = true async-trait = "0.1.60" -chrono = { workspace = true, features = ["serde"] } rand.workspace = true axum.workspace = true axum-extra.workspace = true @@ -37,16 +30,12 @@ hyper-util.workspace = true http.workspace = true headers.workspace = true mime = "0.3.17" -tokio-stream = { version = "0.1.12", features = ["sync"] } -tower-layer.workspace = true -tower-service.workspace = true tower-http.workspace = true futures = "0.3" bytes = "1" tracing.workspace = true bytestring = "1" tokio-tungstenite.workspace = true -itoa.workspace = true derive_more = "0.99.17" uuid.workspace = true jsonwebtoken.workspace = true diff --git a/crates/commitlog/Cargo.toml b/crates/commitlog/Cargo.toml index 0c30960248f..411a1398c48 100644 --- a/crates/commitlog/Cargo.toml +++ b/crates/commitlog/Cargo.toml @@ -36,7 +36,6 @@ tempfile.workspace = true thiserror.workspace = true tokio = { workspace = true, optional = true } tokio-util = { workspace = true, optional = true, features = ["io-util"] } -zstd-framed.workspace = true # For the 'test' feature env_logger = { workspace = true, optional = true } diff --git a/crates/core/Cargo.toml b/crates/core/Cargo.toml index b9c21843e59..ddc5a712b0e 100644 --- a/crates/core/Cargo.toml +++ b/crates/core/Cargo.toml @@ -33,16 +33,12 @@ spacetimedb-runtime.workspace = true spacetimedb-sats = { workspace = true, features = ["serde"] } spacetimedb-schema.workspace = true spacetimedb-table.workspace = true -spacetimedb-snapshot.workspace = true spacetimedb-subscription.workspace = true spacetimedb-expr.workspace = true spacetimedb-execution.workspace = true -spacetimedb-fs-utils.workspace = true anyhow = { workspace = true, features = ["backtrace"] } -arrayvec.workspace = true async-trait.workspace = true -backtrace.workspace = true base64.workspace = true blake3.workspace = true brotli.workspace = true @@ -50,24 +46,16 @@ bytemuck.workspace = true bytes.workspace = true bytestring.workspace = true chrono.workspace = true -crossbeam-channel.workspace = true crossbeam-queue.workspace = true deno_core_icudata.workspace = true derive_more.workspace = true -dirs.workspace = true -enum-as-inner.workspace = true enum-map.workspace = true flate2.workspace = true -fs2.workspace = true futures.workspace = true futures-util.workspace = true -hex.workspace = true -hostname.workspace = true http.workspace = true http-body-util.workspace = true humantime.workspace = true -hyper.workspace = true -imara-diff.workspace = true indexmap.workspace = true itertools.workspace = true jsonwebtoken.workspace = true @@ -78,7 +66,6 @@ nohash-hasher.workspace = true once_cell.workspace = true openssl.workspace = true parking_lot.workspace = true -paste.workspace = true pin-project-lite.workspace = true prometheus.workspace = true rayon.workspace = true @@ -93,18 +80,12 @@ serde.workspace = true serde_json.workspace = true serde_path_to_error.workspace = true serde_with = { workspace = true, features = ["chrono_0_4"] } -sha1.workspace = true -similar.workspace = true slab.workspace = true -sled.workspace = true smallvec.workspace = true sourcemap.workspace = true -sqlparser.workspace = true strum.workspace = true -tabled.workspace = true tempfile.workspace = true thiserror.workspace = true -thin-vec.workspace = true tokio-util.workspace = true tokio.workspace = true tokio-stream = { workspace = true, features = ["sync"] } @@ -113,13 +94,10 @@ toml.workspace = true tracing-appender.workspace = true tracing-core.workspace = true tracing-flame.workspace = true -tracing-log.workspace = true tracing-subscriber.workspace = true tracing-tracy.workspace = true tracing.workspace = true url.workspace = true -urlencoding.workspace = true -uuid.workspace = true v8.workspace = true wasmtime.workspace = true wasmtime-internal-fiber.workspace = true diff --git a/crates/datastore/Cargo.toml b/crates/datastore/Cargo.toml index 86cb2aca0b6..d42e633f4b3 100644 --- a/crates/datastore/Cargo.toml +++ b/crates/datastore/Cargo.toml @@ -13,7 +13,6 @@ spacetimedb-commitlog.workspace = true spacetimedb-durability.workspace = true spacetimedb-metrics.workspace = true spacetimedb-primitives.workspace = true -spacetimedb-paths.workspace = true spacetimedb-sats = { workspace = true, features = ["serde"] } spacetimedb-schema.workspace = true spacetimedb-table.workspace = true @@ -23,7 +22,6 @@ spacetimedb-execution.workspace = true anyhow = { workspace = true, features = ["backtrace"] } bytes.workspace = true derive_more.workspace = true -enum-as-inner.workspace = true enum-map.workspace = true itertools.workspace = true lazy_static.workspace = true diff --git a/crates/dst/Cargo.toml b/crates/dst/Cargo.toml index 7d47c9a1b47..7c7bd071f4e 100644 --- a/crates/dst/Cargo.toml +++ b/crates/dst/Cargo.toml @@ -10,7 +10,6 @@ fallocate = ["spacetimedb-commitlog/fallocate"] [dependencies] anyhow.workspace = true -clap.workspace = true spacetimedb-datastore.workspace = true spacetimedb-commitlog.workspace = true spacetimedb-durability.workspace = true @@ -22,7 +21,6 @@ spacetimedb-sats.workspace = true spacetimedb-schema.workspace = true spacetimedb-table.workspace = true tracing.workspace = true -tracing-subscriber.workspace = true [lints] workspace = true diff --git a/crates/durability/Cargo.toml b/crates/durability/Cargo.toml index 49a5c9565fb..c1285a752fe 100644 --- a/crates/durability/Cargo.toml +++ b/crates/durability/Cargo.toml @@ -22,7 +22,6 @@ spacetimedb-commitlog.workspace = true spacetimedb-fs-utils.workspace = true spacetimedb-paths.workspace = true spacetimedb-runtime.workspace = true -spacetimedb-sats.workspace = true thiserror.workspace = true tokio.workspace = true tracing.workspace = true diff --git a/crates/execution/Cargo.toml b/crates/execution/Cargo.toml index 9eff876d333..d40600dd183 100644 --- a/crates/execution/Cargo.toml +++ b/crates/execution/Cargo.toml @@ -14,7 +14,6 @@ spacetimedb-lib.workspace = true spacetimedb-sats.workspace = true spacetimedb-physical-plan.workspace = true spacetimedb-primitives.workspace = true -spacetimedb-sql-parser.workspace = true spacetimedb-table.workspace = true [lints] diff --git a/crates/expr/Cargo.toml b/crates/expr/Cargo.toml index 5138fb1d669..6f2f5e50301 100644 --- a/crates/expr/Cargo.toml +++ b/crates/expr/Cargo.toml @@ -9,7 +9,6 @@ description = "The logical expression representation for the SpacetimeDB query e [dependencies] anyhow.workspace = true bigdecimal.workspace = true -derive_more.workspace = true ethnum.workspace = true thiserror.workspace = true spacetimedb-data-structures.workspace = true @@ -18,7 +17,6 @@ spacetimedb-primitives.workspace = true spacetimedb-sats.workspace = true spacetimedb-schema.workspace = true spacetimedb-sql-parser.workspace = true -bytes.workspace = true [dev-dependencies] pretty_assertions.workspace = true diff --git a/crates/guard/Cargo.toml b/crates/guard/Cargo.toml index f675b6dba3c..02d31efc11f 100644 --- a/crates/guard/Cargo.toml +++ b/crates/guard/Cargo.toml @@ -5,7 +5,6 @@ edition.workspace = true rust-version.workspace = true [dependencies] -portpicker = "0.1" reqwest = { workspace = true, features = ["blocking", "json"] } tempfile.workspace = true diff --git a/crates/lib/Cargo.toml b/crates/lib/Cargo.toml index 67f10d22485..06dbd88c97c 100644 --- a/crates/lib/Cargo.toml +++ b/crates/lib/Cargo.toml @@ -38,16 +38,9 @@ spacetimedb-memory-usage = { workspace = true, optional = true } spacetimedb-metrics = { workspace = true, optional = true } anyhow.workspace = true -bitflags.workspace = true -bytes.workspace = true -chrono.workspace = true derive_more.workspace = true -enum-as-inner.workspace = true hex.workspace = true -itertools.workspace = true -log.workspace = true serde = { workspace = true, optional = true } -thiserror.workspace = true blake3.workspace = true enum-map = { workspace = true, optional = true } @@ -57,7 +50,6 @@ proptest-derive = { workspace = true, optional = true } [dev-dependencies] spacetimedb-sats = { path = "../sats", features = ["test"] } -bytes.workspace = true serde_json.workspace = true insta.workspace = true ron.workspace = true @@ -66,5 +58,9 @@ ron.workspace = true proptest.workspace = true proptest-derive.workspace = true +[package.metadata.cargo-machete] +# Used through the `proptest` feature's `dep:proptest-derive` entry. +ignored = ["proptest-derive"] + [lints] workspace = true diff --git a/crates/query/Cargo.toml b/crates/query/Cargo.toml index 7de32844fd5..26e0e08a04b 100644 --- a/crates/query/Cargo.toml +++ b/crates/query/Cargo.toml @@ -8,17 +8,12 @@ description = "Top level crate for invoking the query engine and optimizer" [dependencies] anyhow.workspace = true -itertools.workspace = true -rayon.workspace = true -spacetimedb-client-api-messages.workspace = true spacetimedb-execution.workspace = true spacetimedb-expr.workspace = true spacetimedb-lib.workspace = true spacetimedb-primitives.workspace = true spacetimedb-physical-plan.workspace = true spacetimedb-schema.workspace = true -spacetimedb-sql-parser.workspace = true -spacetimedb-table.workspace = true [lints] workspace = true diff --git a/crates/sats/Cargo.toml b/crates/sats/Cargo.toml index 27696f34ac6..ff1ac21eb16 100644 --- a/crates/sats/Cargo.toml +++ b/crates/sats/Cargo.toml @@ -39,7 +39,6 @@ spacetimedb-metrics = { workspace = true, optional = true } anyhow.workspace = true arrayvec.workspace = true -bitflags.workspace = true bytes.workspace = true bytemuck.workspace = true bytestring = { workspace = true, optional = true } diff --git a/crates/schema/Cargo.toml b/crates/schema/Cargo.toml index 25ff3e3e9cc..b79cc0a0974 100644 --- a/crates/schema/Cargo.toml +++ b/crates/schema/Cargo.toml @@ -15,7 +15,6 @@ spacetimedb-primitives = { workspace = true, features = ["memory-usage"] } spacetimedb-sats = { workspace = true, features = ["memory-usage"] } spacetimedb-data-structures.workspace = true spacetimedb-memory-usage.workspace = true -spacetimedb-sql-parser.workspace = true anyhow.workspace = true derive_more.workspace = true indexmap.workspace = true @@ -26,7 +25,6 @@ thiserror.workspace = true unicode-ident.workspace = true unicode-normalization.workspace = true petgraph.workspace = true -serde_json.workspace = true smallvec.workspace = true enum-as-inner.workspace = true enum-map.workspace = true diff --git a/crates/smoketests/modules/add-remove-index-indexed/Cargo.toml b/crates/smoketests/modules/add-remove-index-indexed/Cargo.toml index 876ee4f4e14..a395dc656bf 100644 --- a/crates/smoketests/modules/add-remove-index-indexed/Cargo.toml +++ b/crates/smoketests/modules/add-remove-index-indexed/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/add-remove-index/Cargo.toml b/crates/smoketests/modules/add-remove-index/Cargo.toml index 0318839bb12..34a5f04f578 100644 --- a/crates/smoketests/modules/add-remove-index/Cargo.toml +++ b/crates/smoketests/modules/add-remove-index/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/auto-migration-drop-event-table-after/Cargo.toml b/crates/smoketests/modules/auto-migration-drop-event-table-after/Cargo.toml index 4a0d71553b6..fcf118a6a7f 100644 --- a/crates/smoketests/modules/auto-migration-drop-event-table-after/Cargo.toml +++ b/crates/smoketests/modules/auto-migration-drop-event-table-after/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/auto-migration-drop-event-table-before/Cargo.toml b/crates/smoketests/modules/auto-migration-drop-event-table-before/Cargo.toml index 90e4382cf60..6d680f279d7 100644 --- a/crates/smoketests/modules/auto-migration-drop-event-table-before/Cargo.toml +++ b/crates/smoketests/modules/auto-migration-drop-event-table-before/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/auto-migration-event-table-after/Cargo.toml b/crates/smoketests/modules/auto-migration-event-table-after/Cargo.toml index 83da04df530..484f8c25d8b 100644 --- a/crates/smoketests/modules/auto-migration-event-table-after/Cargo.toml +++ b/crates/smoketests/modules/auto-migration-event-table-after/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/auto-migration-event-table-before/Cargo.toml b/crates/smoketests/modules/auto-migration-event-table-before/Cargo.toml index c823f521b83..be4f4e9f496 100644 --- a/crates/smoketests/modules/auto-migration-event-table-before/Cargo.toml +++ b/crates/smoketests/modules/auto-migration-event-table-before/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/auto-migration-with-primary-key/Cargo.toml b/crates/smoketests/modules/auto-migration-with-primary-key/Cargo.toml index 4672d5aa2e2..94a919fba88 100644 --- a/crates/smoketests/modules/auto-migration-with-primary-key/Cargo.toml +++ b/crates/smoketests/modules/auto-migration-with-primary-key/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/auto-migration-without-primary-key-v2/Cargo.toml b/crates/smoketests/modules/auto-migration-without-primary-key-v2/Cargo.toml index 05be2d05624..bcfab7fe8d0 100644 --- a/crates/smoketests/modules/auto-migration-without-primary-key-v2/Cargo.toml +++ b/crates/smoketests/modules/auto-migration-without-primary-key-v2/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/auto-migration-without-primary-key/Cargo.toml b/crates/smoketests/modules/auto-migration-without-primary-key/Cargo.toml index 9c40d1eb012..622b64124f9 100644 --- a/crates/smoketests/modules/auto-migration-without-primary-key/Cargo.toml +++ b/crates/smoketests/modules/auto-migration-without-primary-key/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/call-empty/Cargo.toml b/crates/smoketests/modules/call-empty/Cargo.toml index 0449b80a7a5..3fb08c1101c 100644 --- a/crates/smoketests/modules/call-empty/Cargo.toml +++ b/crates/smoketests/modules/call-empty/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/client-connection-disconnect-panic/Cargo.toml b/crates/smoketests/modules/client-connection-disconnect-panic/Cargo.toml index b4ac3a61b2f..6672ca2eda8 100644 --- a/crates/smoketests/modules/client-connection-disconnect-panic/Cargo.toml +++ b/crates/smoketests/modules/client-connection-disconnect-panic/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/client-connection-reject/Cargo.toml b/crates/smoketests/modules/client-connection-reject/Cargo.toml index 3fdd30aacb2..aaa67b24107 100644 --- a/crates/smoketests/modules/client-connection-reject/Cargo.toml +++ b/crates/smoketests/modules/client-connection-reject/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/confirmed-reads/Cargo.toml b/crates/smoketests/modules/confirmed-reads/Cargo.toml index 5d952b0ecb8..4390f0f8a30 100644 --- a/crates/smoketests/modules/confirmed-reads/Cargo.toml +++ b/crates/smoketests/modules/confirmed-reads/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/delete-database/Cargo.toml b/crates/smoketests/modules/delete-database/Cargo.toml index 48a6d18dffe..32de2cfb529 100644 --- a/crates/smoketests/modules/delete-database/Cargo.toml +++ b/crates/smoketests/modules/delete-database/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/dml/Cargo.toml b/crates/smoketests/modules/dml/Cargo.toml index 525cbc25919..4424355c3c5 100644 --- a/crates/smoketests/modules/dml/Cargo.toml +++ b/crates/smoketests/modules/dml/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/fail-initial-publish-broken/Cargo.toml b/crates/smoketests/modules/fail-initial-publish-broken/Cargo.toml index 0aacc78c49b..e3a345a1d7c 100644 --- a/crates/smoketests/modules/fail-initial-publish-broken/Cargo.toml +++ b/crates/smoketests/modules/fail-initial-publish-broken/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/fail-initial-publish-fixed/Cargo.toml b/crates/smoketests/modules/fail-initial-publish-fixed/Cargo.toml index 5a832ceaf53..d3ec6edd4af 100644 --- a/crates/smoketests/modules/fail-initial-publish-fixed/Cargo.toml +++ b/crates/smoketests/modules/fail-initial-publish-fixed/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/hotswap-basic/Cargo.toml b/crates/smoketests/modules/hotswap-basic/Cargo.toml index e8d3e0d5fa4..062560e66f9 100644 --- a/crates/smoketests/modules/hotswap-basic/Cargo.toml +++ b/crates/smoketests/modules/hotswap-basic/Cargo.toml @@ -8,4 +8,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/hotswap-updated/Cargo.toml b/crates/smoketests/modules/hotswap-updated/Cargo.toml index 14d17c5f2c7..ced522ab3ed 100644 --- a/crates/smoketests/modules/hotswap-updated/Cargo.toml +++ b/crates/smoketests/modules/hotswap-updated/Cargo.toml @@ -8,4 +8,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/http-egress/Cargo.toml b/crates/smoketests/modules/http-egress/Cargo.toml index 28fcbdc46d5..888f3f61333 100644 --- a/crates/smoketests/modules/http-egress/Cargo.toml +++ b/crates/smoketests/modules/http-egress/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/http-routes-example/Cargo.toml b/crates/smoketests/modules/http-routes-example/Cargo.toml index bd13a911518..7387aacebb5 100644 --- a/crates/smoketests/modules/http-routes-example/Cargo.toml +++ b/crates/smoketests/modules/http-routes-example/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/http-routes-full-uri/Cargo.toml b/crates/smoketests/modules/http-routes-full-uri/Cargo.toml index 550d375d654..8c1e6628485 100644 --- a/crates/smoketests/modules/http-routes-full-uri/Cargo.toml +++ b/crates/smoketests/modules/http-routes-full-uri/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/http-routes-request-body/Cargo.toml b/crates/smoketests/modules/http-routes-request-body/Cargo.toml index ef85e54ce7c..e222522ed2e 100644 --- a/crates/smoketests/modules/http-routes-request-body/Cargo.toml +++ b/crates/smoketests/modules/http-routes-request-body/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/http-routes-strict-non-root/Cargo.toml b/crates/smoketests/modules/http-routes-strict-non-root/Cargo.toml index 97bace5306e..062ad53cebd 100644 --- a/crates/smoketests/modules/http-routes-strict-non-root/Cargo.toml +++ b/crates/smoketests/modules/http-routes-strict-non-root/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/http-routes-strict-root/Cargo.toml b/crates/smoketests/modules/http-routes-strict-root/Cargo.toml index 6a50ce3e286..5c6f7092dc8 100644 --- a/crates/smoketests/modules/http-routes-strict-root/Cargo.toml +++ b/crates/smoketests/modules/http-routes-strict-root/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/http-routes/Cargo.toml b/crates/smoketests/modules/http-routes/Cargo.toml index 1a8e87717a7..710394a757b 100644 --- a/crates/smoketests/modules/http-routes/Cargo.toml +++ b/crates/smoketests/modules/http-routes/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/modules-breaking/Cargo.toml b/crates/smoketests/modules/modules-breaking/Cargo.toml index 05b36a5e614..137d938afbe 100644 --- a/crates/smoketests/modules/modules-breaking/Cargo.toml +++ b/crates/smoketests/modules/modules-breaking/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/noop/Cargo.toml b/crates/smoketests/modules/noop/Cargo.toml index c0f24646d6c..4e677e0f0b7 100644 --- a/crates/smoketests/modules/noop/Cargo.toml +++ b/crates/smoketests/modules/noop/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/panic-error/Cargo.toml b/crates/smoketests/modules/panic-error/Cargo.toml index 2e577b299d5..3ebc4e1e553 100644 --- a/crates/smoketests/modules/panic-error/Cargo.toml +++ b/crates/smoketests/modules/panic-error/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/permissions-lifecycle/Cargo.toml b/crates/smoketests/modules/permissions-lifecycle/Cargo.toml index af648415cec..4a77d77efe8 100644 --- a/crates/smoketests/modules/permissions-lifecycle/Cargo.toml +++ b/crates/smoketests/modules/permissions-lifecycle/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/permissions-private/Cargo.toml b/crates/smoketests/modules/permissions-private/Cargo.toml index 96268618d7d..2976df0fec5 100644 --- a/crates/smoketests/modules/permissions-private/Cargo.toml +++ b/crates/smoketests/modules/permissions-private/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/pg-wire/Cargo.toml b/crates/smoketests/modules/pg-wire/Cargo.toml index 908f0b87689..d60cf3875d6 100644 --- a/crates/smoketests/modules/pg-wire/Cargo.toml +++ b/crates/smoketests/modules/pg-wire/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/rls-broken-private-table/Cargo.toml b/crates/smoketests/modules/rls-broken-private-table/Cargo.toml index f0cd150c7df..9fec43ced0a 100644 --- a/crates/smoketests/modules/rls-broken-private-table/Cargo.toml +++ b/crates/smoketests/modules/rls-broken-private-table/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/rls-no-filter/Cargo.toml b/crates/smoketests/modules/rls-no-filter/Cargo.toml index ebd9975f9f1..57e17cdf8a5 100644 --- a/crates/smoketests/modules/rls-no-filter/Cargo.toml +++ b/crates/smoketests/modules/rls-no-filter/Cargo.toml @@ -8,4 +8,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/rls-with-filter/Cargo.toml b/crates/smoketests/modules/rls-with-filter/Cargo.toml index 5f59d9c9650..775c4102d2b 100644 --- a/crates/smoketests/modules/rls-with-filter/Cargo.toml +++ b/crates/smoketests/modules/rls-with-filter/Cargo.toml @@ -8,4 +8,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/rls/Cargo.toml b/crates/smoketests/modules/rls/Cargo.toml index f17e75a86b9..5bf7f23159e 100644 --- a/crates/smoketests/modules/rls/Cargo.toml +++ b/crates/smoketests/modules/rls/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/schedule-volatile/Cargo.toml b/crates/smoketests/modules/schedule-volatile/Cargo.toml index 961b77e6a40..253045f7d83 100644 --- a/crates/smoketests/modules/schedule-volatile/Cargo.toml +++ b/crates/smoketests/modules/schedule-volatile/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/sql-format/Cargo.toml b/crates/smoketests/modules/sql-format/Cargo.toml index ff9f2a8837c..bb86a1e9fd4 100644 --- a/crates/smoketests/modules/sql-format/Cargo.toml +++ b/crates/smoketests/modules/sql-format/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/views-basic/Cargo.toml b/crates/smoketests/modules/views-basic/Cargo.toml index eff289cae91..1c704fe15da 100644 --- a/crates/smoketests/modules/views-basic/Cargo.toml +++ b/crates/smoketests/modules/views-basic/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/views-broken-namespace/Cargo.toml b/crates/smoketests/modules/views-broken-namespace/Cargo.toml index f38f99a8256..3bcb166d37d 100644 --- a/crates/smoketests/modules/views-broken-namespace/Cargo.toml +++ b/crates/smoketests/modules/views-broken-namespace/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/views-broken-return-type/Cargo.toml b/crates/smoketests/modules/views-broken-return-type/Cargo.toml index b3eabc7190a..3f14a27f01d 100644 --- a/crates/smoketests/modules/views-broken-return-type/Cargo.toml +++ b/crates/smoketests/modules/views-broken-return-type/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/smoketests/modules/views-callable/Cargo.toml b/crates/smoketests/modules/views-callable/Cargo.toml index 08fe1a81579..6b9d6b90f84 100644 --- a/crates/smoketests/modules/views-callable/Cargo.toml +++ b/crates/smoketests/modules/views-callable/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log.workspace = true diff --git a/crates/snapshot/Cargo.toml b/crates/snapshot/Cargo.toml index 6be91172e42..65424b69142 100644 --- a/crates/snapshot/Cargo.toml +++ b/crates/snapshot/Cargo.toml @@ -20,7 +20,6 @@ blake3.workspace = true bytes.workspace = true crossbeam-queue.workspace = true futures.workspace = true -hex.workspace = true log.workspace = true scopeguard.workspace = true tempfile.workspace = true diff --git a/crates/sql-parser/Cargo.toml b/crates/sql-parser/Cargo.toml index 5ed77a05bdc..2d71bf53b66 100644 --- a/crates/sql-parser/Cargo.toml +++ b/crates/sql-parser/Cargo.toml @@ -7,7 +7,6 @@ license-file = "LICENSE" description = "The SpacetimeDB SQL AST and Parser" [dependencies] -derive_more.workspace = true sqlparser.workspace = true thiserror.workspace = true spacetimedb-lib.workspace = true diff --git a/crates/sqltest/Cargo.toml b/crates/sqltest/Cargo.toml index d6b1e2c8a69..8500b2f4062 100644 --- a/crates/sqltest/Cargo.toml +++ b/crates/sqltest/Cargo.toml @@ -8,7 +8,6 @@ publish = false [dependencies] spacetimedb-lib.workspace = true -spacetimedb-core = { workspace = true, features = ["test"] } spacetimedb-sats.workspace = true anyhow.workspace = true @@ -18,15 +17,12 @@ clap.workspace = true console.workspace = true derive_more.workspace = true fs-err.workspace = true -futures.workspace = true glob.workspace = true itertools.workspace = true -parking_lot.workspace = true postgres-types.workspace = true quick-junit.workspace = true rusqlite.workspace = true rust_decimal.workspace = true -sqllogictest-engines.workspace = true sqllogictest.workspace = true tempfile.workspace = true tokio.workspace = true diff --git a/crates/standalone/Cargo.toml b/crates/standalone/Cargo.toml index 180b3a60b4c..c3904619d91 100644 --- a/crates/standalone/Cargo.toml +++ b/crates/standalone/Cargo.toml @@ -39,25 +39,18 @@ anyhow.workspace = true async-trait.workspace = true axum.workspace = true clap = { workspace = true, features = ["derive", "string"] } -dirs.workspace = true -futures.workspace = true -hostname.workspace = true http.workspace = true log.workspace = true netstat2.workspace = true -openssl.workspace = true parse-size.workspace = true prometheus.workspace = true -scopeguard.workspace = true serde.workspace = true serde_json.workspace = true sled.workspace = true socket2.workspace = true thiserror.workspace = true tokio.workspace = true -tower-http.workspace = true toml.workspace = true -tracing = { workspace = true, features = ["release_max_level_debug"] } [target.'cfg(not(target_env = "msvc"))'.dependencies] tikv-jemallocator = {workspace = true} @@ -67,5 +60,9 @@ tikv-jemalloc-ctl = {workspace = true} once_cell.workspace = true tempfile.workspace = true +[package.metadata.cargo-machete] +# Used through feature forwarding for standalone-only core features. +ignored = ["spacetimedb-core"] + [lints] workspace = true diff --git a/crates/table/Cargo.toml b/crates/table/Cargo.toml index bde6ab5351f..1b5d9684480 100644 --- a/crates/table/Cargo.toml +++ b/crates/table/Cargo.toml @@ -48,7 +48,6 @@ hashbrown.workspace = true itertools.workspace = true smallvec.workspace = true thiserror.workspace = true -crossbeam-queue.workspace = true # For the 'proptest' feature. proptest = { workspace = true, optional = true } diff --git a/crates/testing/Cargo.toml b/crates/testing/Cargo.toml index 84295a77f46..c45b60a6b5c 100644 --- a/crates/testing/Cargo.toml +++ b/crates/testing/Cargo.toml @@ -12,7 +12,6 @@ allow_loopback_http_for_tests = ["spacetimedb-standalone/allow_loopback_http_for spacetimedb-cli.workspace = true spacetimedb-data-structures.workspace = true spacetimedb-lib.workspace = true -spacetimedb-core.workspace = true spacetimedb-standalone.workspace = true spacetimedb-client-api.workspace = true spacetimedb-client-api-messages.workspace = true @@ -27,7 +26,6 @@ log.workspace = true clap.workspace = true serde_json.workspace = true tokio.workspace = true -wasmbin.workspace = true duct.workspace = true lazy_static.workspace = true rand.workspace = true diff --git a/crates/update/Cargo.toml b/crates/update/Cargo.toml index db8fac5ec37..886da812371 100644 --- a/crates/update/Cargo.toml +++ b/crates/update/Cargo.toml @@ -31,7 +31,6 @@ serde_json.workspace = true tar.workspace = true tempfile.workspace = true tokio.workspace = true -toml.workspace = true tracing = { workspace = true, features = ["release_max_level_off"] } zip = "2.3" diff --git a/modules/benchmarks/Cargo.toml b/modules/benchmarks/Cargo.toml index 34b11db149a..762f3022bee 100644 --- a/modules/benchmarks/Cargo.toml +++ b/modules/benchmarks/Cargo.toml @@ -11,5 +11,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb = { path = "../../crates/bindings" } - -anyhow.workspace = true diff --git a/modules/keynote-benchmarks/Cargo.toml b/modules/keynote-benchmarks/Cargo.toml index 00ac4554c94..a0405689401 100644 --- a/modules/keynote-benchmarks/Cargo.toml +++ b/modules/keynote-benchmarks/Cargo.toml @@ -9,4 +9,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb = { path = "../../crates/bindings" } -log = "0.4" diff --git a/modules/perf-test/Cargo.toml b/modules/perf-test/Cargo.toml index 406c3bfd826..3e127468a20 100644 --- a/modules/perf-test/Cargo.toml +++ b/modules/perf-test/Cargo.toml @@ -11,4 +11,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb = { path = "../../crates/bindings" } -log.workspace = true diff --git a/modules/sdk-test-case-conversion/Cargo.toml b/modules/sdk-test-case-conversion/Cargo.toml index c65a6d832d6..966d827c1bc 100644 --- a/modules/sdk-test-case-conversion/Cargo.toml +++ b/modules/sdk-test-case-conversion/Cargo.toml @@ -8,7 +8,6 @@ license-file = "LICENSE" crate-type = ["cdylib"] [dependencies] -log.workspace = true [dependencies.spacetimedb] workspace = true diff --git a/modules/sdk-test-connect-disconnect/Cargo.toml b/modules/sdk-test-connect-disconnect/Cargo.toml index 8a5b32f5e46..124a805142b 100644 --- a/modules/sdk-test-connect-disconnect/Cargo.toml +++ b/modules/sdk-test-connect-disconnect/Cargo.toml @@ -11,4 +11,3 @@ crate-type = ["cdylib"] [dependencies] spacetimedb.workspace = true -log = "0.4" diff --git a/modules/sdk-test-procedure-concurrency/Cargo.toml b/modules/sdk-test-procedure-concurrency/Cargo.toml index 3f82f68dd69..b885df0822f 100644 --- a/modules/sdk-test-procedure-concurrency/Cargo.toml +++ b/modules/sdk-test-procedure-concurrency/Cargo.toml @@ -9,8 +9,6 @@ crate-type = ["cdylib"] [dependencies] log.workspace = true -anyhow.workspace = true -paste.workspace = true [dependencies.spacetimedb] workspace = true diff --git a/modules/sdk-test-procedure/Cargo.toml b/modules/sdk-test-procedure/Cargo.toml index b17e8f9b3c1..c9eee87587e 100644 --- a/modules/sdk-test-procedure/Cargo.toml +++ b/modules/sdk-test-procedure/Cargo.toml @@ -10,9 +10,6 @@ license-file = "LICENSE" crate-type = ["cdylib"] [dependencies] -log.workspace = true -anyhow.workspace = true -paste.workspace = true [dependencies.spacetimedb] workspace = true diff --git a/modules/sdk-test-view/Cargo.toml b/modules/sdk-test-view/Cargo.toml index 3647b98505d..8209ce83071 100644 --- a/modules/sdk-test-view/Cargo.toml +++ b/modules/sdk-test-view/Cargo.toml @@ -10,9 +10,6 @@ license-file = "LICENSE" crate-type = ["cdylib"] [dependencies] -log.workspace = true -anyhow.workspace = true -paste.workspace = true [dependencies.spacetimedb] workspace = true diff --git a/modules/sdk-test/Cargo.toml b/modules/sdk-test/Cargo.toml index 7249944a065..806e336afb0 100644 --- a/modules/sdk-test/Cargo.toml +++ b/modules/sdk-test/Cargo.toml @@ -10,7 +10,6 @@ license-file = "LICENSE" crate-type = ["cdylib"] [dependencies] -log.workspace = true anyhow.workspace = true paste.workspace = true diff --git a/sdks/rust/Cargo.toml b/sdks/rust/Cargo.toml index 1f3ee9903d2..7523aea66b9 100644 --- a/sdks/rust/Cargo.toml +++ b/sdks/rust/Cargo.toml @@ -31,11 +31,9 @@ spacetimedb-lib = { workspace = true, features = ["serde", "metrics_impls"]} spacetimedb-client-api-messages.workspace = true spacetimedb-metrics.workspace = true spacetimedb-query-builder.workspace = true -spacetimedb-schema.workspace = true thiserror.workspace = true anymap3 = "1.0.1" -base64.workspace = true brotli.workspace = true bytes.workspace = true flate2.workspace = true @@ -46,7 +44,6 @@ log.workspace = true once_cell.workspace = true prometheus.workspace = true rand.workspace = true - getrandom = { version = "0.3.4", features = ["wasm_js"], optional = true } gloo-console = { version = "0.3.0", optional = true } gloo-net = { version = "0.6.0", optional = true } @@ -77,5 +74,9 @@ shlex = "1.3.0" # for tests spacetimedb-testing = { path = "../../crates/testing" } +[package.metadata.cargo-machete] +# Used through the `wasm` feature's `dep:getrandom` entry. +ignored = ["getrandom"] + [lints] workspace = true diff --git a/sdks/rust/tests/connect_disconnect_client/Cargo.toml b/sdks/rust/tests/connect_disconnect_client/Cargo.toml index 61ff6af9852..26a25e0d3a3 100644 --- a/sdks/rust/tests/connect_disconnect_client/Cargo.toml +++ b/sdks/rust/tests/connect_disconnect_client/Cargo.toml @@ -42,5 +42,9 @@ wasm-bindgen = { version = "0.2.100", optional = true } wasm-bindgen-futures = { version = "0.4.45", optional = true } console_error_panic_hook = { version = "0.1.7", optional = true } +[package.metadata.cargo-machete] +# Used through the `browser` feature's `dep:` entries. +ignored = ["futures", "wasm-bindgen-futures"] + [lints] workspace = true diff --git a/sdks/rust/tests/event-table-client/Cargo.toml b/sdks/rust/tests/event-table-client/Cargo.toml index 2fdbb9f04a0..86545ca44fd 100644 --- a/sdks/rust/tests/event-table-client/Cargo.toml +++ b/sdks/rust/tests/event-table-client/Cargo.toml @@ -41,5 +41,9 @@ wasm-bindgen = { version = "0.2.100", optional = true } wasm-bindgen-futures = { version = "0.4.45", optional = true } console_error_panic_hook = { version = "0.1.7", optional = true } +[package.metadata.cargo-machete] +# Used through the `browser` feature's `dep:` entries. +ignored = ["futures", "wasm-bindgen-futures"] + [lints] workspace = true diff --git a/sdks/rust/tests/procedural-view-pk-client/Cargo.toml b/sdks/rust/tests/procedural-view-pk-client/Cargo.toml index c3f668c260f..fb86336c40f 100644 --- a/sdks/rust/tests/procedural-view-pk-client/Cargo.toml +++ b/sdks/rust/tests/procedural-view-pk-client/Cargo.toml @@ -38,5 +38,9 @@ wasm-bindgen = { version = "0.2.100", optional = true } wasm-bindgen-futures = { version = "0.4.45", optional = true } console_error_panic_hook = { version = "0.1.7", optional = true } +[package.metadata.cargo-machete] +# Used through the `browser` feature's `dep:` entry. +ignored = ["wasm-bindgen-futures"] + [lints] workspace = true diff --git a/sdks/rust/tests/procedure-client/Cargo.toml b/sdks/rust/tests/procedure-client/Cargo.toml index c11bb90d108..f7d41cb4b0a 100644 --- a/sdks/rust/tests/procedure-client/Cargo.toml +++ b/sdks/rust/tests/procedure-client/Cargo.toml @@ -46,5 +46,9 @@ wasm-bindgen = { version = "0.2.100", optional = true } wasm-bindgen-futures = { version = "0.4.45", optional = true } console_error_panic_hook = { version = "0.1.7", optional = true } +[package.metadata.cargo-machete] +# Used through the `browser` feature's `dep:` entries. +ignored = ["futures", "wasm-bindgen-futures"] + [lints] workspace = true diff --git a/sdks/rust/tests/procedure-concurrency-client/Cargo.toml b/sdks/rust/tests/procedure-concurrency-client/Cargo.toml index eb747915fba..78a2fe9fe45 100644 --- a/sdks/rust/tests/procedure-concurrency-client/Cargo.toml +++ b/sdks/rust/tests/procedure-concurrency-client/Cargo.toml @@ -40,5 +40,9 @@ wasm-bindgen = { version = "0.2.100", optional = true } wasm-bindgen-futures = { version = "0.4.45", optional = true } console_error_panic_hook = { version = "0.1.7", optional = true } +[package.metadata.cargo-machete] +# Used through the `browser` feature's `dep:` entries. +ignored = ["futures", "wasm-bindgen-futures"] + [lints] workspace = true diff --git a/sdks/rust/tests/test-client/Cargo.toml b/sdks/rust/tests/test-client/Cargo.toml index 06a92e1f5fb..c40c83d3c86 100644 --- a/sdks/rust/tests/test-client/Cargo.toml +++ b/sdks/rust/tests/test-client/Cargo.toml @@ -50,5 +50,9 @@ wasm-bindgen = { version = "0.2.100", optional = true } wasm-bindgen-futures = { version = "0.4.45", optional = true } console_error_panic_hook = { version = "0.1.7", optional = true } +[package.metadata.cargo-machete] +# Used through the `browser` feature's `dep:` entries. +ignored = ["futures", "gloo-timers", "wasm-bindgen-futures"] + [lints] workspace = true diff --git a/sdks/rust/tests/test-counter/Cargo.toml b/sdks/rust/tests/test-counter/Cargo.toml index fa0c9cebb33..e246865f13d 100644 --- a/sdks/rust/tests/test-counter/Cargo.toml +++ b/sdks/rust/tests/test-counter/Cargo.toml @@ -9,7 +9,6 @@ license-file = "LICENSE" [dependencies] spacetimedb-data-structures.workspace = true anyhow.workspace = true -futures.workspace = true gloo-timers = { version = "0.3.0", features = ["futures"] } [lints] diff --git a/sdks/rust/tests/view-client/Cargo.toml b/sdks/rust/tests/view-client/Cargo.toml index 2ca445f54a3..be29ed953f1 100644 --- a/sdks/rust/tests/view-client/Cargo.toml +++ b/sdks/rust/tests/view-client/Cargo.toml @@ -45,5 +45,9 @@ wasm-bindgen = { version = "0.2.100", optional = true } wasm-bindgen-futures = { version = "0.4.45", optional = true } console_error_panic_hook = { version = "0.1.7", optional = true } +[package.metadata.cargo-machete] +# Used through the `browser` feature's `dep:` entries. +ignored = ["futures", "wasm-bindgen-futures"] + [lints] workspace = true diff --git a/sdks/rust/tests/view-pk-client/Cargo.toml b/sdks/rust/tests/view-pk-client/Cargo.toml index 8e96bea8ec2..30d0ff4b1b4 100644 --- a/sdks/rust/tests/view-pk-client/Cargo.toml +++ b/sdks/rust/tests/view-pk-client/Cargo.toml @@ -42,5 +42,9 @@ wasm-bindgen = { version = "0.2.100", optional = true } wasm-bindgen-futures = { version = "0.4.45", optional = true } console_error_panic_hook = { version = "0.1.7", optional = true } +[package.metadata.cargo-machete] +# Used through the `browser` feature's `dep:` entries. +ignored = ["futures", "wasm-bindgen-futures"] + [lints] workspace = true diff --git a/templates/chat-console-rs/spacetimedb/Cargo.toml b/templates/chat-console-rs/spacetimedb/Cargo.toml index 541a0cee506..3c1f893369a 100644 --- a/templates/chat-console-rs/spacetimedb/Cargo.toml +++ b/templates/chat-console-rs/spacetimedb/Cargo.toml @@ -11,4 +11,4 @@ crate-type = ["cdylib"] [dependencies] spacetimedb = { path = "../../../crates/bindings" } -log.workspace = true +log = "0.4" diff --git a/tools/ci/README.md b/tools/ci/README.md index aaf5b09477b..d778f2b43c0 100644 --- a/tools/ci/README.md +++ b/tools/ci/README.md @@ -161,6 +161,18 @@ Options: Print help (see a summary with '-h') ``` +### `dep-check` + +**Usage:** +```bash +Usage: dep-check [ARGS]... +``` + +**Options:** + +- `args `: Arguments forwarded to the split CI command package +- `--help`: Print help + ### `self-docs` **Usage:** diff --git a/tools/ci/commands/dep-check/Cargo.toml b/tools/ci/commands/dep-check/Cargo.toml new file mode 100644 index 00000000000..3c0e49f52b1 --- /dev/null +++ b/tools/ci/commands/dep-check/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "ci-dep-check" +version = "0.1.0" +edition.workspace = true + +[dependencies] +anyhow.workspace = true +ci-common = { path = "../../common" } +duct.workspace = true diff --git a/tools/ci/commands/dep-check/src/main.rs b/tools/ci/commands/dep-check/src/main.rs new file mode 100644 index 00000000000..f75ccc4c097 --- /dev/null +++ b/tools/ci/commands/dep-check/src/main.rs @@ -0,0 +1,9 @@ +use anyhow::Result; +use ci_common::ensure_repo_root; +use duct::cmd; + +fn main() -> Result<()> { + ensure_repo_root()?; + cmd("cargo-machete", std::env::args_os().skip(1)).run()?; + Ok(()) +} diff --git a/tools/ci/src/main.rs b/tools/ci/src/main.rs index 3908621996e..e993480e1f5 100644 --- a/tools/ci/src/main.rs +++ b/tools/ci/src/main.rs @@ -56,6 +56,8 @@ enum CiCmd { /// Tests the update flow. UpdateFlow(ForwardedArgs), CliDocs(ForwardedArgs), + /// Checks Rust manifests for unused dependencies. + DepCheck(ForwardedArgs), SelfDocs { /// Only check for changes, do not generate the docs. #[arg(long)] @@ -165,6 +167,7 @@ fn run_command(cmd: CiCmd) -> Result<()> { CiCmd::KeynoteBench(args) => run_package("ci-keynote-bench", &args.args), CiCmd::UpdateFlow(args) => run_package("ci-update-flow", &args.args), CiCmd::CliDocs(args) => run_package("ci-cli-docs", &args.args), + CiCmd::DepCheck(args) => run_package("ci-dep-check", &args.args), CiCmd::SelfDocs { check } => run_self_docs(check), CiCmd::GlobalJsonPolicy(args) => run_package("ci-global-json-policy", &args.args), CiCmd::PublishChecks(args) => run_package("ci-publish-checks", &args.args), diff --git a/tools/replace-spacetimedb/Cargo.toml b/tools/replace-spacetimedb/Cargo.toml index ef4fc11e572..7c3070b1be1 100644 --- a/tools/replace-spacetimedb/Cargo.toml +++ b/tools/replace-spacetimedb/Cargo.toml @@ -15,4 +15,3 @@ path = "src/main.rs" clap.workspace = true regex.workspace = true ignore = "0.4" -memchr = "2" \ No newline at end of file diff --git a/tools/xtask-llm-benchmark/src/templates/rust/server/Cargo.toml b/tools/xtask-llm-benchmark/src/templates/rust/server/Cargo.toml index d925f98168b..aa94efb4670 100644 --- a/tools/xtask-llm-benchmark/src/templates/rust/server/Cargo.toml +++ b/tools/xtask-llm-benchmark/src/templates/rust/server/Cargo.toml @@ -9,5 +9,3 @@ edition = "2021" crate-type = ["cdylib"] [dependencies] -spacetimedb = { path = "../../../../../../sdks/rust/" } -log = "0.4"