[package]
edition = "2024"
rust-version = "1.88"
name = "tsoracle-core"
version = "0.2.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sync algorithm core for tsoracle: window allocator, 46/18-bit timestamp packing, monotonicity invariants, and the shared cluster peer type."
homepage = "https://github.com/prisma-risk/tsoracle"
documentation = "https://docs.rs/tsoracle-core"
readme = "README.md"
keywords = [
"timestamp",
"oracle",
"tso",
"hlc",
"algorithm",
]
categories = [
"algorithms",
"date-and-time",
"concurrency",
]
license = "Apache-2.0"
repository = "https://github.com/prisma-risk/tsoracle"
resolver = "2"
[package.metadata.docs.rs]
features = [
"std",
"serde",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
bt = ["std"]
default = ["std"]
serde = ["dep:serde"]
std = []
test-clock = []
[lib]
name = "tsoracle_core"
path = "src/lib.rs"
[[test]]
name = "monotonicity"
path = "tests/monotonicity.rs"
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.thiserror]
version = "2"
[dev-dependencies.husky-rs]
version = "0.3"
[dev-dependencies.proptest]
version = "1"