From 6440cbcc6a4589635c23195b0565ca3418b4b88a Mon Sep 17 00:00:00 2001 From: clockwork-labs-bot Date: Sun, 9 Aug 2026 14:05:18 -0400 Subject: [PATCH 1/8] Add cargo ci dep-check --- .github/workflows/ci.yml | 6 ++++++ Cargo.lock | 9 +++++++++ Cargo.toml | 1 + tools/ci/README.md | 12 ++++++++++++ tools/ci/commands/dep-check/Cargo.toml | 9 +++++++++ tools/ci/commands/dep-check/src/main.rs | 13 +++++++++++++ tools/ci/src/main.rs | 3 +++ 7 files changed, 53 insertions(+) create mode 100644 tools/ci/commands/dep-check/Cargo.toml create mode 100644 tools/ci/commands/dep-check/src/main.rs diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c39b4a2458e..8bc22b5c9d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -445,6 +445,12 @@ jobs: - name: Run ci lint run: cargo ci lint + - name: Install cargo-machete + run: cargo install cargo-machete --version 0.9.2 --locked + + - name: Run dependency check + run: cargo ci dep-check + - name: Upload public lint Cargo timing reports if: always() uses: actions/upload-artifact@v4 diff --git a/Cargo.lock b/Cargo.lock index 18004020f46..884c7e9d598 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -955,6 +955,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" 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/tools/ci/README.md b/tools/ci/README.md index 108cc61642b..7529bc82ad1 100644 --- a/tools/ci/README.md +++ b/tools/ci/README.md @@ -120,6 +120,18 @@ Usage: cli-docs [ARGS]... - `args `: Arguments forwarded to the split CI command package - `--help`: Print help +### `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..d2924bd5a7e --- /dev/null +++ b/tools/ci/commands/dep-check/src/main.rs @@ -0,0 +1,13 @@ +use anyhow::Result; +use ci_common::ensure_repo_root; +use duct::cmd; + +fn main() -> Result<()> { + ensure_repo_root()?; + let mut args = std::env::args_os().skip(1).collect::>(); + if args.is_empty() { + args.push("tools/ci".into()); + } + cmd("cargo-machete", args).run()?; + Ok(()) +} diff --git a/tools/ci/src/main.rs b/tools/ci/src/main.rs index 9176d192a1c..ffc752c69b7 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)] @@ -125,6 +127,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), From 47a7090d24db923bdd4daa2cc3485b80d73b956c Mon Sep 17 00:00:00 2001 From: clockwork-labs-bot Date: Sun, 9 Aug 2026 14:26:26 -0400 Subject: [PATCH 2/8] Restore dep-check lint workflow --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c39b4a2458e..57aacf41188 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -445,6 +445,12 @@ jobs: - name: Run ci lint run: cargo ci lint + - name: Install cargo-machete + run: cargo install cargo-machete --locked + + - name: Run dependency check + run: cargo ci dep-check + - name: Upload public lint Cargo timing reports if: always() uses: actions/upload-artifact@v4 From d7e4ff07d264459cd3b6e19987b206ed90bc58a6 Mon Sep 17 00:00:00 2001 From: clockwork-labs-bot Date: Sun, 9 Aug 2026 14:41:52 -0400 Subject: [PATCH 3/8] Remove unused dependencies for dep-check --- Cargo.lock | 239 +----------------- crates/bench/Cargo.toml | 8 +- crates/bindings-macro/Cargo.toml | 1 - .../test-app/server/Cargo.toml | 2 - .../test-react-router-app/server/Cargo.toml | 2 - .../test-solid-router/server/Cargo.toml | 2 - crates/bindings/Cargo.toml | 5 +- crates/cli/Cargo.toml | 8 - crates/client-api-messages/Cargo.toml | 2 - crates/client-api/Cargo.toml | 13 +- crates/commitlog/Cargo.toml | 1 - crates/core/Cargo.toml | 22 -- crates/datastore/Cargo.toml | 2 - crates/dst/Cargo.toml | 2 - crates/durability/Cargo.toml | 1 - crates/execution/Cargo.toml | 1 - crates/expr/Cargo.toml | 2 - crates/guard/Cargo.toml | 1 - crates/lib/Cargo.toml | 11 +- crates/query/Cargo.toml | 5 - crates/sats/Cargo.toml | 1 - crates/schema/Cargo.toml | 2 - .../add-remove-index-indexed/Cargo.toml | 1 - .../modules/add-remove-index/Cargo.toml | 1 - .../Cargo.toml | 1 - .../Cargo.toml | 1 - .../Cargo.toml | 1 - .../Cargo.toml | 1 - .../Cargo.toml | 1 - .../Cargo.toml | 1 - .../Cargo.toml | 1 - .../smoketests/modules/call-empty/Cargo.toml | 1 - .../Cargo.toml | 1 - .../client-connection-reject/Cargo.toml | 1 - .../modules/confirmed-reads/Cargo.toml | 1 - .../modules/delete-database/Cargo.toml | 1 - crates/smoketests/modules/dml/Cargo.toml | 1 - .../fail-initial-publish-broken/Cargo.toml | 1 - .../fail-initial-publish-fixed/Cargo.toml | 1 - .../modules/hotswap-basic/Cargo.toml | 1 - .../modules/hotswap-updated/Cargo.toml | 1 - .../smoketests/modules/http-egress/Cargo.toml | 1 - .../modules/http-routes-example/Cargo.toml | 1 - .../modules/http-routes-full-uri/Cargo.toml | 1 - .../http-routes-request-body/Cargo.toml | 1 - .../http-routes-strict-non-root/Cargo.toml | 1 - .../http-routes-strict-root/Cargo.toml | 1 - .../smoketests/modules/http-routes/Cargo.toml | 1 - .../modules/modules-breaking/Cargo.toml | 1 - crates/smoketests/modules/noop/Cargo.toml | 1 - .../smoketests/modules/panic-error/Cargo.toml | 1 - .../modules/permissions-lifecycle/Cargo.toml | 1 - .../modules/permissions-private/Cargo.toml | 1 - crates/smoketests/modules/pg-wire/Cargo.toml | 1 - .../rls-broken-private-table/Cargo.toml | 1 - .../modules/rls-no-filter/Cargo.toml | 1 - .../modules/rls-with-filter/Cargo.toml | 1 - crates/smoketests/modules/rls/Cargo.toml | 1 - .../modules/schedule-volatile/Cargo.toml | 1 - .../smoketests/modules/sql-format/Cargo.toml | 1 - .../smoketests/modules/views-basic/Cargo.toml | 1 - .../modules/views-broken-namespace/Cargo.toml | 1 - .../views-broken-return-type/Cargo.toml | 1 - .../modules/views-callable/Cargo.toml | 1 - crates/snapshot/Cargo.toml | 1 - crates/sql-parser/Cargo.toml | 1 - crates/sqltest/Cargo.toml | 8 +- crates/standalone/Cargo.toml | 10 +- crates/table/Cargo.toml | 1 - crates/testing/Cargo.toml | 4 +- crates/update/Cargo.toml | 1 - modules/benchmarks/Cargo.toml | 2 - modules/keynote-benchmarks/Cargo.toml | 1 - modules/perf-test/Cargo.toml | 1 - modules/sdk-test-case-conversion/Cargo.toml | 1 - .../sdk-test-connect-disconnect/Cargo.toml | 1 - .../sdk-test-procedure-concurrency/Cargo.toml | 2 - modules/sdk-test-procedure/Cargo.toml | 3 - modules/sdk-test-view/Cargo.toml | 3 - modules/sdk-test/Cargo.toml | 1 - sdks/rust/Cargo.toml | 6 +- .../connect_disconnect_client/Cargo.toml | 5 +- sdks/rust/tests/event-table-client/Cargo.toml | 3 + .../procedural-view-pk-client/Cargo.toml | 3 + sdks/rust/tests/procedure-client/Cargo.toml | 3 + .../procedure-concurrency-client/Cargo.toml | 3 + sdks/rust/tests/test-client/Cargo.toml | 3 + sdks/rust/tests/test-counter/Cargo.toml | 1 - sdks/rust/tests/view-client/Cargo.toml | 3 + sdks/rust/tests/view-pk-client/Cargo.toml | 3 + templates/chat-console-rs/Cargo.toml | 3 + tools/replace-spacetimedb/Cargo.toml | 1 - .../src/templates/rust/server/Cargo.toml | 2 - 93 files changed, 54 insertions(+), 401 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 884c7e9d598..6a080cdff18 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" @@ -2113,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" @@ -3053,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" @@ -3509,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" @@ -3876,7 +3830,6 @@ dependencies = [ name = "keynote-benchmarks" version = "0.1.0" dependencies = [ - "log", "spacetimedb", ] @@ -4161,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" @@ -5475,7 +5422,6 @@ checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" name = "perf-test-module" version = "0.1.0" dependencies = [ - "log", "spacetimedb", ] @@ -5544,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" @@ -5728,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" @@ -5749,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" @@ -5789,7 +5703,6 @@ dependencies = [ "bytes", "chrono", "fallible-iterator 0.2.0", - "postgres-derive", "postgres-protocol", "serde_core", "serde_json", @@ -6512,7 +6425,6 @@ version = "0.1.0" dependencies = [ "clap 4.5.50", "ignore", - "memchr", "regex", ] @@ -7331,7 +7243,6 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" name = "sdk-test-case-conversion" version = "0.1.0" dependencies = [ - "log", "spacetimedb", ] @@ -7347,7 +7258,6 @@ name = "sdk-test-module" version = "0.1.0" dependencies = [ "anyhow", - "log", "paste", "spacetimedb", ] @@ -7363,9 +7273,7 @@ dependencies = [ name = "sdk-test-procedure-concurrency-module" version = "0.1.0" dependencies = [ - "anyhow", "log", - "paste", "spacetimedb", ] @@ -7373,9 +7281,6 @@ dependencies = [ name = "sdk-test-procedure-module" version = "0.1.0" dependencies = [ - "anyhow", - "log", - "paste", "spacetimedb", ] @@ -7383,9 +7288,6 @@ dependencies = [ name = "sdk-test-view" version = "0.1.0" dependencies = [ - "anyhow", - "log", - "paste", "spacetimedb", ] @@ -7865,7 +7767,6 @@ dependencies = [ name = "spacetime-module" version = "0.1.0" dependencies = [ - "log", "spacetimedb", ] @@ -7876,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", @@ -7911,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", @@ -7933,7 +7829,6 @@ dependencies = [ "serde_json", "serial_test", "smallvec", - "spacetimedb-client-api", "spacetimedb-client-api-messages", "spacetimedb-core", "spacetimedb-data-structures", @@ -7945,7 +7840,6 @@ dependencies = [ "spacetimedb-query", "spacetimedb-sats", "spacetimedb-schema", - "spacetimedb-standalone", "spacetimedb-table", "spacetimedb-testing", "tempdir", @@ -7964,7 +7858,6 @@ dependencies = [ "humantime", "proc-macro2", "quote", - "spacetimedb-primitives", "syn 2.0.107", ] @@ -7991,8 +7884,6 @@ dependencies = [ "dialoguer", "dirs", "duct", - "email_address", - "flate2", "fs-err", "fs_extra", "futures", @@ -8010,7 +7901,6 @@ dependencies = [ "path-clean", "percent-encoding", "pretty_assertions", - "quick-xml 0.31.0", "regex", "reqwest 0.12.24", "rolldown", @@ -8021,7 +7911,6 @@ dependencies = [ "serde", "serde_json", "serde_with", - "slab", "spacetimedb-auth", "spacetimedb-client-api-messages", "spacetimedb-codegen", @@ -8030,11 +7919,9 @@ dependencies = [ "spacetimedb-jsonwebtoken", "spacetimedb-lib", "spacetimedb-paths", - "spacetimedb-primitives", "spacetimedb-schema", "syntect", "tabled", - "tar", "tempfile", "termcolor", "termtree", @@ -8045,7 +7932,6 @@ dependencies = [ "tokio-tungstenite 0.27.0", "toml 0.8.23", "toml_edit 0.22.27", - "tracing", "walkdir", "wasmbin", "webbrowser", @@ -8065,10 +7951,8 @@ dependencies = [ "base64 0.21.7", "bytes", "bytestring", - "chrono", "crossbeam-queue", "derive_more 0.99.20", - "email_address", "futures", "headers", "http 1.3.1", @@ -8076,16 +7960,13 @@ 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", @@ -8093,21 +7974,16 @@ dependencies = [ "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", ] @@ -8118,7 +7994,6 @@ version = "2.8.0" dependencies = [ "bytes", "bytestring", - "chrono", "derive_more 0.99.20", "enum-as-inner", "hex", @@ -8131,7 +8006,6 @@ dependencies = [ "spacetimedb-lib", "spacetimedb-primitives", "spacetimedb-sats", - "strum", "thiserror 1.0.69", ] @@ -8185,7 +8059,6 @@ dependencies = [ "tokio", "tokio-stream", "tokio-util", - "zstd-framed", ] [[package]] @@ -8193,11 +8066,9 @@ name = "spacetimedb-core" version = "2.8.0" dependencies = [ "anyhow", - "arrayvec", "async-trait", "async_cache", "axum", - "backtrace", "base64 0.21.7", "blake3", "brotli", @@ -8207,27 +8078,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", @@ -8238,7 +8101,6 @@ dependencies = [ "once_cell", "openssl", "parking_lot 0.12.5", - "paste", "pin-project-lite", "pretty_assertions", "prometheus", @@ -8257,10 +8119,7 @@ dependencies = [ "serde_json", "serde_path_to_error", "serde_with", - "sha1", - "similar", "slab", - "sled", "smallvec", "sourcemap", "spacetimedb-auth", @@ -8272,7 +8131,6 @@ dependencies = [ "spacetimedb-engine", "spacetimedb-execution", "spacetimedb-expr", - "spacetimedb-fs-utils", "spacetimedb-jsonwebtoken", "spacetimedb-jwks", "spacetimedb-lib", @@ -8285,14 +8143,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", @@ -8305,12 +8159,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", @@ -8339,7 +8190,6 @@ dependencies = [ "anyhow", "bytes", "derive_more 0.99.20", - "enum-as-inner", "enum-map", "itertools 0.12.1", "lazy_static", @@ -8356,7 +8206,6 @@ dependencies = [ "spacetimedb-execution", "spacetimedb-lib", "spacetimedb-metrics", - "spacetimedb-paths", "spacetimedb-primitives", "spacetimedb-sats", "spacetimedb-schema", @@ -8372,7 +8221,6 @@ name = "spacetimedb-dst-lib" version = "2.8.0" dependencies = [ "anyhow", - "clap 4.5.50", "spacetimedb-commitlog", "spacetimedb-datastore", "spacetimedb-durability", @@ -8384,7 +8232,6 @@ dependencies = [ "spacetimedb-schema", "spacetimedb-table", "tracing", - "tracing-subscriber", ] [[package]] @@ -8401,7 +8248,6 @@ dependencies = [ "spacetimedb-fs-utils", "spacetimedb-paths", "spacetimedb-runtime", - "spacetimedb-sats", "tempfile", "thiserror 1.0.69", "tokio", @@ -8461,7 +8307,6 @@ dependencies = [ "spacetimedb-physical-plan", "spacetimedb-primitives", "spacetimedb-sats", - "spacetimedb-sql-parser", "spacetimedb-table", ] @@ -8471,8 +8316,6 @@ version = "2.8.0" dependencies = [ "anyhow", "bigdecimal", - "bytes", - "derive_more 0.99.20", "ethnum", "pretty_assertions", "spacetimedb", @@ -8505,7 +8348,6 @@ dependencies = [ name = "spacetimedb-guard" version = "2.8.0" dependencies = [ - "portpicker", "reqwest 0.12.24", "tempfile", ] @@ -8554,17 +8396,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", @@ -8575,7 +8411,6 @@ dependencies = [ "spacetimedb-metrics", "spacetimedb-primitives", "spacetimedb-sats", - "thiserror 1.0.69", ] [[package]] @@ -8668,17 +8503,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]] @@ -8725,7 +8555,6 @@ dependencies = [ "ahash 0.8.12", "anyhow", "arrayvec", - "bitflags 2.10.0", "blake3", "bytemuck", "bytes", @@ -8770,7 +8599,6 @@ dependencies = [ "lean_string", "petgraph 0.6.5", "proptest", - "serde_json", "serial_test", "smallvec", "spacetimedb-data-structures", @@ -8778,7 +8606,6 @@ dependencies = [ "spacetimedb-memory-usage", "spacetimedb-primitives", "spacetimedb-sats", - "spacetimedb-sql-parser", "spacetimedb-testing", "termcolor", "thiserror 1.0.69", @@ -8791,7 +8618,6 @@ name = "spacetimedb-sdk" version = "2.8.0" dependencies = [ "anymap3", - "base64 0.21.7", "brotli", "bytes", "cursive", @@ -8819,7 +8645,6 @@ dependencies = [ "spacetimedb-metrics", "spacetimedb-query-builder", "spacetimedb-sats", - "spacetimedb-schema", "spacetimedb-testing", "thiserror 1.0.69", "tokio", @@ -8863,7 +8688,6 @@ dependencies = [ "crossbeam-queue", "env_logger 0.10.2", "futures", - "hex", "log", "pretty_assertions", "rand 0.9.2", @@ -8892,7 +8716,6 @@ dependencies = [ name = "spacetimedb-sql-parser" version = "2.8.0" dependencies = [ - "derive_more 0.99.20", "spacetimedb-lib", "sqlparser", "thiserror 1.0.69", @@ -8906,17 +8729,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", @@ -8936,8 +8754,6 @@ dependencies = [ "tikv-jemallocator", "tokio", "toml 0.8.23", - "tower-http 0.5.2", - "tracing", ] [[package]] @@ -8963,7 +8779,6 @@ dependencies = [ "blake3", "bytemuck", "criterion", - "crossbeam-queue", "decorum", "derive_more 0.99.20", "enum-as-inner", @@ -9011,7 +8826,6 @@ dependencies = [ "spacetimedb-standalone", "tempfile", "tokio", - "wasmbin", ] [[package]] @@ -9036,7 +8850,6 @@ dependencies = [ "tar", "tempfile", "tokio", - "toml 0.8.23", "tracing", "windows-sys 0.59.0", "zip", @@ -9072,29 +8885,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" @@ -9115,10 +8905,8 @@ 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", @@ -9127,7 +8915,6 @@ dependencies = [ "spacetimedb-lib", "spacetimedb-sats", "sqllogictest", - "sqllogictest-engines", "tempfile", "tokio", "tokio-postgres", @@ -9543,7 +9330,6 @@ name = "test-counter" version = "2.8.0" dependencies = [ "anyhow", - "futures", "gloo-timers", "spacetimedb-data-structures", ] @@ -10122,17 +9908,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" @@ -10171,7 +9946,7 @@ dependencies = [ "thread_local", "tracing", "tracing-core", - "tracing-log 0.2.0", + "tracing-log", "tracing-serde", ] @@ -10304,8 +10079,6 @@ checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" name = "typescript-test-app" version = "0.1.0" dependencies = [ - "anyhow", - "log", "spacetimedb", ] @@ -10313,8 +10086,6 @@ dependencies = [ name = "typescript-test-react-router-app" version = "0.1.0" dependencies = [ - "anyhow", - "log", "spacetimedb", ] @@ -10322,8 +10093,6 @@ dependencies = [ name = "typescript-test-solid-router-app" version = "0.1.0" dependencies = [ - "anyhow", - "log", "spacetimedb", ] @@ -10432,12 +10201,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/crates/bench/Cargo.toml b/crates/bench/Cargo.toml index 115eb115022..7777edd22d3 100644 --- a/crates/bench/Cargo.toml +++ b/crates/bench/Cargo.toml @@ -37,7 +37,6 @@ 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 @@ -49,18 +48,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 @@ -95,5 +90,8 @@ iai-callgrind = { git = "https://github.com/clockworklabs/iai-callgrind.git", br iai-callgrind-runner = { git = "https://github.com/clockworklabs/iai-callgrind.git", branch = "main" } iai-callgrind-macros = { git = "https://github.com/clockworklabs/iai-callgrind.git", branch = "main" } +[package.metadata.cargo-machete] +ignored = ["spacetimedb-core"] + [lints] 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..d32109b96ac 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,8 @@ serde_json.workspace = true insta.workspace = true trybuild.workspace = true +[package.metadata.cargo-machete] +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..da9b34609ae 100644 --- a/crates/client-api/Cargo.toml +++ b/crates/client-api/Cargo.toml @@ -10,7 +10,6 @@ rust-version.workspace = true 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 +17,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 +31,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 @@ -71,6 +61,9 @@ proptest.workspace = true tokio = { workspace = true, features = ["full", "test-util"] } toml.workspace = true +[package.metadata.cargo-machete] +ignored = ["spacetimedb-core"] + [lints] 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..ff1c4ee9656 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,8 @@ ron.workspace = true proptest.workspace = true proptest-derive.workspace = true +[package.metadata.cargo-machete] +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..2cc68893075 100644 --- a/crates/sqltest/Cargo.toml +++ b/crates/sqltest/Cargo.toml @@ -8,7 +8,7 @@ publish = false [dependencies] spacetimedb-lib.workspace = true -spacetimedb-core = { workspace = true, features = ["test"] } +spacetimedb-core.workspace = true spacetimedb-sats.workspace = true anyhow.workspace = true @@ -18,19 +18,19 @@ 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 tokio-postgres.workspace = true +[package.metadata.cargo-machete] +ignored = ["spacetimedb-core"] + [lints] workspace = true diff --git a/crates/standalone/Cargo.toml b/crates/standalone/Cargo.toml index 180b3a60b4c..e9186bb18c3 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,8 @@ tikv-jemalloc-ctl = {workspace = true} once_cell.workspace = true tempfile.workspace = true +[package.metadata.cargo-machete] +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..1e82be444b0 100644 --- a/crates/testing/Cargo.toml +++ b/crates/testing/Cargo.toml @@ -27,7 +27,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 @@ -38,5 +37,8 @@ futures.workspace = true [dev-dependencies] serial_test.workspace = true +[package.metadata.cargo-machete] +ignored = ["spacetimedb-core"] + [lints] 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..396b15cbea8 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,8 @@ shlex = "1.3.0" # for tests spacetimedb-testing = { path = "../../crates/testing" } +[package.metadata.cargo-machete] +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..5f7e7eda720 100644 --- a/sdks/rust/tests/connect_disconnect_client/Cargo.toml +++ b/sdks/rust/tests/connect_disconnect_client/Cargo.toml @@ -34,13 +34,16 @@ required-features = ["native"] spacetimedb-sdk = { path = "../.." } test-counter = { path = "../test-counter" } anyhow.workspace = true -futures = { workspace = true, optional = true } tokio = { workspace = true, optional = true } +futures = { workspace = true, optional = true } gloo-timers = { version = "0.3.0", features = ["futures"], optional = true } 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] +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..86d85c0abb9 100644 --- a/sdks/rust/tests/event-table-client/Cargo.toml +++ b/sdks/rust/tests/event-table-client/Cargo.toml @@ -41,5 +41,8 @@ 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] +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..1b9d2507c39 100644 --- a/sdks/rust/tests/procedural-view-pk-client/Cargo.toml +++ b/sdks/rust/tests/procedural-view-pk-client/Cargo.toml @@ -38,5 +38,8 @@ 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] +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..e88384e9884 100644 --- a/sdks/rust/tests/procedure-client/Cargo.toml +++ b/sdks/rust/tests/procedure-client/Cargo.toml @@ -46,5 +46,8 @@ 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] +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..8dadef8aa01 100644 --- a/sdks/rust/tests/procedure-concurrency-client/Cargo.toml +++ b/sdks/rust/tests/procedure-concurrency-client/Cargo.toml @@ -40,5 +40,8 @@ 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] +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..25ecb5e7615 100644 --- a/sdks/rust/tests/test-client/Cargo.toml +++ b/sdks/rust/tests/test-client/Cargo.toml @@ -50,5 +50,8 @@ 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] +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..b3c7b182a66 100644 --- a/sdks/rust/tests/view-client/Cargo.toml +++ b/sdks/rust/tests/view-client/Cargo.toml @@ -45,5 +45,8 @@ 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] +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..5b9b9e2cce6 100644 --- a/sdks/rust/tests/view-pk-client/Cargo.toml +++ b/sdks/rust/tests/view-pk-client/Cargo.toml @@ -42,5 +42,8 @@ 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] +ignored = ["futures", "wasm-bindgen-futures"] + [lints] workspace = true diff --git a/templates/chat-console-rs/Cargo.toml b/templates/chat-console-rs/Cargo.toml index af92400907a..7988f26960a 100644 --- a/templates/chat-console-rs/Cargo.toml +++ b/templates/chat-console-rs/Cargo.toml @@ -6,5 +6,8 @@ edition = "2024" [workspace] exclude = ["spacetimedb"] +[workspace.dependencies] +log = "0.4" + [dependencies] spacetimedb-sdk = { path = "../../sdks/rust" } 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" From 2b0e8612f29a220992e3bc2e102c021fef71e255 Mon Sep 17 00:00:00 2001 From: clockwork-labs-bot Date: Sun, 9 Aug 2026 14:52:55 -0400 Subject: [PATCH 4/8] Address dep-check review --- .github/workflows/ci.yml | 37 ++++++++++++++++--- Cargo.lock | 4 -- crates/bench/Cargo.toml | 4 -- crates/bindings/Cargo.toml | 1 + crates/client-api/Cargo.toml | 4 -- crates/lib/Cargo.toml | 1 + crates/sqltest/Cargo.toml | 4 -- crates/standalone/Cargo.toml | 1 + crates/testing/Cargo.toml | 4 -- sdks/rust/Cargo.toml | 1 + .../connect_disconnect_client/Cargo.toml | 3 +- sdks/rust/tests/event-table-client/Cargo.toml | 1 + .../procedural-view-pk-client/Cargo.toml | 1 + sdks/rust/tests/procedure-client/Cargo.toml | 1 + .../procedure-concurrency-client/Cargo.toml | 1 + sdks/rust/tests/test-client/Cargo.toml | 1 + sdks/rust/tests/view-client/Cargo.toml | 1 + sdks/rust/tests/view-pk-client/Cargo.toml | 1 + 18 files changed, 44 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57aacf41188..7a49190d77f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -445,12 +445,6 @@ jobs: - name: Run ci lint run: cargo ci lint - - name: Install cargo-machete - run: cargo install cargo-machete --locked - - - name: Run dependency check - run: cargo ci dep-check - - name: Upload public lint Cargo timing reports if: always() uses: actions/upload-artifact@v4 @@ -459,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 6a080cdff18..64ae2828a25 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7830,7 +7830,6 @@ dependencies = [ "serial_test", "smallvec", "spacetimedb-client-api-messages", - "spacetimedb-core", "spacetimedb-data-structures", "spacetimedb-datastore", "spacetimedb-execution", @@ -7972,7 +7971,6 @@ dependencies = [ "serde_json", "serde_with", "spacetimedb-client-api-messages", - "spacetimedb-core", "spacetimedb-data-structures", "spacetimedb-jsonwebtoken", "spacetimedb-lib", @@ -8817,7 +8815,6 @@ dependencies = [ "spacetimedb-cli", "spacetimedb-client-api", "spacetimedb-client-api-messages", - "spacetimedb-core", "spacetimedb-data-structures", "spacetimedb-guard", "spacetimedb-lib", @@ -8911,7 +8908,6 @@ dependencies = [ "quick-junit", "rusqlite", "rust_decimal", - "spacetimedb-core", "spacetimedb-lib", "spacetimedb-sats", "sqllogictest", diff --git a/crates/bench/Cargo.toml b/crates/bench/Cargo.toml index 7777edd22d3..3d0a3cc0797 100644 --- a/crates/bench/Cargo.toml +++ b/crates/bench/Cargo.toml @@ -38,7 +38,6 @@ bench = false [dependencies] 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" } @@ -90,8 +89,5 @@ iai-callgrind = { git = "https://github.com/clockworklabs/iai-callgrind.git", br iai-callgrind-runner = { git = "https://github.com/clockworklabs/iai-callgrind.git", branch = "main" } iai-callgrind-macros = { git = "https://github.com/clockworklabs/iai-callgrind.git", branch = "main" } -[package.metadata.cargo-machete] -ignored = ["spacetimedb-core"] - [lints] workspace = true diff --git a/crates/bindings/Cargo.toml b/crates/bindings/Cargo.toml index d32109b96ac..d241d8959be 100644 --- a/crates/bindings/Cargo.toml +++ b/crates/bindings/Cargo.toml @@ -44,6 +44,7 @@ insta.workspace = true trybuild.workspace = true [package.metadata.cargo-machete] +# See the `getrandom02` dependency comment above. ignored = ["getrandom02"] [lints] diff --git a/crates/client-api/Cargo.toml b/crates/client-api/Cargo.toml index da9b34609ae..923aa4ea87f 100644 --- a/crates/client-api/Cargo.toml +++ b/crates/client-api/Cargo.toml @@ -8,7 +8,6 @@ rust-version.workspace = true [dependencies] spacetimedb-client-api-messages.workspace = true -spacetimedb-core.workspace = true spacetimedb-data-structures.workspace = true spacetimedb-lib = { workspace = true, features = ["serde"] } spacetimedb-paths.workspace = true @@ -61,9 +60,6 @@ proptest.workspace = true tokio = { workspace = true, features = ["full", "test-util"] } toml.workspace = true -[package.metadata.cargo-machete] -ignored = ["spacetimedb-core"] - [lints] workspace = true diff --git a/crates/lib/Cargo.toml b/crates/lib/Cargo.toml index ff1c4ee9656..06dbd88c97c 100644 --- a/crates/lib/Cargo.toml +++ b/crates/lib/Cargo.toml @@ -59,6 +59,7 @@ 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] diff --git a/crates/sqltest/Cargo.toml b/crates/sqltest/Cargo.toml index 2cc68893075..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 spacetimedb-sats.workspace = true anyhow.workspace = true @@ -29,8 +28,5 @@ tempfile.workspace = true tokio.workspace = true tokio-postgres.workspace = true -[package.metadata.cargo-machete] -ignored = ["spacetimedb-core"] - [lints] workspace = true diff --git a/crates/standalone/Cargo.toml b/crates/standalone/Cargo.toml index e9186bb18c3..c3904619d91 100644 --- a/crates/standalone/Cargo.toml +++ b/crates/standalone/Cargo.toml @@ -61,6 +61,7 @@ once_cell.workspace = true tempfile.workspace = true [package.metadata.cargo-machete] +# Used through feature forwarding for standalone-only core features. ignored = ["spacetimedb-core"] [lints] diff --git a/crates/testing/Cargo.toml b/crates/testing/Cargo.toml index 1e82be444b0..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 @@ -37,8 +36,5 @@ futures.workspace = true [dev-dependencies] serial_test.workspace = true -[package.metadata.cargo-machete] -ignored = ["spacetimedb-core"] - [lints] workspace = true diff --git a/sdks/rust/Cargo.toml b/sdks/rust/Cargo.toml index 396b15cbea8..7523aea66b9 100644 --- a/sdks/rust/Cargo.toml +++ b/sdks/rust/Cargo.toml @@ -75,6 +75,7 @@ shlex = "1.3.0" spacetimedb-testing = { path = "../../crates/testing" } [package.metadata.cargo-machete] +# Used through the `wasm` feature's `dep:getrandom` entry. ignored = ["getrandom"] [lints] diff --git a/sdks/rust/tests/connect_disconnect_client/Cargo.toml b/sdks/rust/tests/connect_disconnect_client/Cargo.toml index 5f7e7eda720..946a0b16dbf 100644 --- a/sdks/rust/tests/connect_disconnect_client/Cargo.toml +++ b/sdks/rust/tests/connect_disconnect_client/Cargo.toml @@ -34,8 +34,8 @@ required-features = ["native"] spacetimedb-sdk = { path = "../.." } test-counter = { path = "../test-counter" } anyhow.workspace = true -tokio = { workspace = true, optional = true } futures = { workspace = true, optional = true } +tokio = { workspace = true, optional = true } gloo-timers = { version = "0.3.0", features = ["futures"], optional = true } wasm-bindgen = { version = "0.2.100", optional = true } @@ -43,6 +43,7 @@ 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 `wasm` feature's `dep:` entries. ignored = ["futures", "wasm-bindgen-futures"] [lints] diff --git a/sdks/rust/tests/event-table-client/Cargo.toml b/sdks/rust/tests/event-table-client/Cargo.toml index 86d85c0abb9..0f34cc1b79f 100644 --- a/sdks/rust/tests/event-table-client/Cargo.toml +++ b/sdks/rust/tests/event-table-client/Cargo.toml @@ -42,6 +42,7 @@ 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 `wasm` feature's `dep:` entries. ignored = ["futures", "wasm-bindgen-futures"] [lints] diff --git a/sdks/rust/tests/procedural-view-pk-client/Cargo.toml b/sdks/rust/tests/procedural-view-pk-client/Cargo.toml index 1b9d2507c39..47bf0a1d896 100644 --- a/sdks/rust/tests/procedural-view-pk-client/Cargo.toml +++ b/sdks/rust/tests/procedural-view-pk-client/Cargo.toml @@ -39,6 +39,7 @@ 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 `wasm` feature's `dep:` entry. ignored = ["wasm-bindgen-futures"] [lints] diff --git a/sdks/rust/tests/procedure-client/Cargo.toml b/sdks/rust/tests/procedure-client/Cargo.toml index e88384e9884..6c32936d454 100644 --- a/sdks/rust/tests/procedure-client/Cargo.toml +++ b/sdks/rust/tests/procedure-client/Cargo.toml @@ -47,6 +47,7 @@ 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 `wasm` feature's `dep:` entries. ignored = ["futures", "wasm-bindgen-futures"] [lints] diff --git a/sdks/rust/tests/procedure-concurrency-client/Cargo.toml b/sdks/rust/tests/procedure-concurrency-client/Cargo.toml index 8dadef8aa01..8f7f066a403 100644 --- a/sdks/rust/tests/procedure-concurrency-client/Cargo.toml +++ b/sdks/rust/tests/procedure-concurrency-client/Cargo.toml @@ -41,6 +41,7 @@ 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 `wasm` feature's `dep:` entries. ignored = ["futures", "wasm-bindgen-futures"] [lints] diff --git a/sdks/rust/tests/test-client/Cargo.toml b/sdks/rust/tests/test-client/Cargo.toml index 25ecb5e7615..9f837e13884 100644 --- a/sdks/rust/tests/test-client/Cargo.toml +++ b/sdks/rust/tests/test-client/Cargo.toml @@ -51,6 +51,7 @@ 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 `wasm` feature's `dep:` entries. ignored = ["futures", "gloo-timers", "wasm-bindgen-futures"] [lints] diff --git a/sdks/rust/tests/view-client/Cargo.toml b/sdks/rust/tests/view-client/Cargo.toml index b3c7b182a66..f991019f791 100644 --- a/sdks/rust/tests/view-client/Cargo.toml +++ b/sdks/rust/tests/view-client/Cargo.toml @@ -46,6 +46,7 @@ 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 `wasm` feature's `dep:` entries. ignored = ["futures", "wasm-bindgen-futures"] [lints] diff --git a/sdks/rust/tests/view-pk-client/Cargo.toml b/sdks/rust/tests/view-pk-client/Cargo.toml index 5b9b9e2cce6..dfdb83325ef 100644 --- a/sdks/rust/tests/view-pk-client/Cargo.toml +++ b/sdks/rust/tests/view-pk-client/Cargo.toml @@ -43,6 +43,7 @@ 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 `wasm` feature's `dep:` entries. ignored = ["futures", "wasm-bindgen-futures"] [lints] From 03cb678edff77a852929018041d731a05361d014 Mon Sep 17 00:00:00 2001 From: clockwork-labs-bot Date: Sun, 9 Aug 2026 15:07:53 -0400 Subject: [PATCH 5/8] Clarify dep-check ignore comments --- sdks/rust/tests/procedure-client/Cargo.toml | 2 +- templates/chat-console-rs/Cargo.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sdks/rust/tests/procedure-client/Cargo.toml b/sdks/rust/tests/procedure-client/Cargo.toml index 6c32936d454..f7d41cb4b0a 100644 --- a/sdks/rust/tests/procedure-client/Cargo.toml +++ b/sdks/rust/tests/procedure-client/Cargo.toml @@ -47,7 +47,7 @@ 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 `wasm` feature's `dep:` entries. +# Used through the `browser` feature's `dep:` entries. ignored = ["futures", "wasm-bindgen-futures"] [lints] diff --git a/templates/chat-console-rs/Cargo.toml b/templates/chat-console-rs/Cargo.toml index 7988f26960a..2f1479eda88 100644 --- a/templates/chat-console-rs/Cargo.toml +++ b/templates/chat-console-rs/Cargo.toml @@ -7,6 +7,7 @@ edition = "2024" exclude = ["spacetimedb"] [workspace.dependencies] +# Required by the nested `spacetimedb` package's `log.workspace = true`. log = "0.4" [dependencies] From c1b498cd8d44679d05780f158f27c6445533f58d Mon Sep 17 00:00:00 2001 From: clockwork-labs-bot Date: Sun, 9 Aug 2026 15:11:53 -0400 Subject: [PATCH 6/8] Fix browser feature dep-check comments --- sdks/rust/tests/connect_disconnect_client/Cargo.toml | 2 +- sdks/rust/tests/event-table-client/Cargo.toml | 2 +- sdks/rust/tests/procedural-view-pk-client/Cargo.toml | 2 +- sdks/rust/tests/procedure-concurrency-client/Cargo.toml | 2 +- sdks/rust/tests/test-client/Cargo.toml | 2 +- sdks/rust/tests/view-client/Cargo.toml | 2 +- sdks/rust/tests/view-pk-client/Cargo.toml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sdks/rust/tests/connect_disconnect_client/Cargo.toml b/sdks/rust/tests/connect_disconnect_client/Cargo.toml index 946a0b16dbf..26a25e0d3a3 100644 --- a/sdks/rust/tests/connect_disconnect_client/Cargo.toml +++ b/sdks/rust/tests/connect_disconnect_client/Cargo.toml @@ -43,7 +43,7 @@ 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 `wasm` feature's `dep:` entries. +# Used through the `browser` feature's `dep:` entries. ignored = ["futures", "wasm-bindgen-futures"] [lints] diff --git a/sdks/rust/tests/event-table-client/Cargo.toml b/sdks/rust/tests/event-table-client/Cargo.toml index 0f34cc1b79f..86545ca44fd 100644 --- a/sdks/rust/tests/event-table-client/Cargo.toml +++ b/sdks/rust/tests/event-table-client/Cargo.toml @@ -42,7 +42,7 @@ 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 `wasm` feature's `dep:` entries. +# Used through the `browser` feature's `dep:` entries. ignored = ["futures", "wasm-bindgen-futures"] [lints] diff --git a/sdks/rust/tests/procedural-view-pk-client/Cargo.toml b/sdks/rust/tests/procedural-view-pk-client/Cargo.toml index 47bf0a1d896..fb86336c40f 100644 --- a/sdks/rust/tests/procedural-view-pk-client/Cargo.toml +++ b/sdks/rust/tests/procedural-view-pk-client/Cargo.toml @@ -39,7 +39,7 @@ 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 `wasm` feature's `dep:` entry. +# Used through the `browser` feature's `dep:` entry. ignored = ["wasm-bindgen-futures"] [lints] diff --git a/sdks/rust/tests/procedure-concurrency-client/Cargo.toml b/sdks/rust/tests/procedure-concurrency-client/Cargo.toml index 8f7f066a403..78a2fe9fe45 100644 --- a/sdks/rust/tests/procedure-concurrency-client/Cargo.toml +++ b/sdks/rust/tests/procedure-concurrency-client/Cargo.toml @@ -41,7 +41,7 @@ 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 `wasm` feature's `dep:` entries. +# Used through the `browser` feature's `dep:` entries. ignored = ["futures", "wasm-bindgen-futures"] [lints] diff --git a/sdks/rust/tests/test-client/Cargo.toml b/sdks/rust/tests/test-client/Cargo.toml index 9f837e13884..c40c83d3c86 100644 --- a/sdks/rust/tests/test-client/Cargo.toml +++ b/sdks/rust/tests/test-client/Cargo.toml @@ -51,7 +51,7 @@ 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 `wasm` feature's `dep:` entries. +# Used through the `browser` feature's `dep:` entries. ignored = ["futures", "gloo-timers", "wasm-bindgen-futures"] [lints] diff --git a/sdks/rust/tests/view-client/Cargo.toml b/sdks/rust/tests/view-client/Cargo.toml index f991019f791..be29ed953f1 100644 --- a/sdks/rust/tests/view-client/Cargo.toml +++ b/sdks/rust/tests/view-client/Cargo.toml @@ -46,7 +46,7 @@ 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 `wasm` feature's `dep:` entries. +# Used through the `browser` feature's `dep:` entries. ignored = ["futures", "wasm-bindgen-futures"] [lints] diff --git a/sdks/rust/tests/view-pk-client/Cargo.toml b/sdks/rust/tests/view-pk-client/Cargo.toml index dfdb83325ef..30d0ff4b1b4 100644 --- a/sdks/rust/tests/view-pk-client/Cargo.toml +++ b/sdks/rust/tests/view-pk-client/Cargo.toml @@ -43,7 +43,7 @@ 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 `wasm` feature's `dep:` entries. +# Used through the `browser` feature's `dep:` entries. ignored = ["futures", "wasm-bindgen-futures"] [lints] From b91ddc9d00b2d926705facc9d6fa634ce7e85710 Mon Sep 17 00:00:00 2001 From: Zeke Foppa Date: Sun, 9 Aug 2026 12:31:48 -0700 Subject: [PATCH 7/8] [bot/cargo-ci-dep-check]: replace log dep --- templates/chat-console-rs/spacetimedb/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From bdde8d90f008e7d279606454396ca6295ee8866d Mon Sep 17 00:00:00 2001 From: Zeke Foppa Date: Sun, 9 Aug 2026 12:35:12 -0700 Subject: [PATCH 8/8] [bot/cargo-ci-dep-check]: remove --- templates/chat-console-rs/Cargo.toml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/templates/chat-console-rs/Cargo.toml b/templates/chat-console-rs/Cargo.toml index 2f1479eda88..af92400907a 100644 --- a/templates/chat-console-rs/Cargo.toml +++ b/templates/chat-console-rs/Cargo.toml @@ -6,9 +6,5 @@ edition = "2024" [workspace] exclude = ["spacetimedb"] -[workspace.dependencies] -# Required by the nested `spacetimedb` package's `log.workspace = true`. -log = "0.4" - [dependencies] spacetimedb-sdk = { path = "../../sdks/rust" }