[dependencies.chrono]
default-features = false
features = ["clock"]
version = "0.4"
[dependencies.libm]
optional = true
version = "0.2"
[dependencies.serde]
features = ["derive"]
optional = true
version = "1.0"
[dependencies.thiserror]
default-features = false
version = "2.0"
[dev-dependencies.approx]
version = "0.5"
[dev-dependencies.chrono]
features = ["serde"]
version = "0.4"
[dev-dependencies.chrono-tz]
version = "0.9"
[dev-dependencies.criterion]
features = ["html_reports"]
version = "0.5"
[dev-dependencies.csv]
version = "1.3"
[dev-dependencies.proptest]
version = "1.4"
[dev-dependencies.serde]
features = ["derive"]
version = "1.0"
[dev-dependencies.serde_json]
version = "1.0"
[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"
[[example]]
name = "grena3_comparison"
path = "examples/grena3_comparison.rs"
[[example]]
name = "sunrise_sunset"
path = "examples/sunrise_sunset.rs"
[features]
default = ["std"]
libm = ["dep:libm"]
serde = ["dep:serde"]
std = []
[lib]
name = "solar_positioning"
path = "src/lib.rs"
[package]
authors = ["Klaus Brunner <klaus.brunner@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["science", "algorithms", "mathematics"]
description = "High-accuracy solar positioning algorithms (SPA and Grena3) for calculating sun position and sunrise/sunset times"
documentation = "https://docs.rs/solar-positioning"
edition = "2024"
exclude = [".github/", "tests/data/", "benches/data/"]
homepage = "https://github.com/klausbrunner/solarpositioning-rs"
keywords = ["solar", "sun", "astronomy", "spa", "sunrise"]
license = "MIT"
name = "solar-positioning"
readme = "README.md"
repository = "https://github.com/klausbrunner/solarpositioning-rs"
rust-version = "1.85"
version = "0.2.2"
[profile.bench]
debug = 2
[profile.release]
codegen-units = 1
lto = true
opt-level = 3
overflow-checks = false
panic = "abort"
[[test]]
name = "csv_reference_validation"
path = "tests/csv_reference_validation.rs"
[[test]]
name = "java_comparison"
path = "tests/java_comparison.rs"
[[test]]
name = "spa_accuracy"
path = "tests/spa_accuracy.rs"
[[test]]
name = "spa_reference_validation"
path = "tests/spa_reference_validation.rs"
[[test]]
name = "sunrise_reference_validation"
path = "tests/sunrise_reference_validation.rs"
[[test]]
name = "usno_reference_validation"
path = "tests/usno_reference_validation.rs"