Files
nrlmsise00/Cargo.toml
T

44 lines
1.5 KiB
TOML

[package]
name = "nrlmsise00"
version = "0.1.0"
edition = "2021"
authors = ["Connor Johnstone"]
description = "NRLMSISE-00 atmosphere model, generic over its scalar type so density can be differentiated"
readme = "readme.md"
repository = "https://git.rcjohnstone.com/connor/nrlmsise00"
license = "MIT"
keywords = ["atmosphere", "density", "nrlmsise00", "aerospace", "thermosphere"]
categories = ["science", "aerospace"]
# The NRLMSIS 2.x port is a separate package under a separate, non-commercial
# license. It is not part of this one.
exclude = ["nrlmsis2", "scripts", "hooks", "plan.md"]
[workspace]
members = ["nrlmsis2"]
[features]
default = ["autodiff", "drivers"]
# Dual-number scalars, so density can be differentiated.
autodiff = ["dep:num-dual", "dep:nalgebra"]
# The compiled-in solar and geomagnetic record, and date lookups into it.
drivers = []
[dependencies]
nalgebra = { version = "0.35", optional = true }
num-dual = { version = "0.15", optional = true }
num-traits = { version = "0.2", default-features = false }
[dev-dependencies]
approx = "0.5"
criterion = "0.7"
num-dual = "0.15"
# arbitrary_precision keeps each number's own digits, so a fixture value is parsed by
# str::parse rather than by serde_json's own float parser, which reads some f64s back one
# ulp high. The fixtures are compared bit for bit, so that one ulp is the difference
# between a passing and a failing test.
serde_json = { version = "1.0", features = ["arbitrary_precision"] }
[[bench]]
name = "density"
harness = false