#macro #interface #output #terminal #styled #command #termcolor

termcolor_output

Interface crate for styled output to termcolor through macro

4 releases (1 stable)

1.0.1 Oct 23, 2019
1.0.0-rc.3 Oct 20, 2019
1.0.0-rc.2 Oct 19, 2019
1.0.0-rc.1 Oct 18, 2019

#1098 in Rust patterns

Download history 612/week @ 2023-11-24 718/week @ 2023-12-01 763/week @ 2023-12-08 636/week @ 2023-12-15 323/week @ 2023-12-22 332/week @ 2023-12-29 753/week @ 2024-01-05 665/week @ 2024-01-12 512/week @ 2024-01-19 840/week @ 2024-01-26 1036/week @ 2024-02-02 930/week @ 2024-02-09 1080/week @ 2024-02-16 841/week @ 2024-02-23 920/week @ 2024-03-01 368/week @ 2024-03-08

3,355 downloads per month
Used in 17 crates (10 directly)

MIT license

11KB
96 lines

Wrapper crate for termcolor_output_impl procedural macro.

The reason for this code to be split into two crates is simple: we want to make this functionality available on stable. In fact, this dual-crate system is simply the manual implementation of the code generated by proc_macro_hack.

What is it

The termcolor crate is a cross-platform implementation for the different console APIs, abstracting away both Linux terminals and Windows consoles. It has, however, a but cumbersome API itself (only a bit though), since for formatting-heavy parts we have to litter our code with explicit styling commands. This crate allows to abstract these things away, providing the interface similar to the standard write! macro.

Dependencies

~72–250KB