Skip to content

Commit 47e6e92

Browse files
authored
Merge pull request #7647 from NlightNFotis/compiling_rust_api
Change `COMPILING.md` with newer Rust instructions
2 parents 3289add + 2c4e0bd commit 47e6e92

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

COMPILING.md

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -577,27 +577,12 @@ make test
577577

578578
## Rust API
579579

580-
CBMC is now offering a [Rust API](src/libcprover-rust/). To build that along with
581-
CBMC, you need two things:
580+
CBMC is now offering a [Rust API](src/libcprover-rust/).
582581

583-
- Rust/Cargo, instructions the installation of which can be found [here](https://www.rust-lang.org/tools/install), and
584-
- CMake (the Rust API doesn't support being built with `Make` yet)
585-
- Version `3.19.0`+ is required for the build, because of a dependency on CMake modules
586-
that need the higher version themselves.
587-
588-
Provided these two are available, you can perform a CBMC build *including*
589-
the Rust API by passing in the option `WITH_RUST_API` to `CMake` like this:
590-
591-
```sh
592-
$ cmake -S. -Bbuild -DWITH_RUST_API=ON <other_options>
593-
[...]
594-
-- Rust Target: aarch64-apple-darwin
595-
-- Found Rust: /opt/homebrew/bin/rustc (found version "1.66.1")
596-
-- Using Corrosion as a subdirectory
597-
-- Configuring done
598-
-- Generating done
599-
-- Build files have been written to: cbmc/build
600-
```
582+
The Rust API used to be built along with CBMC, but we have since decoupled that
583+
to be built on its own. Instructions for doing so are in the project's
584+
[`readme.md`](src/libcprover-rust/readme.md), which are also mirrored
585+
on the crate's webpage at [crates.io](https://crates.io/crates/libcprover_rust).
601586

602587
If you come across any issues during the configuration or the build of the Rust API,
603588
please let us know by filing a [bug report](https://github.com/diffblue/cbmc/issues/new)

0 commit comments

Comments
 (0)