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