[package]
edition = "2024"
rust-version = "1.94"
name = "lix"
version = "0.18.0"
authors = ["Opral"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Embeddable version control for apps and AI agents."
homepage = "https://lix.dev"
documentation = "https://docs.rs/lix"
readme = "README.md"
keywords = [
"version-control",
"ai-agents",
"semantic-diff",
"change-tracking",
"embeddable",
]
categories = [
"development-tools",
"artificial-intelligence",
"filesystem",
]
license = "MIT"
repository = "https://github.com/opral/lix"
[features]
all-simulations = []
default = ["default_wasm_runtime"]
default_wasm_runtime = [
"dep:wasmtime",
"dep:wasmtime-wasi",
]
offline-migration = []
root-replay-trace = ["storage-benches"]
server-protocol = [
"dep:getrandom",
"dep:http-body",
"dep:serde_urlencoded",
"tokio/time",
]
server-protocol-client = ["tokio/sync"]
storage-benches = []
[lib]
name = "lix"
path = "src/lib.rs"
[[example]]
name = "checkpoints"
path = "examples/checkpoints.rs"
[[example]]
name = "plugin_minimal"
path = "examples/plugin_minimal.rs"
[[example]]
name = "profile_cascade"
path = "examples/profile_cascade.rs"
[[example]]
name = "profile_row_ref"
path = "examples/profile_row_ref.rs"
[[example]]
name = "profile_row_ref_cascade"
path = "examples/profile_row_ref_cascade.rs"
[[example]]
name = "validate_plugin_archive"
path = "examples/validate_plugin_archive.rs"
[[test]]
name = "limited_scan_reads"
path = "tests/limited_scan_reads.rs"
required-features = ["storage-benches"]
[[test]]
name = "delete_reference_scaling"
path = "tests/delete_reference_scaling.rs"
required-features = ["storage-benches"]
[[test]]
name = "collection_reference_guard"
path = "tests/collection_reference_guard.rs"
required-features = ["storage-benches"]
[[test]]
name = "hot_index_wide_equality"
path = "tests/hot_index_wide_equality.rs"
required-features = ["storage-benches"]
[[test]]
name = "preimage_route_census"
path = "tests/preimage_route_census.rs"
[[test]]
name = "execute_result_allocations"
path = "tests/execute_result_allocations.rs"
[[test]]
name = "third_party_storage_adapter"
path = "tests/third_party_storage_adapter.rs"
[[test]]
name = "runtime_contract"
path = "tests/runtime_contract.rs"
[[test]]
name = "deterministic_sequence_corruption"
path = "tests/deterministic_sequence_corruption.rs"
[[test]]
name = "send_futures"
path = "tests/send_futures.rs"
[[test]]
name = "plugin_arena_scorecard"
path = "tests/plugin_arena_scorecard.rs"
[[test]]
name = "hot_index_range_probe"
path = "tests/hot_index_range_probe.rs"
[[test]]
name = "migration_v68"
path = "tests/migration_v68.rs"
[[test]]
name = "migration_v72"
path = "tests/migration_v72.rs"
required-features = ["offline-migration"]
[[test]]
name = "migration_v72_filesystem"
path = "tests/migration_v72_filesystem.rs"
required-features = ["offline-migration"]
[[test]]
name = "migration_v75"
path = "tests/migration_v75.rs"
required-features = ["offline-migration"]
[[test]]
name = "snapshot_untracked"
path = "tests/snapshot_untracked.rs"
[[test]]
name = "plugin_api_compatibility"
path = "tests/plugin_api_compatibility.rs"
required-features = ["default_wasm_runtime"]
[[bench]]
name = "diff_commands"
path = "benches/diff_commands.rs"
harness = false
[[bench]]
name = "undo_redo"
path = "benches/undo_redo.rs"
harness = false
[[bench]]
name = "row_default_values"
path = "benches/row_default_values.rs"
harness = false
[[bench]]
name = "row_pk_layout"
path = "benches/row_pk_layout.rs"
harness = false
[[bench]]
name = "registered_row_returning"
path = "benches/registered_row_returning.rs"
harness = false
[[bench]]
name = "commit_graph_scale"
path = "benches/commit_graph_scale.rs"
harness = false
required-features = ["storage-benches"]
[[bench]]
name = "sql_value_handling"
path = "benches/sql_value_handling.rs"
harness = false
[dependencies.lix_schema]
version = "=0.18.0"
package = "lix-schema"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
features = [
"arbitrary_precision",
"raw_value",
]
[dev-dependencies.async-executor]
version = "1"
[dev-dependencies.criterion]
version = "4"
package = "codspeed-criterion-compat"
[dev-dependencies.flate2]
version = "1"
[dev-dependencies.http-body-util]
version = "0.1"
[dev-dependencies.opentelemetry_sdk]
version = "0.32"
features = [
"testing",
"trace",
]
default-features = false
[dev-dependencies.paste]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"macros",
"sync",
"time",
]
[dev-dependencies.tracing-subscriber]
version = "0.3"
[dev-dependencies.wasm-encoder]
version = "0.248"
[dev-dependencies.wit-parser]
version = "0.247"
[build-dependencies.wit-bindgen-rust]
version = "0.57"
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.wasm-bindgen-futures]
version = "0.4"
[target.'cfg(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2"))'.dependencies.uuid]
version = "1"
features = ["std"]
[target.'cfg(all(target_family = "wasm", not(all(target_os = "wasi", target_env = "p2"))))'.dependencies.ruzstd]
version = "0.8"
features = ["std"]
default-features = false
[target.'cfg(any(not(target_arch = "wasm32"), all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.wit-bindgen]
version = "0.57"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.ahash]
version = "0.8"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.async-stream]
version = "0.3"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.async-trait]
version = "0.1"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.base64]
version = "0.22"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.blake3]
version = "1"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.bytes]
version = "1"
features = ["serde"]
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.chrono]
version = "0.4"
features = [
"clock",
"std",
"wasmbind",
]
default-features = false
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.datafusion]
version = "55.1.0"
features = [
"sql",
"nested_expressions",
"datetime_expressions",
"regex_expressions",
"string_expressions",
"unicode_expressions",
]
default-features = false
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.fastcdc]
version = "3"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.flate2]
version = "1"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.futures-core]
version = "0.3"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.futures-io]
version = "0.3"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.futures-lite]
version = "2"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.futures-util]
version = "0.3"
features = ["std"]
default-features = false
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.getrandom]
version = "0.3"
optional = true
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.globset]
version = "0.4"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.http]
version = "1"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.http-body]
version = "1"
optional = true
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.jiff]
version = "0.2.27"
features = ["std"]
default-features = false
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.lru]
version = "0.18"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.lz4_flex]
version = "0.11"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.memchr]
version = "2"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.musli]
version = "0.0.149"
features = ["storage"]
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.opentelemetry]
version = "0.32"
features = ["trace"]
default-features = false
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.opentelemetry_sdk]
version = "0.32"
features = ["trace"]
default-features = false
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.parking_lot]
version = "0.12"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.paste]
version = "1"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.serde_urlencoded]
version = "0.7"
optional = true
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.sha2]
version = "0.10"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.smallvec]
version = "1.15"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.tokio]
version = "1"
features = [
"io-util",
"rt",
"sync",
]
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.tokio-util]
version = "0.7"
features = [
"compat",
"io",
]
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.tracing]
version = "0.1"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.tracing-opentelemetry]
version = "0.33"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.url]
version = "2"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.uuid]
version = "1"
features = [
"v5",
"v7",
"std",
"js",
"fast-rng",
]
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.wasmparser]
version = "0.247"
features = ["component-model"]
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.wasmtime]
version = "45"
features = [
"cache",
"component-model",
"cranelift",
"runtime",
"std",
]
optional = true
default-features = false
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.wasmtime-wasi]
version = "45"
features = ["p2"]
optional = true
default-features = false
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.web-time]
version = "1"
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.xxhash-rust]
version = "0.8"
features = ["xxh3"]
[target.'cfg(not(all(target_arch = "wasm32", target_os = "wasi", target_env = "p2")))'.dependencies.zip]
version = "8"
features = ["deflate-flate2-zlib-rs"]
default-features = false
[target.'cfg(not(target_family = "wasm"))'.dependencies.futures-timer]
version = "3"
[target.'cfg(not(target_family = "wasm"))'.dependencies.notify-debouncer-full]
version = "0.7.0"
features = ["macos_kqueue"]
default-features = false
[target.'cfg(not(target_family = "wasm"))'.dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
"stream",
]
default-features = false
[target.'cfg(not(target_family = "wasm"))'.dependencies.tokio]
version = "1"
features = [
"rt",
"sync",
"time",
]
[target.'cfg(not(target_family = "wasm"))'.dependencies.zstd]
version = "0.13"
[target.'cfg(target_family = "wasm")'.dependencies.js-sys]
version = "0.3"
[target.'cfg(target_family = "wasm")'.dependencies.wasm-bindgen]
version = "0.2"
[target.'cfg(target_family = "wasm")'.dependencies.wasm-bindgen-futures]
version = "0.4"
[lints.clippy]
cargo_common_metadata = "allow"
large_enum_variant = "allow"
multiple_crate_versions = "allow"
redundant_feature_names = "allow"
[lints.clippy.all]
level = "warn"
priority = -2
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.complexity]
level = "allow"
priority = -1
[lints.clippy.correctness]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "allow"
priority = -1
[lints.clippy.pedantic]
level = "allow"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.restriction]
level = "allow"
priority = -1
[lints.clippy.style]
level = "allow"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unconditional_recursion = "deny"
unused_import_braces = "warn"
unused_qualifications = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = []