[package] authors = [ "Danilo Bargen ", "Niklas Mohrin ", ] description = "Fetch and show tldr help pages for many CLI commands. Full featured offline client with caching support." homepage = "https://github.com/tealdeer-rs/tealdeer/" license = "MIT OR Apache-2.0" name = "tealdeer" readme = "README.md" repository = "https://github.com/tealdeer-rs/tealdeer/" documentation = "https://tealdeer-rs.github.io/tealdeer/" version = "1.7.1" include = ["/src/**/*", "/tests/**/*", "/Cargo.toml", "/README.md", "/LICENSE-*", "/screenshot.png", "completion/*"] rust-version = "1.75" edition = "2021" [[bin]] name = "tldr" path = "src/main.rs" [dependencies] anyhow = "1" app_dirs = { version = "2", package = "app_dirs2" } clap = { version = "4", features = ["std", "derive", "help", "usage", "cargo", "error-context", "color", "wrap_help"], default-features = false } env_logger = { version = "0.11", optional = true } log = "0.4" reqwest = { version = "0.12.5", features = ["blocking"], default-features = false } serde = "1.0.21" serde_derive = "1.0.21" toml = "0.8.19" walkdir = "2.0.1" yansi = "1" zip = { version = "2.1.6", default-features = false, features = ["deflate"] } [target.'cfg(not(windows))'.dependencies] pager = "0.16" [dev-dependencies] assert_cmd = "2.0.1" escargot = "0.5" predicates = "3.1.2" tempfile = "3.1.0" filetime = "0.2.10" [features] default = ["native-roots"] logging = ["env_logger"] # Reqwest (the HTTP client library) can handle TLS connections in three # different modes: # # - Rustls with native roots # - Rustls with WebPK roots # - Native TLS (SChannel on Windows, Secure Transport on macOS and OpenSSL otherwise) # # Exactly one of the three variants must be selected. By default, Rustls with # native roots is enabled. native-roots = ["reqwest/rustls-tls-native-roots"] webpki-roots = ["reqwest/rustls-tls-webpki-roots"] native-tls = ["reqwest/native-tls"] [profile.release] strip = true opt-level = 3 lto = true codegen-units = 1