Move crt0 and platform into src folder
Add cargo fmt script
This commit is contained in:
+2
-2
@@ -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" }
|
||||
|
||||
@@ -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[@]}" "$@"
|
||||
@@ -8,4 +8,4 @@ build = "build.rs"
|
||||
cbindgen = { path = "../../cbindgen" }
|
||||
|
||||
[dependencies]
|
||||
platform = { path = "../../platform" }
|
||||
platform = { path = "../platform" }
|
||||
|
||||
@@ -8,4 +8,4 @@ build = "build.rs"
|
||||
cbindgen = { path = "../../cbindgen" }
|
||||
|
||||
[dependencies]
|
||||
platform = { path = "../../platform" }
|
||||
platform = { path = "../platform" }
|
||||
|
||||
+1
-1
@@ -8,4 +8,4 @@ build = "build.rs"
|
||||
cbindgen = { path = "../../cbindgen" }
|
||||
|
||||
[dependencies]
|
||||
platform = { path = "../../platform" }
|
||||
platform = { path = "../platform" }
|
||||
|
||||
+1
-1
@@ -8,4 +8,4 @@ build = "build.rs"
|
||||
cbindgen = { path = "../../cbindgen" }
|
||||
|
||||
[dependencies]
|
||||
platform = { path = "../../platform" }
|
||||
platform = { path = "../platform" }
|
||||
|
||||
@@ -8,4 +8,4 @@ build = "build.rs"
|
||||
cbindgen = { path = "../../cbindgen" }
|
||||
|
||||
[dependencies]
|
||||
platform = { path = "../../platform" }
|
||||
platform = { path = "../platform" }
|
||||
|
||||
@@ -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"] }
|
||||
|
||||
@@ -8,5 +8,5 @@ build = "build.rs"
|
||||
cbindgen = { path = "../../cbindgen" }
|
||||
|
||||
[dependencies]
|
||||
platform = { path = "../../platform" }
|
||||
platform = { path = "../platform" }
|
||||
ralloc = { path = "../../ralloc", default-features = false }
|
||||
|
||||
@@ -8,4 +8,4 @@ build = "build.rs"
|
||||
cbindgen = { path = "../../cbindgen" }
|
||||
|
||||
[dependencies]
|
||||
platform = { path = "../../platform" }
|
||||
platform = { path = "../platform" }
|
||||
|
||||
@@ -8,4 +8,4 @@ build = "build.rs"
|
||||
cbindgen = { path = "../../cbindgen" }
|
||||
|
||||
[dependencies]
|
||||
platform = { path = "../../platform" }
|
||||
platform = { path = "../platform" }
|
||||
|
||||
@@ -8,4 +8,4 @@ build = "build.rs"
|
||||
cbindgen = { path = "../../cbindgen" }
|
||||
|
||||
[dependencies]
|
||||
platform = { path = "../../platform" }
|
||||
platform = { path = "../platform" }
|
||||
|
||||
Reference in New Issue
Block a user