diff --git a/code/ch01-01/.gitignore b/code/.gitignore similarity index 100% rename from code/ch01-01/.gitignore rename to code/.gitignore diff --git a/code/Cargo.toml b/code/Cargo.toml new file mode 100644 index 0000000..cdb9b9f --- /dev/null +++ b/code/Cargo.toml @@ -0,0 +1,4 @@ +[workspace] +members = [ + "ch01-01", +] diff --git a/code/ch01-01/Cargo.toml b/code/ch01-01/Cargo.toml index c1e21a8..fe27721 100644 --- a/code/ch01-01/Cargo.toml +++ b/code/ch01-01/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "zcore" +name = "ch01-01" version = "0.1.0" authors = ["Runji Wang "] edition = "2018" diff --git a/code/ch01-01/src/object/object_v1.rs b/code/ch01-01/src/object/object_v1.rs index 6b9c0ed..f2fc9b5 100644 --- a/code/ch01-01/src/object/object_v1.rs +++ b/code/ch01-01/src/object/object_v1.rs @@ -1,4 +1,5 @@ -use super::*; +#![allow(dead_code)] +use super::{KernelObject, KoID, String}; // ANCHOR: dummy_def use spin::Mutex; diff --git a/code/ch01-01/rust-toolchain b/code/rust-toolchain similarity index 100% rename from code/ch01-01/rust-toolchain rename to code/rust-toolchain