From 2b5dbba2dfc97ce79593aa951468145cc64a4f33 Mon Sep 17 00:00:00 2001 From: Nikita Sivukhin Date: Wed, 30 Jul 2025 14:13:04 +0400 Subject: [PATCH] set tokio_unstable cfg at workspace root - cargo commands invoked from workspace root do not capture custom configuration of RUSTFLAGS from workspace members - see relevant issue https://github.com/rust-lang/cargo/issues/7004 --- .cargo/config.toml | 6 ++++++ packages/turso-sync/.cargo/config.toml | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) delete mode 100644 packages/turso-sync/.cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml index 2586c8988..9af43e9ac 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,8 @@ [env] LIBSQLITE3_FLAGS = "-DSQLITE_ENABLE_MATH_FUNCTIONS" # necessary for rusqlite dependency in order to bundle SQLite with math functions included + +[build] +# turso-sync package uses tokio_unstable to seed LocalRuntime and make it deterministic +# unfortunately, cargo commands invoked from workspace root didn't capture config.toml from dependent crate +# so, we set this cfg globally for workspace (see relevant issue build build-target: https://github.com/rust-lang/cargo/issues/7004) +rustflags = ["--cfg=tokio_unstable"] \ No newline at end of file diff --git a/packages/turso-sync/.cargo/config.toml b/packages/turso-sync/.cargo/config.toml deleted file mode 100644 index 16f1e73ac..000000000 --- a/packages/turso-sync/.cargo/config.toml +++ /dev/null @@ -1,2 +0,0 @@ -[build] -rustflags = ["--cfg", "tokio_unstable"] \ No newline at end of file