Skip to content
Snippets Groups Projects
Commit a01ff6ba authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add overarching staticlib

parent 7251cbec
No related branches found
No related tags found
No related merge requests found
File moved
[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" }
......@@ -2,6 +2,7 @@
name = "fcntl"
version = "0.1.0"
authors = ["Jeremy Soller <jackpot51@gmail.com>"]
build = "build.rs"
[build-dependencies]
cbindgen = "0.5"
......
......@@ -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");
}
extern crate fcntl;
extern crate unistd;
pub use fcntl::*;
pub use unistd::*;
/Cargo.lock
/target/
......@@ -2,6 +2,7 @@
name = "unistd"
version = "0.1.0"
authors = ["Jeremy Soller <jackpot51@gmail.com>"]
build = "build.rs"
[build-dependencies]
cbindgen = "0.5"
......
......@@ -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");
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment