The corrosion package is a tool for integrating rustc into an existing CMake project.
This package is known to build and work properly using an LFS 13.1 platform.
Download (HTTP): https://github.com/corrosion-rs/corrosion/archive/v0.6.1/corrosion-0.6.1.tar.gz
Download MD5 sum: 060ee79a6bf7c5a2e4e810370fbb7b61
Download size: 104 KB
Estimated disk space required: 10 MB
Estimated build time: less than 0.1 SBU
Install corrosion by running the following commands:
mkdir build &&
cd build &&
cmake -D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_LIBEXECDIR=lib \
-D CORROSION_BUILD_TESTS=OFF \
-W no-author .. &&
make
The package does not come with a test suite.
Now, as the root user:
make install