Add overarching staticlib

This commit is contained in:
Jeremy Soller
2018-03-03 08:44:18 -07:00
parent 7251cbec76
commit a01ff6baf8
8 changed files with 27 additions and 4 deletions
View File
+18
View File
@@ -0,0 +1,18 @@
[package]
name = "relibc"
version = "0.1.0"
authors = ["Jeremy Soller <jackpot51@gmail.com>"]
[lib]
name = "c"
crate-type = ["staticlib"]
[workspace]
members = [
"fcntl",
"unistd"
]
[dependencies]
fcntl = { path = "fcntl" }
unistd = { path = "unistd" }
+1
View File
@@ -2,6 +2,7 @@
name = "fcntl"
version = "0.1.0"
authors = ["Jeremy Soller <jackpot51@gmail.com>"]
build = "build.rs"
[build-dependencies]
cbindgen = "0.5"
+1 -1
View File
@@ -7,5 +7,5 @@ fn main() {
cbindgen::generate(crate_dir)
.expect("Unable to generate bindings")
.write_to_file("target/fcntl.h");
.write_to_file("../target/fcntl.h");
}
+5
View File
@@ -0,0 +1,5 @@
extern crate fcntl;
extern crate unistd;
pub use fcntl::*;
pub use unistd::*;
-2
View File
@@ -1,2 +0,0 @@
/Cargo.lock
/target/
+1
View File
@@ -2,6 +2,7 @@
name = "unistd"
version = "0.1.0"
authors = ["Jeremy Soller <jackpot51@gmail.com>"]
build = "build.rs"
[build-dependencies]
cbindgen = "0.5"
+1 -1
View File
@@ -7,5 +7,5 @@ fn main() {
cbindgen::generate(crate_dir)
.expect("Unable to generate bindings")
.write_to_file("target/unistd.h");
.write_to_file("../target/unistd.h");
}