rusty-ts 0.1.0

Prefix each line of stdin with a timestamp — a Rust port of moreutils `ts` with strict-compat mode, IANA timezone control, and a reusable byte-typed library API.
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.85"
name = "rusty-ts"
version = "0.1.0"
authors = ["James Han <jsh562@users.noreply.github.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Prefix each line of stdin with a timestamp — a Rust port of moreutils `ts` with strict-compat mode, IANA timezone control, and a reusable byte-typed library API."
homepage = "https://github.com/jsh562/rusty-ts"
documentation = "https://docs.rs/rusty-ts"
readme = "README.md"
keywords = [
    "ts",
    "moreutils",
    "timestamp",
    "log",
    "cli",
]
categories = [
    "command-line-utilities",
    "date-and-time",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jsh562/rusty-ts"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }{ archive-suffix }"
bin-dir = "{ name }-v{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"

[features]
bench = ["dep:criterion"]
cli = [
    "dep:clap",
    "dep:clap_complete",
    "dep:anyhow",
]
default = ["cli"]
ts-alias = ["cli"]

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

[[bin]]
name = "rusty-ts"
path = "src/main.rs"
required-features = ["cli"]

[[bin]]
name = "ts"
path = "src/bin/ts.rs"
required-features = ["ts-alias"]

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

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

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

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

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

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

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

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

[[bench]]
name = "throughput"
path = "benches/throughput.rs"
harness = false
required-features = ["bench"]

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

[dependencies.chrono]
version = "0.4"
features = [
    "clock",
    "std",
]
default-features = false

[dependencies.chrono-tz]
version = "0.10"

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]
optional = true

[dependencies.clap_complete]
version = "4"
optional = true

[dependencies.criterion]
version = "0.5"
optional = true

[dependencies.regex]
version = "1"

[dependencies.thiserror]
version = "2"

[dev-dependencies.assert_cmd]
version = "2"

[dev-dependencies.insta]
version = "1"
features = ["yaml"]

[dev-dependencies.predicates]
version = "3"

[dev-dependencies.static_assertions]
version = "1"

[profile.release]
lto = "thin"
codegen-units = 1
strip = "symbols"