Move crt0 and platform into src folder

Add cargo fmt script
This commit is contained in:
Jeremy Soller
2018-03-06 19:55:11 -07:00
parent 6bca112340
commit 543526cb85
21 changed files with 21 additions and 13 deletions
+2 -2
View File
@@ -8,11 +8,11 @@ name = "c"
crate-type = ["staticlib"]
[workspace]
members = ["crt0"]
members = ["src/crt0"]
[dependencies]
compiler_builtins = { git = "https://github.com/rust-lang-nursery/compiler-builtins.git", default-features = false, features = ["mem"] }
platform = { path = "platform" }
platform = { path = "src/platform" }
ctype = { path = "src/ctype" }
fcntl = { path = "src/fcntl" }
grp = { path = "src/grp" }
Executable
+8
View File
@@ -0,0 +1,8 @@
ARGS=()
for crate in relibc $(find src -name Cargo.toml | cut -d '/' -f2 | grep -v template)
do
ARGS+=("--package" "$crate")
done
cargo fmt "${ARGS[@]}" "$@"
+1 -1
View File
@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" }
[dependencies]
platform = { path = "../../platform" }
platform = { path = "../platform" }
+1 -1
View File
@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" }
[dependencies]
platform = { path = "../../platform" }
platform = { path = "../platform" }
+1 -1
View File
@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" }
[dependencies]
platform = { path = "../../platform" }
platform = { path = "../platform" }
+1 -1
View File
@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" }
[dependencies]
platform = { path = "../../platform" }
platform = { path = "../platform" }
+1 -1
View File
@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" }
[dependencies]
platform = { path = "../../platform" }
platform = { path = "../platform" }
+1 -1
View File
@@ -8,5 +8,5 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" }
[dependencies]
platform = { path = "../../platform" }
platform = { path = "../platform" }
va_list = { path = "../../va_list", features = ["no_std"] }
+1 -1
View File
@@ -8,5 +8,5 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" }
[dependencies]
platform = { path = "../../platform" }
platform = { path = "../platform" }
ralloc = { path = "../../ralloc", default-features = false }
+1 -1
View File
@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" }
[dependencies]
platform = { path = "../../platform" }
platform = { path = "../platform" }
+1 -1
View File
@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" }
[dependencies]
platform = { path = "../../platform" }
platform = { path = "../platform" }
+1 -1
View File
@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" }
[dependencies]
platform = { path = "../../platform" }
platform = { path = "../platform" }
+1 -1
View File
@@ -1,7 +1,7 @@
set -ex
cargo build
cargo build --manifest-path crt0/Cargo.toml
cargo build --manifest-path src/crt0/Cargo.toml
cd openlibm
make