Skip to content
forked from lu-zero/cargo-c

build and install C-compatible libraries

License

Notifications You must be signed in to change notification settings

barrbrain/cargo-c

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

build and install C-compatible libraries

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%