%general-entities; ]> cargo-c-&cargo-c-version; cargo-c Introduction to cargo-c The cargo-c package creates a cargo subcommand to build and install C-ABI compatible dynamic and static libraries. &lfs122_checked; Package Information Download (HTTP): Download (FTP): Download MD5 sum: &cargoc-md5sum; Download size: &cargoc-size; Estimated disk space required: &cargoc-buildsize; Estimated build time: &cargoc-time; cargo-c Dependencies Required Recommended and &build-use-internet; Installation of cargo-c First, download a file to ensure that cargo uses the dependency versions specified by the upstream developers when this cargo-c version (&cargo-c-version;) was released. Without this, the latest versions of the dependencies would be used and they might cause breakages: curl -LO https://github.com/lu-zero/cargo-c/releases/download/v&cargo-c-version;/Cargo.lock Normally we would put such a download into an Additional Downloads section. But in this case we cannot tell the package name and version from the file name Cargo.lock, so it's better not to put the ambigiously-named file outside the cargo-c-&cargo-c-version; directory. We use curl here because the package should have been installed as a required dependency of . The md5sum of the file should be &Cargo.lock-md5sum;. Install cargo-c by running the following commands: [ ! -e /usr/include/libssh2.h ] || export LIBSSH2_SYS_USE_PKG_CONFIG=1 && [ ! -e /usr/include/sqlite3.h ] || export LIBSQLITE3_SYS_USE_PKG_CONFIG=1 && cargo build --release To test the results, issue: cargo test --release. Now, as the root user: install -vm755 target/release/cargo-{capi,cbuild,cinstall,ctest} /usr/bin/ Contents Installed Programs Installed Libraries Installed Directories cargo-capi, cargo-cbuild, cargo-cinstall, and cargo-ctest None None