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

#424 in Rust patterns

Download history 481/week @ 2023-12-23 362/week @ 2023-12-30 440/week @ 2024-01-06 462/week @ 2024-01-13 373/week @ 2024-01-20 353/week @ 2024-01-27 782/week @ 2024-02-03 204/week @ 2024-02-10 1255/week @ 2024-02-17 557/week @ 2024-02-24 676/week @ 2024-03-02 576/week @ 2024-03-09 304/week @ 2024-03-16 463/week @ 2024-03-23 365/week @ 2024-03-30 935/week @ 2024-04-06

2,145 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

~72–260KB