#slice #ice #icerpc

slicec

The Slice parser and other core components for Slice compilers

6 releases (3 breaking)

0.3.0 Feb 7, 2024
0.2.1 Nov 29, 2023
0.1.1 Oct 5, 2023
0.1.0 Sep 6, 2023
0.0.0 Mar 29, 2023

#206 in Rust patterns

Download history 59/week @ 2023-11-10 80/week @ 2023-11-17 65/week @ 2023-11-24 37/week @ 2023-12-01 47/week @ 2023-12-08 2/week @ 2023-12-15 6/week @ 2024-02-02 65/week @ 2024-02-09 54/week @ 2024-02-16 51/week @ 2024-02-23

176 downloads per month

Apache-2.0

425KB
7.5K SLoC

The Slice compiler library (slicec)

CI License

To build slicec you must have Rust and Cargo installed. To install these, we recommend reading the following guide.

Building

Run the following command to build slicec and its dependencies:

cargo build

Running the tests

Run the following command to run the test suite:

cargo test

Generating documentation

To generate documentation for slicec, run the following command:

cargo doc --no-deps --document-private-items

This will generate documentation in the target/doc/slicec directory.

Additionally, you can easily view the documentation after generating it with the open flag:

cargo doc --no-deps --document-private-items --open

Generating a code coverage report

slicec uses llvm-cov to generate coverage reports. So, to generate reports you must install it:

cargo install cargo-llvm-cov

To generate a coverage report for slicec, run the following command:

cargo llvm-cov --html

This will generate an HTML report in the target/llvm-cov/html directory.

Additionally, you can easily view the report after generating it with the open flag:

cargo llvm-cov --open

Dependencies

~2–12MB
~125K SLoC