c-compat 0.0.1

Allows to easily compile and integrate C libraries in Rust in a cross-platform way
Documentation
  • Coverage
  • 100%
    1 out of 1 items documented0 out of 0 items with examples
  • Size
  • Source code size: 15.51 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 400.54 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Lakier15/c-compat
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Lakier15

c-compat

Latest version Documentation License

c-compat is crate which aims to solve the problem of requiring installing vendor toolchains/sysroots in order to compile and integrate C libraries in Rust code for different targets. The crate brings a one-stop solution that combines: existing Rust crates (like libm or tinyrlibc), a set of Rust compiled symbols, and a set of headers that can be used as includes to compile C libraries in *-sys when using cc or bindgen.

All of this allows:

  • The ability to compile C libraries without worrying about different toolchains. The headers are written in sucha a way to leverage the clang builtins and its ability to easily support different targets (which is particularly important for embedded targets)
  • To have available the usual libc symbols, when linking the main binary.

Examples

Coming soon

License