#slice #ice #icerpc

slicec

The Slice parser and other core components for Slice compilers

9 releases

0.3.3 Dec 1, 2025
0.3.2 Sep 11, 2024
0.3.1 Mar 27, 2024
0.3.0 Feb 7, 2024
0.0.0 Mar 29, 2023

#534 in Parser implementations

Download history 1/week @ 2025-10-13 5/week @ 2025-10-20 3/week @ 2025-10-27 188/week @ 2025-11-17 280/week @ 2025-11-24 73/week @ 2025-12-01 18/week @ 2025-12-29 120/week @ 2026-01-05 78/week @ 2026-01-12 40/week @ 2026-01-19 18/week @ 2026-01-26

259 downloads per month

Apache-2.0

440KB
8K 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

~4–8.5MB
~150K SLoC