t2t 0.1.1

time values and the clocks that read them, for code where a nanosecond counts.
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.98"
name = "t2t"
version = "0.1.1"
authors = ["Atomix Labs"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "time values and the clocks that read them, for code where a nanosecond counts."
homepage = "https://atomix-labs.github.io/t2t/"
readme = "README.md"
keywords = [
    "time",
    "clock",
    "timestamp",
    "tsc",
    "low-latency",
]
categories = [
    "date-and-time",
    "no-std",
    "hardware-support",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/atomix-labs/t2t"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]
targets = [
    "x86_64-unknown-linux-gnu",
    "aarch64-unknown-linux-gnu",
    "aarch64-apple-darwin",
    "x86_64-apple-darwin",
]

[features]
chrono-04 = ["t2t-core/chrono-04"]
default = []
jiff-02 = ["t2t-core/jiff-02"]
schemars = [
    "serde",
    "t2t-core/schemars",
]
serde = ["t2t-core/serde"]
std = [
    "t2t-clock/std",
    "t2t-core/std",
]
time-03 = ["t2t-core/time-03"]
zerocopy = ["t2t-core/zerocopy"]

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

[[example]]
name = "clock-tour"
path = "examples/clock-tour.rs"
required-features = ["std"]

[[example]]
name = "time-tour"
path = "examples/time-tour.rs"

[[test]]
name = "book"
path = "tests/book/main.rs"

[dependencies.t2t-clock]
version = "0.1.1"
default-features = false

[dependencies.t2t-core]
version = "0.1.1"
default-features = false

[lints.cargo]
non_kebab_case_bins = "deny"

[lints.clippy]
absolute_paths = "deny"
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
arithmetic_side_effects = "deny"
as_conversions = "deny"
await_holding_lock = "deny"
clone_on_ref_ptr = "deny"
create_dir = "deny"
dbg_macro = "deny"
empty_enum_variants_with_brackets = "deny"
empty_enums = "allow"
empty_structs_with_brackets = "deny"
error_impl_error = "deny"
exit = "deny"
expect_used = "deny"
filetype_is_file = "deny"
float_cmp = "deny"
get_unwrap = "deny"
impl_trait_in_params = "deny"
indexing_slicing = "deny"
let_underscore_must_use = "deny"
lossy_float_literal = "deny"
map_err_ignore = "deny"
mem_forget = "deny"
missing_assert_message = "deny"
missing_docs_in_private_items = "deny"
mixed_read_write_in_expression = "deny"
module_inception = "allow"
multiple_unsafe_ops_per_block = "deny"
mutex_atomic = "deny"
mutex_integer = "deny"
panic = "deny"
panic_in_result_fn = "deny"
print_stderr = "deny"
print_stdout = "deny"
pub_without_shorthand = "deny"
rc_buffer = "deny"
rc_mutex = "deny"
redundant_pub_crate = "allow"
redundant_type_annotations = "deny"
same_name_method = "deny"
self_named_module_files = "deny"
semicolon_inside_block = "deny"
std_instead_of_alloc = "deny"
std_instead_of_core = "deny"
str_to_string = "deny"
string_slice = "deny"
suspicious_xor_used_as_pow = "deny"
tests_outside_test_module = "deny"
todo = "deny"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"
unnecessary_safety_comment = "deny"
unnecessary_safety_doc = "deny"
unnecessary_self_imports = "deny"
unreachable = "deny"
unseparated_literal_suffix = "deny"
unused_result_ok = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"
verbose_file_reads = "deny"
wildcard_enum_match_arm = "deny"
wildcard_imports = "deny"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.nursery]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
macro_use_extern_crate = "deny"
meta_variable_misuse = "deny"
missing_debug_implementations = "deny"
missing_docs = "deny"
single_use_lifetimes = "deny"
unfulfilled_lint_expectations = "deny"
unknown_lints = "deny"
unreachable_pub = "deny"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "deny"
unused_lifetimes = "deny"
unused_must_use = "deny"
unused_qualifications = "allow"
variant_size_differences = "deny"

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rust.unexpected_cfgs]
level = "deny"
priority = 0
check-cfg = ["cfg(loom)"]

[lints.rust.unused]
level = "deny"
priority = -1

[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "deny"
invalid_codeblock_attributes = "deny"
invalid_html_tags = "deny"
invalid_rust_codeblocks = "deny"
private_intra_doc_links = "deny"
redundant_explicit_links = "deny"
unescaped_backticks = "deny"