Files
SpacetimeDB/crates/runtime/Cargo.toml
Shubham Mishra 2fd8a87d3c Compilation guard && tokio::sync re-export from runtime crate. (#5255)
# Description of Changes

Runtime specific changes from
https://github.com/clockworklabs/SpacetimeDB/pull/5113.

- `spacetimedb-runtime` enforces exactly one feature at compile time:
`tokio` or `simulation`. It rejects both-enabled and neither-enabled
builds explicitly.

- This also keeps `tokio::sync` re-exported from runtime, look at code
comment for reasoning.

# API and ABI breaking changes

NA

# Expected complexity level and risk
1
2026-06-15 08:28:25 +00:00

25 lines
658 B
TOML

[package]
name = "spacetimedb-runtime"
version.workspace = true
edition.workspace = true
license-file = "LICENSE"
description = "Runtime and deterministic simulation utilities for SpacetimeDB"
rust-version.workspace = true
[lints]
workspace = true
[dependencies]
tokio.workspace = true
async-task = { version = "4.4", default-features = false, optional = true }
spin = { version = "0.9", default-features = false, features = ["mutex", "spin_mutex"], optional = true }
libc = { version = "0.2", optional = true }
[dev-dependencies]
futures.workspace = true
[features]
default = ["tokio"]
tokio = []
simulation = ["dep:async-task", "dep:spin", "dep:libc"]