Skip to content

Commit 8dce81a

Browse files
committed
build: implement structure for build system
1 parent a6951d9 commit 8dce81a

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

.cargo/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[alias]
2-
aero = "run --release --manifest-path ./aero_build/Cargo.toml --"
2+
aero = "run --manifest-path ./src/aero_build/Cargo.toml --"

src/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[workspace]
22
members = ["aero_kernel", "aero_syscall", "aero_proc"]
3+
# if aero_build is part of the workspace, cargo will attempt to build it as no_std
4+
exclude = ["aero_build"]
35

46
[profile.release]
57
debug = true

src/aero_build/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[package]
2+
name = "aero_build"
3+
version = "0.1.0"
4+
authors = ["Joshua Price <[email protected]>"]
5+
edition = "2021"
6+
7+
[dependencies]

src/aero_build/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("Hello, world!");
3+
}

0 commit comments

Comments
 (0)