# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.88"
name = "tsoracle-core"
version = "2.1.0"
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]
default = ["std"]
serde = ["dep:serde"]
std = []

[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"

[dev-dependencies.serde_json]
version = "1"
