From 19b57c3b17f756f72b3d0e51e94cac644efadf0c Mon Sep 17 00:00:00 2001 From: Guillaume DIDIER Date: Tue, 1 Oct 2019 14:53:54 +0200 Subject: [PATCH] Stub the kernel binary crate --- .gitignore | 8 ++++++++ Cargo.lock | 6 ++++++ Cargo.toml | 5 +++++ kernel/Cargo.toml | 9 +++++++++ kernel/src/main.rs | 3 +++ 5 files changed, 31 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.lock create mode 100644 Cargo.toml create mode 100644 kernel/Cargo.toml create mode 100644 kernel/src/main.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d43938 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +# Generated by Cargo +# will have compiled files and executables +/target/ +# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries +# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html +#Cargo.lock +# These are backup files generated by rustfmt +**/*.rs.bk diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..3e9c311 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,6 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +[[package]] +name = "kernel" +version = "0.1.0" + diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..53d79c2 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,5 @@ +[workspace] + +members = [ + "kernel", +] diff --git a/kernel/Cargo.toml b/kernel/Cargo.toml new file mode 100644 index 0000000..eebd9e0 --- /dev/null +++ b/kernel/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "kernel" +version = "0.1.0" +authors = ["Guillaume DIDIER "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/kernel/src/main.rs b/kernel/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/kernel/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}