Lorenz Bung 7 年前
父节点
当前提交
781afb477f

+ 10
- 0
hw9/task2/Cargo.toml 查看文件

@@ -0,0 +1,10 @@
1
+[package]
2
+name = "task2"
3
+version = "0.1.0"
4
+authors = ["Joshua Rutschmann <joshua.rutschmann@gmx.de>"]
5
+
6
+[dependencies]
7
+srv-commands = { path = "srv-commands" }                                                                                                                                                                                  
8
+srv-config = { path = "srv-config" } 
9
+
10
+[workspace]

+ 3
- 0
hw9/task2/src/main.rs 查看文件

@@ -0,0 +1,3 @@
1
+fn main() {
2
+    println!("Hello, world!");
3
+}

+ 6
- 0
hw9/task2/srv-commands/Cargo.toml 查看文件

@@ -0,0 +1,6 @@
1
+[package]
2
+name = "srv-commands"
3
+version = "0.1.0"
4
+authors = ["Joshua Rutschmann <joshua.rutschmann@gmx.de>"]
5
+
6
+[dependencies]

+ 7
- 0
hw9/task2/srv-commands/src/lib.rs 查看文件

@@ -0,0 +1,7 @@
1
+#[cfg(test)]
2
+mod tests {
3
+    #[test]
4
+    fn it_works() {
5
+        assert_eq!(2 + 2, 4);
6
+    }
7
+}

+ 6
- 0
hw9/task2/srv-config/Cargo.toml 查看文件

@@ -0,0 +1,6 @@
1
+[package]
2
+name = "srv-config"
3
+version = "0.1.0"
4
+authors = ["Joshua Rutschmann <joshua.rutschmann@gmx.de>"]
5
+
6
+[dependencies]

+ 7
- 0
hw9/task2/srv-config/src/lib.rs 查看文件

@@ -0,0 +1,7 @@
1
+#[cfg(test)]
2
+mod tests {
3
+    #[test]
4
+    fn it_works() {
5
+        assert_eq!(2 + 2, 4);
6
+    }
7
+}

正在加载...
取消
保存