[package]
edition = "2021"
rust-version = "1.75"
name = "leap-sec"
version = "0.1.2"
authors = [
"Jan Piotrzkowski (babilonczyk)",
"stateruntime",
]
build = false
exclude = [
".github/",
"CLAUDE.md",
"docs/AGENT.md",
"scripts/",
"justfile",
"deny.toml",
"rustfmt.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Leap-second handling and continuous time mappings for flight and space systems"
homepage = "https://github.com/stateruntime/leap-sec"
documentation = "https://docs.rs/leap-sec"
readme = "README.md"
keywords = [
"time",
"leap-second",
"utc",
"tai",
"gps",
]
categories = [
"date-and-time",
"no-std",
]
license = "Apache-2.0"
repository = "https://github.com/stateruntime/leap-sec"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["std"]
std = []
[lib]
name = "leap_sec"
path = "src/lib.rs"
[[example]]
name = "custom_table"
path = "examples/custom_table.rs"
[[example]]
name = "gps_time"
path = "examples/gps_time.rs"
[[example]]
name = "leap_second_detection"
path = "examples/leap_second_detection.rs"
[[example]]
name = "nanoseconds"
path = "examples/nanoseconds.rs"
[[example]]
name = "quickstart"
path = "examples/quickstart.rs"
[[example]]
name = "table_inspection"
path = "examples/table_inspection.rs"
[[test]]
name = "behavior"
path = "tests/behavior.rs"
[dependencies]
[dev-dependencies.behave]
version = "0.8.0"
[lints.clippy]
dbg_macro = "deny"
expect_used = "deny"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1