mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-31 13:54:27 +01:00
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:
@@ -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"]
|
||||
@@ -1,2 +0,0 @@
|
||||
[build]
|
||||
rustflags = ["--cfg", "tokio_unstable"]
|
||||
Reference in New Issue
Block a user