6 releases (1 stable)

1.0.0 May 2, 2023
0.1.4 Oct 23, 2022

#218 in Command-line interface

Download history 783/week @ 2024-01-05 827/week @ 2024-01-12 1010/week @ 2024-01-19 984/week @ 2024-01-26 887/week @ 2024-02-02 890/week @ 2024-02-09 1006/week @ 2024-02-16 1106/week @ 2024-02-23 1065/week @ 2024-03-01 1008/week @ 2024-03-08 1185/week @ 2024-03-15 1337/week @ 2024-03-22 2199/week @ 2024-03-29 1265/week @ 2024-04-05 1153/week @ 2024-04-12 981/week @ 2024-04-19

5,777 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–7MB
~40K SLoC