diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..490f945 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,12 @@ +[workspace] + +members = [ + # userspace commands + "usr/src/mei/true", + "usr/src/mei/pwd", + "usr/src/mei/yes", + "usr/src/mei/echo", + "usr/src/mei/printf", + # system + "usr/src/kei", +] diff --git a/usr/src/Cargo.toml b/usr/src/Cargo.toml deleted file mode 100644 index e05b531..0000000 --- a/usr/src/Cargo.toml +++ /dev/null @@ -1,11 +0,0 @@ -[workspace] - -members = [ - # userspace commands - "mei/true", - "mei/pwd", - "mei/yes", - "mei/echo", - # system - "kei", -] diff --git a/usr/src/mei/printf/Cargo.toml b/usr/src/mei/printf/Cargo.toml new file mode 100644 index 0000000..1dded1e --- /dev/null +++ b/usr/src/mei/printf/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "printf" +version = "0.1.0" +edition = "2021" + +[[bin]] +name = "printf" +path = "src/main.rs" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/usr/src/mei/printf/src/main.rs b/usr/src/mei/printf/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/usr/src/mei/printf/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}