[package]
name = "cosmos-ephemeris"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description = "Astronomical ephemeris calculations"
keywords = ["astronomy", "ephemeris", "planets", "vsop", "celestial"]
categories = ["science"]
exclude = ["tests/data/de432s.bsp"]

[features]
serde = ["dep:serde", "cosmos-time/serde", "cosmos-core/serde", "cosmos-coords/serde"]
cli = ["dep:clap", "dep:reqwest", "dep:chrono"]

[dependencies]
cosmos-coords.workspace = true
cosmos-core.workspace = true
cosmos-time.workspace = true
libm.workspace = true
chrono = { workspace = true, optional = true }
clap = { workspace = true, optional = true }
memmap2.workspace = true
reqwest = { workspace = true, optional = true, features = ["blocking"] }
serde = { workspace = true, optional = true }

[[bin]]
name = "vsop2013-gen"
path = "src/bin/vsop2013_gen/main.rs"
required-features = ["cli"]

[[bin]]
name = "elpmpp02-gen"
path = "src/bin/elpmpp02_gen/main.rs"
required-features = ["cli"]

[dev-dependencies]
serde.workspace = true
serde_json.workspace = true
tempfile.workspace = true
tokio.workspace = true
wiremock.workspace = true


