deep-time 0.1.0-beta.21

High-precision, no-std, no-alloc date-time library, leap-seconds, time scales, relativistic time, and a powerful date & duration parser
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.90"
name = "deep-time"
version = "0.1.0-beta.21"
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]
alloc = [
    "jiff?/alloc",
    "chrono?/alloc",
]
chrono = [
    "dep:chrono",
    "alloc",
]
de = ["multi-lang"]
default = []
defmt = ["dep:defmt"]
eop = ["alloc"]
eop-tests = [
    "eop",
    "std",
]
es = ["multi-lang"]
euro = [
    "es",
    "de",
    "fr",
]
fr = ["multi-lang"]
hifitime = ["dep:hifitime"]
jiff = [
    "dep:jiff",
    "alloc",
]
jiff-tz = [
    "jiff",
    "std",
    "jiff?/tz-system",
    "jiff?/tzdb-concatenated",
    "jiff?/tz-fat",
    "jiff?/perf-inline",
    "jiff?/tzdb-zoneinfo",
    "jiff?/tzdb-bundle-platform",
]
jiff-tz-bundle = [
    "jiff",
    "std",
    "jiff?/tz-system",
    "jiff?/tzdb-concatenated",
    "jiff?/tz-fat",
    "jiff?/perf-inline",
    "jiff?/tzdb-zoneinfo",
    "jiff?/tzdb-bundle-always",
]
js = [
    "std",
    "serde",
    "dep:wasm-bindgen",
    "dep:js-sys",
    "jiff?/js",
    "chrono?/wasmbind",
    "sys-locale?/js",
]
lang = ["euro"]
locale = [
    "alloc",
    "std",
    "dep:sys-locale",
]
mars = []
multi-lang = []
panic-handler = []
parse = [
    "alloc",
    "dep:aho-corasick",
    "dep:once_cell",
    "dep:hashbrown",
]
perf-tests = [
    "parse",
    "jiff-tz",
    "hifitime",
]
physics = []
serde = [
    "dep:serde",
    "serde?/alloc",
    "jiff?/serde",
    "chrono?/serde",
    "hifitime?/serde",
]
sidereal = []
sidereal-earth = ["sidereal"]
std = [
    "alloc",
    "jiff?/std",
    "chrono?/std",
    "hifitime?/std",
    "serde?/std",
]
tdb_fairhead1990 = []
tsify = [
    "serde",
    "dep:tsify",
    "dep:wasm-bindgen",
    "js",
]
wire = []

[lib]
name = "deep_time"
path = "src/lib.rs"

[[example]]
name = "readme"
path = "examples/readme.rs"
required-features = [
    "parse",
    "jiff-tz",
    "euro",
]

[[test]]
name = "astropy_conversions_tests"
path = "tests/astropy_conversions_tests.rs"

[[test]]
name = "astropy_sidereal_tests"
path = "tests/astropy_sidereal_tests.rs"

[[test]]
name = "astropy_utc_tests"
path = "tests/astropy_utc_tests.rs"

[[test]]
name = "ccsds_tests"
path = "tests/ccsds_tests.rs"

[[test]]
name = "chrono_tests"
path = "tests/chrono_tests.rs"

[[test]]
name = "civil_parts_tests"
path = "tests/civil_parts_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 = "date_relative_tests"
path = "tests/date_relative_tests.rs"

[[test]]
name = "date_tests"
path = "tests/date_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 = "jiff_tests"
path = "tests/jiff_tests.rs"

[[test]]
name = "jiff_types_tests"
path = "tests/jiff_types_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_iso_tests"
path = "tests/parser_iso_tests.rs"

[[test]]
name = "parser_tests"
path = "tests/parser_tests.rs"

[[test]]
name = "perf_tests"
path = "tests/perf_tests.rs"

[[test]]
name = "serde_tests"
path = "tests/serde_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 = "wire_tests"
path = "tests/wire_tests.rs"

[[test]]
name = "zmess_about_tests"
path = "tests/zmess_about_tests.rs"

[dependencies.aho-corasick]
version = "1.1"
optional = true

[dependencies.chrono]
version = "0.4"
optional = true
default-features = false

[dependencies.defmt]
version = "1"
optional = true

[dependencies.hashbrown]
version = "0.17"
optional = true

[dependencies.hifitime]
version = "4.3"
optional = true
default-features = false

[dependencies.jiff]
version = "0.2"
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

[dev-dependencies.serde_json]
version = "1.0"

[lints.clippy]
excessive_precision = "allow"
expect_used = "deny"
get_first = "allow"
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"