Changed the C library to properly be the default library.

This commit is contained in:
Myrddin Dundragon 2017-03-01 19:16:54 -05:00
parent 89e37b017b
commit 6e350daf26
3 changed files with 9 additions and 14 deletions

View File

@ -10,9 +10,9 @@ keywords = ["c", "libc", "binding", "ffi", "pact", "nostd"]
[features] [features]
default = ["c_lib"] default = []
use_std = ["scribe/use_std", "binding/use_std"] use_std = ["scribe/use_std", "binding/use_std"]
c_lib = [] rust_lib = []
no_mem_manip = [] no_mem_manip = []
weak = [] weak = []

View File

@ -9,12 +9,7 @@ at the 'C' binding level.
### Standard C Library ### ### Standard C Library ###
This is the default feature set. Or you can add: This is the default feature set.
```
default-features = false
features = ["c_lib"]
```
It will provide a link to the 'C' standard library. This will make it so It will provide a link to the 'C' standard library. This will make it so
that your code is executable and can call functions and use structures from that your code is executable and can call functions and use structures from
@ -44,8 +39,8 @@ functions that Rust requires for LLVM. These are:
* memcpy * memcpy
* memmove * memmove
* memset
* memcmp * memcmp
* memset
### Weak ### ### Weak ###

View File

@ -20,10 +20,10 @@ extern crate binding;
#[cfg(feature="c_lib")] #[cfg(not(feature="rust_lib"))]
mod c; mod c;
#[cfg(not(feature="c_lib"))] #[cfg(feature="rust_lib")]
mod rust; mod rust;
#[cfg(feature="no_mem_manip")] #[cfg(feature="no_mem_manip")]
@ -31,11 +31,11 @@ mod mem;
#[cfg(feature="c_lib")] #[cfg(not(feature="rust_lib"))]
pub use self::c::*; pub use self::c::*;
#[cfg(not(feature="c_lib"))] #[cfg(feature="rust_lib")]
pub use self::rust::*; pub use self::rust::*;
#[cfg(feature="no_mem_manip")] #[cfg(any(feature="no_mem_manip", feature="rust_lib"))]
pub use self::mem::*; pub use self::mem::*;