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

#180 in Configuration

Download history 791/week @ 2024-07-29 821/week @ 2024-08-05 770/week @ 2024-08-12 754/week @ 2024-08-19 818/week @ 2024-08-26 571/week @ 2024-09-02 1839/week @ 2024-09-09 800/week @ 2024-09-16 255/week @ 2024-09-23 27/week @ 2024-09-30 515/week @ 2024-10-07 933/week @ 2024-10-14 1200/week @ 2024-10-21 430/week @ 2024-10-28 507/week @ 2024-11-04 148/week @ 2024-11-11

2,349 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–6.5MB
~37K SLoC