From 14226d4c88015ec48aae8664baf53209dac0bc01 Mon Sep 17 00:00:00 2001 From: Runji Wang Date: Sat, 3 Apr 2021 22:23:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E4=BB=A3=E7=A0=81=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E5=BC=95=E5=85=A5Cargo=E5=B7=A5=E4=BD=9C=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/{ch01-01 => }/.gitignore | 0 code/Cargo.toml | 4 ++++ code/ch01-01/Cargo.toml | 2 +- code/ch01-01/src/object/object_v1.rs | 3 ++- code/{ch01-01 => }/rust-toolchain | 0 5 files changed, 7 insertions(+), 2 deletions(-) rename code/{ch01-01 => }/.gitignore (100%) create mode 100644 code/Cargo.toml rename code/{ch01-01 => }/rust-toolchain (100%) 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