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

#858 in Procedural macros

Download history 2207/week @ 2025-03-11 1464/week @ 2025-03-18 1450/week @ 2025-03-25 1158/week @ 2025-04-01 1409/week @ 2025-04-08 947/week @ 2025-04-15 1497/week @ 2025-04-22 928/week @ 2025-04-29 1000/week @ 2025-05-06 1328/week @ 2025-05-13 795/week @ 2025-05-20 885/week @ 2025-05-27 912/week @ 2025-06-03 1304/week @ 2025-06-10 1274/week @ 2025-06-17 1017/week @ 2025-06-24

4,608 downloads per month
Used in 22 crates (11 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

~0–6.5MB
~38K SLoC