# 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"
name = "lattices"
version = "0.7.0"
build = "build.rs"
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lattice data types for simplifying distributed state by providing associativity, commutativity, and idempotence."
documentation = "https://docs.rs/lattices/"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/hydro-project/hydro"
resolver = "2"

[package.metadata.docs.rs]
all-features = true

[features]
default = []
serde = ["dep:serde"]

[lib]
name = "lattices"
path = "src/lib.rs"

[[test]]
name = "compile_fail"
path = "tests/compile_fail.rs"

[[test]]
name = "macro"
path = "tests/macro.rs"

[dependencies.cc-traits]
version = "2.0.0"

[dependencies.fst]
version = "0.4"

[dependencies.hydro_build_utils]
version = "^0.1.0"
optional = true

[dependencies.lattices_macro]
version = "^0.6.0"

[dependencies.roaring]
version = "0.10"

[dependencies.sealed]
version = "0.6.0"

[dependencies.serde]
version = "1.0.197"
features = ["derive"]
optional = true

[dependencies.variadics]
version = "^0.1.0"

[dependencies.variadics_macro]
version = "^0.7.0"

[dev-dependencies.trybuild]
version = "1.0.0"

[build-dependencies.hydro_build_utils]
version = "^0.1.0"

[lints.clippy]
alloc_instead_of_core = "warn"
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
explicit_into_iter_loop = "warn"
let_and_return = "allow"
manual_is_variant_and = "warn"
manual_let_else = "warn"
redundant_clone = "warn"
self_named_module_files = "warn"
str_to_string = "warn"
try_err = "warn"
uninlined_format_args = "allow"
unused_async = "warn"

[lints.rust]
impl_trait_overcaptures = "warn"
missing_unsafe_on_extern = "deny"
unsafe_attr_outside_unsafe = "deny"
unused_qualifications = "warn"
