cratestack-sql 0.8.2

Rust-native schema-first framework for typed HTTP APIs, generated clients, and backend services.
Documentation
[package]
name = "cratestack-sql"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
authors.workspace = true
description.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
readme = "README.md"
keywords.workspace = true
categories.workspace = true

[lints]
workspace = true

[features]
# cratestack#505 Direction 2: these two are no longer mutually exclusive —
# both may be selected in the same build. `SqlValue::Decimal` holds a
# `Box<dyn DecimalLike>` (`src/values/decimal_like.rs`), not a concrete
# type, so nothing in this crate has to pick between the two backends;
# each feature independently pulls in its own concrete crate so
# `into_sql.rs`'s per-backend `impl IntoSqlValue for rust_decimal::Decimal`
# / `for bigdecimal::BigDecimal` have something to name.
default = ["decimal-rust-decimal"]
decimal-rust-decimal = [
    "cratestack-core/decimal-rust-decimal",
    "cratestack-policy/decimal-rust-decimal",
    "dep:rust_decimal",
]
decimal-bigdecimal = [
    "cratestack-core/decimal-bigdecimal",
    "cratestack-policy/decimal-bigdecimal",
    "dep:bigdecimal",
]

[dependencies]
chrono.workspace = true
cratestack-core.workspace = true
cratestack-policy.workspace = true
serde.workspace = true
serde_json.workspace = true
uuid.workspace = true
rust_decimal = { workspace = true, optional = true }
bigdecimal = { workspace = true, optional = true }