expiration_date 0.2.1

A professional financial instrument expiration date management library with support for standard day count conventions.
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"
rust-version = "1.96"
name = "expiration_date"
version = "0.2.1"
authors = ["Joaquin Bejar <jb@taunais.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A professional financial instrument expiration date management library with support for standard day count conventions."
homepage = "https://github.com/joaquinbejar/ExpirationDate"
readme = "README.md"
keywords = [
    "finance",
    "options",
    "expiration",
    "date",
    "hft",
]
categories = [
    "finance",
    "date-and-time",
]
license = "MIT"
repository = "https://github.com/joaquinbejar/ExpirationDate"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

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

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

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

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

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

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

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

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

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

[[bench]]
name = "conversion"
path = "benches/conversion.rs"
harness = false

[[bench]]
name = "parser"
path = "benches/parser.rs"
harness = false

[[bench]]
name = "serde"
path = "benches/serde.rs"
harness = false

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.positive]
version = "0.5"
features = ["utoipa"]

[dependencies.rust_decimal]
version = "1.42"
features = [
    "maths",
    "serde",
]

[dependencies.rust_decimal_macros]
version = "1.40"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tracing]
version = "0.1"

[dependencies.utoipa]
version = "5.5"
features = [
    "chrono",
    "decimal",
]
optional = true

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

[dev-dependencies.proptest]
version = "1.11"

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

[lints.clippy]
clone_on_ref_ptr = "warn"
expect_used = "deny"
indexing_slicing = "warn"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
needless_collect = "warn"
panic = "deny"
unnecessary_to_owned = "warn"
unwrap_used = "deny"

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"

[profile.dev]
overflow-checks = true

[profile.release]
lto = "thin"
codegen-units = 1
overflow-checks = true