duroxide 0.1.21

Durable code execution framework for Rust
Documentation
[package]
name = "duroxide"
version = "0.1.21"
edition = "2024"
description = "Durable code execution framework for Rust"
license = "MIT"
repository = "https://github.com/microsoft/duroxide"
homepage = "https://github.com/microsoft/duroxide"
documentation = "https://docs.rs/duroxide"
readme = "README.md"
keywords = ["durable", "workflow", "orchestration", "async", "tasks"]
categories = ["asynchronous", "concurrency"]

[features]
default = []
sqlite = ["sqlx", "libsqlite3-sys"]  # SQLite provider (bundled, no system deps)
provider-test = ["sqlite"]  # Enable all provider testing infrastructure (requires sqlite)
test = ["provider-test", "test-hooks"]  # Auto-enable provider-test and test-hooks for tests
test-hooks = []  # Enable test hooks for fault injection in integration tests
replay-version-test = ["test"]  # Zero-cost: only gates test code for replay engine extensibility verification

[dependencies]
tokio = { version = "1", features = ["full"] }
tokio-util = "0.7"  # For CancellationToken
futures = "0.3"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
async-trait = "0.1"
tracing = { version = "0.1", features = ["std"] }
tracing-subscriber = { version = "0.3", features = ["fmt", "env-filter", "json"] }
semver = "1"

# Metrics facade (always on, zero-cost if no recorder installed)
metrics = "0.24"

# SQLite support (optional, bundled)
sqlx = { version = "0.8", features = ["runtime-tokio-rustls", "sqlite", "macros", "migrate", "chrono"], optional = true }
libsqlite3-sys = { version = "0.28", features = ["bundled"], optional = true }

[dev-dependencies]
# Used in tests/examples
tempfile = "3"
proptest = "1.4"
# Metrics test utilities (DebuggingRecorder for snapshot assertions)
metrics-util = "0.19"
# Enable sqlite and test-hooks features for integration tests
duroxide = { path = ".", features = ["sqlite", "test-hooks"] }

[workspace]
members = [
    ".",
    "sqlite-stress",
]

# Clippy lints for better code quality
[lints.clippy]
# Correctness (warn for now, can upgrade to deny after fixing)
unwrap_used = "warn"
expect_used = "warn"

# Performance
clone_on_ref_ptr = "warn"
large_enum_variant = "warn"

# Style and maintainability
missing_errors_doc = "warn"