Closed hansonchar closed 1 year ago
I have no idea what Kani is, but the cause of the error is clear: you're using a Rust version that is too old. The current minimum supported Rust version is 1.60.
Kani is a Rust Verifier, useful for verifying unsafe code in Rust, and can be installed via:
cargo install --locked kani-verifier
cargo-kani setup
In this case, I just tried with the latest version of Rust:
$ rustc --version
rustc 1.64.0 (a55dd71d5 2022-09-19)
git clone git@github.com:time-rs/time.git
cd time
cargo kani
And you can see some reported failure.
Panicking in const contexts has been stable since last December in Rust 1.57. As such, the only explanation is that Kani is not using the system's default rustc.
I tried to run Kani tests as part of my git repository CI/CD workflow but ran into the following failures:
Sample Github workflow setup: