6 releases

0.1.2 Apr 9, 2024
0.1.1 Apr 9, 2024
0.1.0 Sep 15, 2022
0.0.2 Oct 25, 2022
0.0.1 Sep 19, 2022

#343 in Configuration

Download history 954/week @ 2024-09-05 1993/week @ 2024-09-12 279/week @ 2024-09-19 59/week @ 2024-09-26 116/week @ 2024-10-03 1115/week @ 2024-10-10 1016/week @ 2024-10-17 755/week @ 2024-10-24 443/week @ 2024-10-31 245/week @ 2024-11-07 133/week @ 2024-11-14 161/week @ 2024-11-21 203/week @ 2024-11-28 863/week @ 2024-12-05 614/week @ 2024-12-12 535/week @ 2024-12-19

2,221 downloads per month
Used in 3 crates (via compiler_base_error)

Apache-2.0 OR MIT

22KB
426 lines

reuse rustc_errors for compiler_base.

note: [WIP] Do not use it.


lib.rs:

Text rendering and related helper functions.

Reuse 'styled_buffer.rs' in 'rustc_errors', and 'styled_buffer.rs' has been modified to fit the feature of 'Compiler-Base'.

  • add method appendl() and pushs() to StyledBuffer.

  • replaced the enum Style with generics T: Clone + PartialEq + Eq + Style to support extending more styles. StyledBuffer still should be valid when facing the user-defined style, rather than just supporting a built-in enum Style.

  • add some test cases for 'StyledBuffer'.

Dependencies

~0–7MB
~34K SLoC