Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bindings/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ pure-rust-crypto = ["turso_sdk_kit/pure-rust-crypto", "turso_sync_sdk_kit/pure-r
fts = ["turso_sdk_kit/fts"]
stacker = ["turso_core/stacker"]
test_helper = ["turso_core/test_helper"]
# Test-only: exposes the `memory_yield` VFS for stress/simulator harnesses.
io_memory_yield = ["turso_core/io_memory_yield"]
sync = [
"dep:hyper",
"dep:tokio",
Expand Down
4 changes: 3 additions & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ experimental_win_iocp = []
time = []
fuzz = []
omit_autovacuum = []
simulator = ["fuzz", "serde"]
simulator = ["fuzz", "serde", "io_memory_yield"]
# Test only: exposed to testing/stress and the simulator, never to regular library users.
io_memory_yield = []
serde = ["dep:serde"]
series = []
encryption = []
Expand Down
2 changes: 2 additions & 0 deletions core/ext/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ impl Database {

let io: Arc<dyn IO> = match vfs {
"memory" => Arc::new(MemoryIO::new()),
#[cfg(feature = "io_memory_yield")]
"memory_yield" => Arc::new(crate::MemoryYieldIO::new()),
"syscall" => Arc::new(SyscallIO::new()?),
#[cfg(all(target_os = "linux", feature = "io_uring", not(miri)))]
"io_uring" => Arc::new(UringIO::new()?),
Expand Down
Loading
Loading