[package] name = "readable" version = "0.16.0" edition = "2021" authors = ["hinto.janai "] description = "Human readable strings" documentation = "https://docs.rs/readable" repository = "https://github.com/hinto-janai/readable" readme = "README.md" keywords = ["human", "readable", "data", "formatting", "string"] license = "MIT" exclude = [ "inlined", "fuzz", "CHANGELOG.md", "Cargo.lock", ] categories = ["value-formatting"] rust-version = "1.71.0" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] [features] # Everything relies on `str` and `toa`, so they're always enabled. default = ["byte", "date", "num", "run", "time", "up"] full = ["byte", "date", "num", "run", "time", "up", "serde", "bincode", "borsh"] byte = [] date = ["dep:regex", "dep:once_cell", "dep:nichi", "dep:chrono", "dep:compact_str"] num = ["dep:compact_str", "dep:seq-macro"] run = [] time = ["dep:chrono", "dep:nichi"] toa = [] up = ["run", "dep:target_os_lib"] [dependencies] paste = { version = "1" } # (De)serialization serde = { version = "1", features = ["derive"], optional = true } bincode = { version = "2.0.0-rc.3", features = ["serde", "derive"], optional = true } borsh = { version = "1", features = ["derive"], optional = true } # Num compact_str = { version = "0.7", features = ["bytes", "serde"], optional = true } seq-macro = { version = "0.3", optional = true } # Date regex = { version = "1", optional = true } once_cell = { version = "1", optional = true } nichi = { version = "0.5", optional = true } chrono = { version = "0.4", optional = true } # Uptime [target.'cfg(not(windows))'.dependencies] target_os_lib = { package = "libc", version = "0", optional = true } [target.'cfg(windows)'.dependencies] target_os_lib = { package = "windows", version = "0", features = ["Win32_System_SystemInformation"], optional = true } [dev-dependencies] serde = { version = "1", features = ["derive"] } serde_json = { version = "1" } bincode = { version = "2.0.0-rc.3", features = ["serde", "derive"] } borsh = { version = "1", features = ["derive"] }