Reorganize

This commit is contained in:
Jeremy Soller
2018-03-03 20:24:40 -07:00
parent 388d8ed8cf
commit 083fd72e66
33 changed files with 35 additions and 35 deletions
+5 -5
View File
@@ -13,11 +13,11 @@ members = ["crt0"]
[dependencies]
compiler_builtins = { git = "https://github.com/rust-lang-nursery/compiler-builtins.git", default-features = false, features = ["mem"] }
platform = { path = "platform" }
fcntl = { path = "fcntl" }
stdio = { path = "stdio" }
stdlib = { path = "stdlib" }
string = { path = "string" }
unistd = { path = "unistd" }
fcntl = { path = "src/fcntl" }
stdio = { path = "src/stdio" }
stdlib = { path = "src/stdlib" }
string = { path = "src/string" }
unistd = { path = "src/unistd" }
[profile.dev]
panic = "abort"
+2 -2
View File
@@ -5,7 +5,7 @@ authors = ["Jeremy Soller <jackpot51@gmail.com>"]
build = "build.rs"
[build-dependencies]
cbindgen = { path = "../cbindgen" }
cbindgen = { path = "../../cbindgen" }
[dependencies]
platform = { path = "../platform" }
platform = { path = "../../platform" }
+2 -2
View File
@@ -4,8 +4,8 @@ use std::{env, fs};
fn main() {
let crate_dir = env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR not set");
fs::create_dir_all("../target/include").expect("failed to create include directory");
fs::create_dir_all("../../target/include").expect("failed to create include directory");
cbindgen::generate(crate_dir)
.expect("failed to generate bindings")
.write_to_file("../target/include/stdlib.h");
.write_to_file("../../target/include/fcntl.h");
}
+2 -2
View File
@@ -5,8 +5,8 @@ authors = ["Jeremy Soller <jackpot51@gmail.com>"]
build = "build.rs"
[build-dependencies]
cbindgen = { path = "../cbindgen" }
cbindgen = { path = "../../cbindgen" }
[dependencies]
platform = { path = "../platform" }
platform = { path = "../../platform" }
va_list = { version = "0.1", features = ["no_std"] }
+2 -2
View File
@@ -4,8 +4,8 @@ use std::{env, fs};
fn main() {
let crate_dir = env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR not set");
fs::create_dir_all("../target/include").expect("failed to create include directory");
fs::create_dir_all("../../target/include").expect("failed to create include directory");
cbindgen::generate(crate_dir)
.expect("failed to generate bindings")
.write_to_file("../target/include/fcntl.h");
.write_to_file("../../target/include/stdio.h");
}
+3 -3
View File
@@ -5,8 +5,8 @@ authors = ["Jeremy Soller <jackpot51@gmail.com>"]
build = "build.rs"
[build-dependencies]
cbindgen = { path = "../cbindgen" }
cbindgen = { path = "../../cbindgen" }
[dependencies]
platform = { path = "../platform" }
ralloc = { path = "../ralloc", default-features = false }
platform = { path = "../../platform" }
ralloc = { path = "../../ralloc", default-features = false }
+2 -2
View File
@@ -4,8 +4,8 @@ use std::{env, fs};
fn main() {
let crate_dir = env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR not set");
fs::create_dir_all("../target/include").expect("failed to create include directory");
fs::create_dir_all("../../target/include").expect("failed to create include directory");
cbindgen::generate(crate_dir)
.expect("failed to generate bindings")
.write_to_file("../target/include/string.h");
.write_to_file("../../target/include/stdlib.h");
}
+2 -2
View File
@@ -5,7 +5,7 @@ authors = ["Jeremy Soller <jackpot51@gmail.com>"]
build = "build.rs"
[build-dependencies]
cbindgen = { path = "../cbindgen" }
cbindgen = { path = "../../cbindgen" }
[dependencies]
platform = { path = "../platform" }
platform = { path = "../../platform" }
+2 -2
View File
@@ -4,8 +4,8 @@ use std::{env, fs};
fn main() {
let crate_dir = env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR not set");
fs::create_dir_all("../target/include").expect("failed to create include directory");
fs::create_dir_all("../../target/include").expect("failed to create include directory");
cbindgen::generate(crate_dir)
.expect("failed to generate bindings")
.write_to_file("../target/include/stdio.h");
.write_to_file("../../target/include/string.h");
}
View File
View File
+2 -2
View File
@@ -5,7 +5,7 @@ authors = ["Jeremy Soller <jackpot51@gmail.com>"]
build = "build.rs"
[build-dependencies]
cbindgen = { path = "../cbindgen" }
cbindgen = { path = "../../cbindgen" }
[dependencies]
platform = { path = "../platform" }
platform = { path = "../../platform" }
+11
View File
@@ -0,0 +1,11 @@
extern crate cbindgen;
use std::{env, fs};
fn main() {
let crate_dir = env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR not set");
fs::create_dir_all("../../target/include").expect("failed to create include directory");
cbindgen::generate(crate_dir)
.expect("failed to generate bindings")
.write_to_file("../../target/include/unistd.h");
}
-11
View File
@@ -1,11 +0,0 @@
extern crate cbindgen;
use std::{env, fs};
fn main() {
let crate_dir = env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR not set");
fs::create_dir_all("../target/include").expect("failed to create include directory");
cbindgen::generate(crate_dir)
.expect("failed to generate bindings")
.write_to_file("../target/include/unistd.h");
}