Skip to content

A Rust crate that allows to easily integrate C libraries in the build system

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Lakier15/c-compat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

A Rust crate that allows to easily integrate C libraries in the build system

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published