Crates.io | slicec |
lib.rs | slicec |
version | 0.3.2 |
source | src |
created_at | 2023-03-29 15:05:41.526652 |
updated_at | 2024-09-11 14:49:29.701893 |
description | The Slice parser and other core components for Slice compilers. |
homepage | https://docs.icerpc.dev/slice2 |
repository | https://github.com/icerpc/slicec |
max_upload_size | |
id | 824152 |
size | 722,484 |
To build slicec you must have Rust and Cargo installed. To install these, we recommend reading the following guide.
Run the following command to build slicec and its dependencies:
cargo build
Run the following command to run the test suite:
cargo test
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
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