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]
default = ["c_lib"]
default = []
use_std = ["scribe/use_std", "binding/use_std"]
c_lib = []
rust_lib = []
no_mem_manip = []
weak = []

View File

@ -9,12 +9,7 @@ at the 'C' binding level.
### Standard C Library ###
This is the default feature set. Or you can add:
```
default-features = false
features = ["c_lib"]
```
This is the default feature set.
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
@ -44,8 +39,8 @@ functions that Rust requires for LLVM. These are:
* memcpy
* memmove
* memset
* memcmp
* memset
### Weak ###

View File

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