[package]
edition = "2021"
rust-version = "1.74"
name = "pretty-ms"
version = "0.1.1"
authors = ["trananhtung"]
build = false
exclude = [
"/.github",
"/.gitignore",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = 'Convert milliseconds to a human-readable string: 1337000000 -> "15d 11h 23m 20s". A faithful port of the pretty-ms npm package. Zero dependencies.'
homepage = "https://github.com/trananhtung/pretty-ms"
documentation = "https://docs.rs/pretty-ms"
readme = "README.md"
keywords = [
"duration",
"time",
"humanize",
"milliseconds",
"format",
]
categories = [
"date-and-time",
"value-formatting",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/trananhtung/pretty-ms"
[lib]
name = "pretty_ms"
path = "src/lib.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[dependencies]
[lints.clippy]
all = "warn"
pedantic = "warn"
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"