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
This commit is contained in:
Nikita Sivukhin
2025-07-30 14:13:04 +04:00
parent b78ce17022
commit 2b5dbba2df
2 changed files with 6 additions and 2 deletions

View File

@@ -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"]

View File

@@ -1,2 +0,0 @@
[build]
rustflags = ["--cfg", "tokio_unstable"]