4 releases

0.1.0 Sep 15, 2022
0.0.2 Oct 25, 2022
0.0.1 Sep 19, 2022
0.0.0 Sep 19, 2022

#161 in Programming languages

Download history 58/week @ 2023-01-22 165/week @ 2023-01-29 210/week @ 2023-02-05 155/week @ 2023-02-12 123/week @ 2023-02-19 76/week @ 2023-02-26 411/week @ 2023-03-05 542/week @ 2023-03-12 471/week @ 2023-03-19 517/week @ 2023-03-26 833/week @ 2023-04-02 822/week @ 2023-04-09 175/week @ 2023-04-16 347/week @ 2023-04-23 243/week @ 2023-04-30 204/week @ 2023-05-07

974 downloads per month
Used in 2 crates (via compiler_base_error)

Apache-2.0

21KB
424 lines

reuse rustc_errors in 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

~105KB