[package]
edition = "2021"
name = "tempoch-core"
version = "0.7.0"
authors = ["VPRamon <vallespuigramon@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core astronomical time primitives for tempoch."
readme = false
keywords = [
"astronomy",
"time",
"julian-date",
"no-std",
]
categories = [
"science",
"date-and-time",
"no-std",
]
license = "AGPL-3.0-only"
repository = "https://github.com/Siderust/tempoch"
[features]
alloc = [
"affn/alloc",
"chrono/alloc",
]
default = ["std"]
runtime-data-fetch = [
"std",
"siderust-archive/fetch",
]
serde = [
"dep:serde",
"alloc",
"affn/serde",
]
std = [
"alloc",
"affn/std",
"chrono/clock",
"chrono/std",
"siderust-archive/std",
]
[lib]
name = "tempoch_core"
path = "src/lib.rs"
[[test]]
name = "proptests"
path = "tests/proptests.rs"
[dependencies.affn]
version = "0.10"
features = ["astro"]
default-features = false
[dependencies.chrono]
version = "0.4"
default-features = false
[dependencies.serde]
version = "1.0"
features = [
"derive",
"alloc",
]
optional = true
default-features = false
[dependencies.siderust-archive]
version = "0.1.5"
features = ["time"]
default-features = false
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.serde_json]
version = "1"