positive 0.4.0

A type-safe wrapper for guaranteed positive decimal values
Documentation
# 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 = "positive"
version = "0.4.0"
authors = ["Joaquín Béjar García <jb@taunais.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A type-safe wrapper for guaranteed positive decimal values"
readme = "README.md"
keywords = [
    "decimal",
    "positive",
    "numeric",
    "financial",
    "type-safe",
]
categories = [
    "mathematics",
    "finance",
    "data-structures",
]
license = "MIT"
repository = "https://github.com/joaquinbejar/positive"

[features]
default = []
non-zero = []
utoipa = ["dep:utoipa"]

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

[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"

[[example]]
name = "constants"
path = "examples/constants.rs"

[[example]]
name = "error_handling"
path = "examples/error_handling.rs"

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

[dependencies.approx]
version = "0.5"

[dependencies.num-traits]
version = "0.2"

[dependencies.rust_decimal]
version = "1.40"
features = ["maths"]

[dependencies.rust_decimal_macros]
version = "1.40"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.thiserror]
version = "2.0"

[dependencies.utoipa]
version = "5.4"
features = ["decimal"]
optional = true

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