fasti 0.2.0

Dates, calendars, business-day conventions and day-count fractions for financial code. Native Rust, no_std, float-free; designed after QuantLib's ql/time.
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.90"
name = "fasti"
version = "0.2.0"
authors = ["fasti contributors"]
build = false
exclude = ["/bindings"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Dates, calendars, business-day conventions and day-count fractions for financial code. Native Rust, no_std, float-free; designed after QuantLib's ql/time."
readme = "README.md"
keywords = [
    "date",
    "calendar",
    "business-day",
    "day-count",
    "no-std",
]
categories = [
    "date-and-time",
    "finance",
    "no-std",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/hugof38/fasti"

[package.metadata.docs.rs]
all-features = true

[features]
chrono = ["dep:chrono"]
default = []
serde = ["dep:serde"]

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

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

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

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

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

[dependencies.chrono]
version = "0.4"
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = [
    "alloc",
    "derive",
]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

[dev-dependencies.divan]
version = "0.1.21"

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

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

[lints.clippy]
dbg_macro = "warn"
expect_used = "warn"
float_arithmetic = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "warn"
todo = "warn"
unimplemented = "warn"
unwrap_used = "warn"

[lints.clippy.pedantic]
level = "warn"
priority = -1

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

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1