6 releases (1 stable)

1.0.0 May 2, 2023
0.1.4 Oct 23, 2022

#326 in Command-line interface

Download history 1398/week @ 2024-11-19 1076/week @ 2024-11-26 1242/week @ 2024-12-03 1137/week @ 2024-12-10 1723/week @ 2024-12-17 1249/week @ 2024-12-24 1919/week @ 2024-12-31 1633/week @ 2025-01-07 2074/week @ 2025-01-14 2037/week @ 2025-01-21 1439/week @ 2025-01-28 1301/week @ 2025-02-04 1379/week @ 2025-02-11 1615/week @ 2025-02-18 1522/week @ 2025-02-25 1005/week @ 2025-03-04

5,780 downloads per month
Used in 2 crates (via libshpool)

MIT license

48KB
958 lines

termini - minimal terminfo

crates.io crates.io

termini is a Rust library that provides access to the terminfo database.

Some highlights of termini include:

  • supports extended capabilities
  • easy to audit (single dependency, < 1k LOC)
  • stability (extensively fuzzed to ensure absence of panics)
  • tested on a wide array of terminfo databases

terminis main differentiating characteristic is that it's focused on providing a very minimal functionality. termini only has a single dependency (home to query the home directory) and has less than 1k LOC. This means that it's easy to maintain/audit, doesn't introduce additional dependencies/compiletime and has a smaller surface area for bugs.

terminis parser has been extensively fuzzed with cargo-fuzz to ensure that no panics occur even for fully malformed input. Furthermore, termini is tested with a large array of compiled terminifo data to ensure it produces the correct results.

Acknowledgements

During the implementation of this crate, the following code was used as reference:

Dependencies

~0–6MB
~31K SLoC