cargo-c 0.1.0

Helper program to build and install c-like libraries
cargo-c-0.1.0 is not a library.
Visit the last successful build: cargo-c-0.9.31+cargo-0.78.0

Cargo C-ABI helpers

LICENSE

cargo applet to build and install C-ABI compatibile dynamic and static libraries.

It produces and installs a correct pkg-config file, a static library and a dynamic library, and a C header to be used by any C (and C-compatible) software.

Usage

# build the library, create the .h header, create the .pc file
$ cargo cbuild --destdir=${D} --prefix=/usr --libdir=/usr/lib64
# build the library, create the .h header, create the .pc file and install all of it
$ cargo cinstall --destdir=${D} --prefix=/usr --libdir=/usr/lib64

Status

  • cli
    • build command
    • install command
    • cargo applet support
  • build targets
    • pkg-config generation
    • header generation (cbindgen integration)
  • staticlib support
  • cdylib support
  • Extra Cargo.toml keys
  • Better status reporting