A very fast implementation of tldr in Rust. https://tealdeer-rs.github.io/tealdeer/
  • Rust 94.5%
  • Dockerfile 3.7%
  • Shell 1.8%
Find a file
Nikolaos Karaolidis f8a2003bc2
Add updates.warn_cache_age config option (#492)
This is useful when the cache is managed externally, e.g. provisioned
from a Nix store path or by a package manager, where the directory's
mtime doesn't reflect the cache's real age, causing a spurious warning
on every invocation. Today the only way to silence it is `--quiet`,
which must be passed every call and hides all other output too.
2026-07-07 14:24:06 +02:00
.github Bump actions/checkout from 6 to 7 (#493) 2026-07-04 22:59:46 +02:00
benchmarks Update all URLs to point to new GitHub organization (#379) 2024-09-30 11:27:19 +02:00
completion Update all URLs to point to new GitHub organization (#379) 2024-09-30 11:27:19 +02:00
docs Add updates.warn_cache_age config option (#492) 2026-07-07 14:24:06 +02:00
pages Add builtin tldr tealdeer page (#472) 2026-04-14 00:31:31 +02:00
scripts upload-asset script: Change release name 2022-01-01 14:43:58 +01:00
src Add updates.warn_cache_age config option (#492) 2026-07-07 14:24:06 +02:00
tests Add updates.warn_cache_age config option (#492) 2026-07-07 14:24:06 +02:00
.editorconfig Add .editorconfig 2016-01-27 17:48:43 +01:00
.gitattributes Add Windows support 2019-02-05 09:32:13 -08:00
.gitignore release-build.sh: Strip binaries 2018-02-27 23:27:19 +01:00
Cargo.lock Release v1.8.1 2025-11-11 22:27:52 +01:00
Cargo.toml Release v1.8.1 2025-11-11 22:27:52 +01:00
CHANGELOG.md Update CHANGELOG.md 2026-01-25 18:29:32 +01:00
deer.png Rename project (#26) 2016-04-16 10:20:16 +02:00
deer.svg Rename project (#26) 2016-04-16 10:20:16 +02:00
LICENSE-APACHE License under MIT/Apache-2.0 2016-01-27 17:48:43 +01:00
LICENSE-MIT Update copyright year 2021-10-16 13:06:28 +02:00
README.md Added AI Policy to README (#489) 2026-07-04 23:05:15 +02:00
RELEASING.md Release v1.7.0 2024-10-02 23:02:32 +02:00
rustfmt.toml Add comment to empty rustfmt.toml 2022-08-21 22:39:02 +02:00

tealdeer

teal deer

Crate CI (Linux/macOS/Windows)
Crates.io GitHub CI

A very fast implementation of tldr in Rust: Simplified, example based and community-driven man pages.

Screenshot of tldr command

If you pronounce "tldr" in English, it sounds somewhat like "tealdeer". Hence the project name :)

In case you're in a hurry and just want to quickly try tealdeer, you can find static binaries on the GitHub releases page!

Docs (Installing, Usage, Configuration)

User documentation is available at https://tealdeer-rs.github.io/tealdeer/!

The docs are generated using mdbook. They can be edited through the markdown files in the docs/src/ directory.

Goals

High level project goals:

  • Download and cache pages
  • Don't require a network connection for anything besides updating the cache
  • Command line interface similar or equivalent to the NodeJS client
  • Comply with the tldr client specification
  • Advanced highlighting and configuration
  • Be fast

A tool like tldr should be as frictionless as possible to use and show the output as fast as possible.

We think that tealdeer reaches these goals. We put together a (more or less) reproducible benchmark that compiles a handful of clients from source and measures the execution times on a cold disk cache. The benchmarking is run in a Docker container using sharkdp's hyperfine (Dockerfile).

Client (50 runs, 17.10.2021) Programming Language Mean in ms Deviation in ms Comments
outfieldr Zig 9.1 0.5 no user configuration
tealdeer Rust 13.2 0.5
fast-tldr Haskell 17.0 0.6 no example highlighting
tldr-hs Haskell 25.1 0.5 no example highlighting
tldr-bash Bash 30.0 0.8
tldr-python-client Python 87.0 2.4
tldr-node-client JavaScript / NodeJS 407.1 12.9

As you can see, tealdeer is one of the fastest of the tested clients. However, we strive for useful features and code quality over raw performance, even if that means that we don't come out on top in this friendly competition. That said, we are still optimizing the code, for example when the outfieldr developers suggested to switch to a native TLS implementation instead of the native libraries.

Development

Creating a debug build with logging enabled:

$ cargo build --features logging

Release build without logging:

$ cargo build --release

To enable the log output, set the RUST_LOG env variable:

$ export RUST_LOG=tldr=debug

To run tests:

$ cargo test

To run lints:

$ rustup component add clippy
$ cargo clean && cargo clippy

AI Policy

Using AI is generally discouraged. However, if it is used as part of a contribution, the contributor MUST:

  1. Clearly mark what parts (if any) of a contribution were created with the help of AI tools. This includes issue and pull request comments.
  2. Check all output of AI tools before sharing it with others in the tealdeer project.
  3. Not post slop, spam, or low quality contributions. This includes pull request descriptions and comments with excessive text and markdown flair.
  4. Leave small or easy tasks to new contributors who want to learn without the use of AI. This is to maintain the presence of the good-first-issue tag.
  5. Be respectful of everyone's time: maintainers and other contributors will be reviewing your PRs.

MSRV (Minimally Supported Rust Version)

When publishing a tealdeer release, the Rust version required to build it should be stable for at least a month.

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Thanks to @severen for coming up with the name "tealdeer"!