[package]
edition = "2024"
rust-version = "1.85"
name = "stateset-http"
version = "0.7.13"
authors = ["StateSet <support@stateset.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP service layer (REST + SSE) for the StateSet commerce engine"
readme = "README.md"
keywords = [
"commerce",
"http",
"rest",
"axum",
"sse",
]
categories = ["web-programming::http-server"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/stateset/stateset-icommerce"
resolver = "2"
[lib]
name = "stateset_http"
path = "src/lib.rs"
[[test]]
name = "http_integration"
path = "tests/http_integration.rs"
[dependencies.axum]
version = "0.8"
features = [
"json",
"query",
]
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.http]
version = "1"
[dependencies.rust_decimal]
version = "1.36"
features = ["serde"]
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.stateset-core]
version = "0.7.13"
[dependencies.stateset-embedded]
version = "0.7.13"
[dependencies.stateset-primitives]
version = "0.7.13"
[dependencies.thiserror]
version = "1.0"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"sync",
]
[dependencies.tokio-stream]
version = "0.1"
features = ["time"]
[dependencies.tower-http]
version = "0.6"
features = [
"cors",
"trace",
"request-id",
"util",
]
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1.4"
features = [
"v4",
"serde",
]
[dev-dependencies.http-body-util]
version = "0.1"
[dev-dependencies.rust_decimal_macros]
version = "1.36"
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"macros",
"test-util",
]
[dev-dependencies.tower]
version = "0.5"
features = ["util"]
[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"