npdatetime 0.2.4

Astronomical calculator for Bikram Sambat calendar based on solar and lunar positions. High-performance Nepali (Bikram Sambat) datetime library with multi-language bindings
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 = "npdatetime"
version = "0.2.4"
authors = ["Amrit Giri <amritgiri.dev@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Astronomical calculator for Bikram Sambat calendar based on solar and lunar positions. High-performance Nepali (Bikram Sambat) datetime library with multi-language bindings"
readme = "README.md"
keywords = [
    "astronomy",
    "calendar",
    "bikram-sambat",
    "nepali",
    "datetime",
]
categories = [
    "date-and-time",
    "localization",
    "science",
]
license = "MIT"
repository = "https://github.com/4mritGiri/npdatetime"

[features]
astronomical = []
default = ["lookup-tables"]
lookup-tables = []
python = ["pyo3"]
serde = [
    "dep:serde",
    "dep:serde_json",
]
std = ["chrono"]
wasm = [
    "wasm-bindgen",
    "js-sys",
    "dep:serde",
    "dep:serde_json",
]

[lib]
name = "npdatetime"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

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

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

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

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

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

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

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

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

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

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

[dependencies.approx]
version = "0.5"

[dependencies.chrono]
version = "0.4"
optional = true

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.lazy_static]
version = "1.4"

[dependencies.libm]
version = "0.2"

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

[dependencies.pyo3]
version = "0.21.0"
features = ["extension-module"]
optional = true

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

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.thiserror]
version = "1.0"

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dev-dependencies.assert_approx_eq]
version = "1.1"

[dev-dependencies.criterion]
version = "0.5"

[build-dependencies.csv]
version = "1.3"

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

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true