[package]
edition = "2024"
rust-version = "1.90"
name = "deep-time"
version = "0.1.0-beta.3"
authors = ["ragardner <github@ragardner.simplelogin.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-precision, no-std, no-alloc date-time library, leap-seconds, time scales, relativistic time, and a powerful date & duration parser"
readme = "README.md"
keywords = [
"time",
"date",
"duration",
"astronomy",
"parser",
]
categories = [
"date-and-time",
"science",
]
license = "Apache-2.0"
repository = "https://github.com/ragardner/deep-time"
[package.metadata.docs.rs]
all-features = true
[features]
all = [
"parse",
"tz",
"lang",
"locale",
"eop",
"mars",
"sidereal",
"sidereal-earth",
"wire",
"js",
"chrono-tz",
"jiff-tz",
"hifitime",
"serde",
]
alloc = [
"jiff?/alloc",
"chrono?/alloc",
]
chrono = [
"dep:chrono",
"chrono?/alloc",
]
chrono-tz = [
"chrono",
"dep:chrono-tz",
]
de = ["parse"]
default = []
eop = ["alloc"]
eop-tests = [
"eop",
"std",
]
es = ["parse"]
euro = [
"parse",
"es",
"de",
"fr",
]
fr = ["parse"]
hifitime = ["dep:hifitime"]
jiff = [
"dep:jiff",
"jiff?/alloc",
]
jiff-tz = [
"std",
"jiff",
"jiff?/tzdb-bundle-always",
]
js = [
"std",
"serde",
"dep:tsify",
"dep:wasm-bindgen",
"dep:js-sys",
"jiff?/js",
"chrono?/wasmbind",
"sys-locale?/js",
]
lang = [
"parse",
"euro",
]
locale = [
"alloc",
"std",
"dep:sys-locale",
]
mars = []
panic-handler = []
parse = [
"alloc",
"dep:aho-corasick",
"dep:once_cell",
"dep:hashbrown",
]
perf-tests = [
"parse",
"std",
]
serde = [
"dep:serde",
"jiff?/serde",
"chrono?/serde",
"hifitime?/serde",
]
sidereal = []
sidereal-earth = ["sidereal"]
std = [
"alloc",
"jiff?/std",
"chrono?/std",
"hifitime?/std",
]
tsify = [
"serde",
"dep:tsify",
"dep:wasm-bindgen",
"js",
]
tz = []
wire = []
[lib]
name = "deep_time"
path = "src/lib.rs"
[[example]]
name = "test"
path = "examples/test.rs"
[[test]]
name = "ccsds_tests"
path = "tests/ccsds_tests.rs"
[[test]]
name = "chrono_tests"
path = "tests/chrono_tests.rs"
[[test]]
name = "clock_drift_tests"
path = "tests/clock_drift_tests.rs"
[[test]]
name = "conversions_lunar_tests"
path = "tests/conversions_lunar_tests.rs"
[[test]]
name = "conversions_mars_tests"
path = "tests/conversions_mars_tests.rs"
[[test]]
name = "conversions_tests"
path = "tests/conversions_tests.rs"
[[test]]
name = "dt_tests"
path = "tests/dt_tests.rs"
[[test]]
name = "duration_tests"
path = "tests/duration_tests.rs"
[[test]]
name = "formatter_tests"
path = "tests/formatter_tests.rs"
[[test]]
name = "gps_tests"
path = "tests/gps_tests.rs"
[[test]]
name = "hifitime_tests"
path = "tests/hifitime_tests.rs"
[[test]]
name = "historical_sofa_tests"
path = "tests/historical_sofa_tests.rs"
[[test]]
name = "jiff_tests"
path = "tests/jiff_tests.rs"
[[test]]
name = "julian_date_tests"
path = "tests/julian_date_tests.rs"
[[test]]
name = "leap_seconds_tests"
path = "tests/leap_seconds_tests.rs"
[[test]]
name = "light_time_tests"
path = "tests/light_time_tests.rs"
[[test]]
name = "multi_lang_tests"
path = "tests/multi_lang_tests/main.rs"
[[test]]
name = "parser_tests"
path = "tests/parser_tests.rs"
[[test]]
name = "perf_tests"
path = "tests/perf_tests.rs"
[[test]]
name = "time_parts_tests"
path = "tests/time_parts_tests.rs"
[[test]]
name = "time_range_tests"
path = "tests/time_range_tests.rs"
[[test]]
name = "trajectory_tests"
path = "tests/trajectory_tests.rs"
[[test]]
name = "unified_field_tests"
path = "tests/unified_field_tests.rs"
[[test]]
name = "ut1_tests"
path = "tests/ut1_tests.rs"
[[test]]
name = "verified_astropy_sidereal_tests"
path = "tests/verified_astropy_sidereal_tests.rs"
[[test]]
name = "verified_astropy_tai_tests"
path = "tests/verified_astropy_tai_tests.rs"
[[test]]
name = "verified_astropy_tests"
path = "tests/verified_astropy_tests.rs"
[[test]]
name = "verified_jiff_tests"
path = "tests/verified_jiff_tests.rs"
[[test]]
name = "wire_tests"
path = "tests/wire_tests.rs"
[[test]]
name = "zdate_tests"
path = "tests/zdate_tests.rs"
[dependencies.aho-corasick]
version = "1.1.4"
optional = true
[dependencies.chrono]
version = "0.4"
optional = true
default-features = false
[dependencies.chrono-tz]
version = "0.10"
optional = true
default-features = false
[dependencies.hashbrown]
version = "0.17"
optional = true
[dependencies.hifitime]
version = "4.3"
optional = true
default-features = false
[dependencies.jiff]
version = "0.2.23"
optional = true
default-features = false
[dependencies.js-sys]
version = "0.3"
optional = true
[dependencies.once_cell]
version = "1.21"
features = ["alloc"]
optional = true
default-features = false
[dependencies.serde]
version = "1.0"
features = [
"derive",
"rc",
]
optional = true
default-features = false
[dependencies.sys-locale]
version = "0.3"
optional = true
[dependencies.tsify]
version = "=0.5.6"
optional = true
[dependencies.wasm-bindgen]
version = "0.2"
features = ["serde-serialize"]
optional = true
[lints.clippy]
excessive_precision = "allow"
expect_used = "deny"
indexing_slicing = "allow"
non_canonical_partial_ord_impl = "allow"
panic = "deny"
result_unit_err = "allow"
too_many_arguments = "allow"
unwrap_used = "deny"
wrong_self_convention = "allow"