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

Move crt0 and platform into src folder

Add cargo fmt script
parent 6bca1123
No related branches found
No related tags found
No related merge requests found
Showing with 20 additions and 12 deletions
...@@ -8,11 +8,11 @@ name = "c" ...@@ -8,11 +8,11 @@ name = "c"
crate-type = ["staticlib"] crate-type = ["staticlib"]
[workspace] [workspace]
members = ["crt0"] members = ["src/crt0"]
[dependencies] [dependencies]
compiler_builtins = { git = "https://github.com/rust-lang-nursery/compiler-builtins.git", default-features = false, features = ["mem"] } 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" } ctype = { path = "src/ctype" }
fcntl = { path = "src/fcntl" } fcntl = { path = "src/fcntl" }
grp = { path = "src/grp" } grp = { path = "src/grp" }
......
fmt.sh 0 → 100755
ARGS=()
for crate in relibc $(find src -name Cargo.toml | cut -d '/' -f2 | grep -v template)
do
ARGS+=("--package" "$crate")
done
cargo fmt "${ARGS[@]}" "$@"
File moved
File moved
...@@ -8,4 +8,4 @@ build = "build.rs" ...@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" } cbindgen = { path = "../../cbindgen" }
[dependencies] [dependencies]
platform = { path = "../../platform" } platform = { path = "../platform" }
...@@ -8,4 +8,4 @@ build = "build.rs" ...@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" } cbindgen = { path = "../../cbindgen" }
[dependencies] [dependencies]
platform = { path = "../../platform" } platform = { path = "../platform" }
...@@ -8,4 +8,4 @@ build = "build.rs" ...@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" } cbindgen = { path = "../../cbindgen" }
[dependencies] [dependencies]
platform = { path = "../../platform" } platform = { path = "../platform" }
...@@ -8,4 +8,4 @@ build = "build.rs" ...@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" } cbindgen = { path = "../../cbindgen" }
[dependencies] [dependencies]
platform = { path = "../../platform" } platform = { path = "../platform" }
File moved
File moved
File moved
File moved
File moved
File moved
...@@ -8,4 +8,4 @@ build = "build.rs" ...@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" } cbindgen = { path = "../../cbindgen" }
[dependencies] [dependencies]
platform = { path = "../../platform" } platform = { path = "../platform" }
...@@ -8,5 +8,5 @@ build = "build.rs" ...@@ -8,5 +8,5 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" } cbindgen = { path = "../../cbindgen" }
[dependencies] [dependencies]
platform = { path = "../../platform" } platform = { path = "../platform" }
va_list = { path = "../../va_list", features = ["no_std"] } va_list = { path = "../../va_list", features = ["no_std"] }
...@@ -8,5 +8,5 @@ build = "build.rs" ...@@ -8,5 +8,5 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" } cbindgen = { path = "../../cbindgen" }
[dependencies] [dependencies]
platform = { path = "../../platform" } platform = { path = "../platform" }
ralloc = { path = "../../ralloc", default-features = false } ralloc = { path = "../../ralloc", default-features = false }
...@@ -8,4 +8,4 @@ build = "build.rs" ...@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" } cbindgen = { path = "../../cbindgen" }
[dependencies] [dependencies]
platform = { path = "../../platform" } platform = { path = "../platform" }
...@@ -8,4 +8,4 @@ build = "build.rs" ...@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" } cbindgen = { path = "../../cbindgen" }
[dependencies] [dependencies]
platform = { path = "../../platform" } platform = { path = "../platform" }
...@@ -8,4 +8,4 @@ build = "build.rs" ...@@ -8,4 +8,4 @@ build = "build.rs"
cbindgen = { path = "../../cbindgen" } cbindgen = { path = "../../cbindgen" }
[dependencies] [dependencies]
platform = { path = "../../platform" } platform = { path = "../platform" }
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