[package]
edition = "2024"
rust-version = "1.85"
name = "stateset-core"
version = "0.7.15"
authors = ["StateSet <support@stateset.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core domain models and business logic for StateSet iCommerce"
readme = "README.md"
keywords = [
"commerce",
"ecommerce",
"orders",
"inventory",
"domain-model",
]
categories = ["data-structures"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/stateset/stateset-icommerce"
resolver = "2"
[features]
default = []
embeddings = ["dep:reqwest"]
metrics = [
"dep:once_cell",
"dep:prometheus",
]
sqlx-postgres = ["stateset-primitives/sqlx-postgres"]
test-utils = []
[lib]
name = "stateset_core"
path = "src/lib.rs"
[[test]]
name = "proptest_models"
path = "tests/proptest_models.rs"
[[test]]
name = "snapshot_serialization"
path = "tests/snapshot_serialization.rs"
[[bench]]
name = "core_benchmarks"
path = "benches/core_benchmarks.rs"
harness = false
[dependencies.async-trait]
version = "0.1"
[dependencies.auto_impl]
version = "1"
[dependencies.base64]
version = "0.22"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.ed25519-dalek]
version = "2"
features = ["rand_core"]
[dependencies.hex]
version = "0.4"
[dependencies.once_cell]
version = "1.19"
optional = true
[dependencies.prometheus]
version = "0.14"
optional = true
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"blocking",
"rustls-tls",
]
optional = true
default-features = false
[dependencies.rs_merkle]
version = "1"
[dependencies.rust_decimal]
version = "1.36"
features = ["serde"]
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_jcs]
version = "0.1"
[dependencies.serde_json]
version = "1.0"
[dependencies.sha2]
version = "0.10"
[dependencies.stateset-primitives]
version = "0.7.15"
[dependencies.strum]
version = "0.26"
features = ["derive"]
[dependencies.thiserror]
version = "1.0"
[dependencies.uuid]
version = "1.4"
features = [
"v4",
"serde",
]
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.insta]
version = "1.34"
features = ["json"]
[dev-dependencies.proptest]
version = "1.4"
[dev-dependencies.rust_decimal_macros]
version = "1.36"
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"sync",
]
[lints.clippy]
borrow_as_ptr = "warn"
cloned_instead_of_copied = "warn"
dbg_macro = "warn"
derive_partial_eq_without_eq = "warn"
doc_markdown = "warn"
explicit_iter_loop = "warn"
flat_map_option = "warn"
implicit_clone = "warn"
manual_string_new = "warn"
missing_const_for_fn = "warn"
needless_pass_by_ref_mut = "warn"
redundant_clone = "warn"
result_large_err = "allow"
use_self = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
unreachable_pub = "warn"
unused_must_use = "deny"
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[lints.rustdoc]
all = "warn"