From 8c81907f30776ad056eb7ba9cf2b3bf8f535c206 Mon Sep 17 00:00:00 2001
From: John Hodge <tpg@mutabah.net>
Date: Sat, 6 Apr 2019 10:27:01 +0800
Subject: [PATCH] Usermode - Cargo.toml for all of user-land

---
 Usermode/fileviewer/Cargo.toml       |  8 ++++++++
 Usermode/handle_server/Cargo.toml    | 11 +++++++++++
 Usermode/hello_world/Cargo.toml      |  7 +++++++
 Usermode/libcrc/Cargo.toml           |  6 ++++++
 Usermode/libhandle_server/Cargo.toml | 10 ++++++++++
 Usermode/liblazy_static/Cargo.toml   |  6 ++++++
 Usermode/login/Cargo.toml            | 11 +++++++++++
 Usermode/shell/Cargo.toml            | 12 ++++++++++++
 Usermode/simple_console/Cargo.toml   | 11 +++++++++++
 Usermode/vfs_test/Cargo.toml         |  9 +++++++++
 10 files changed, 91 insertions(+)
 create mode 100644 Usermode/fileviewer/Cargo.toml
 create mode 100644 Usermode/handle_server/Cargo.toml
 create mode 100644 Usermode/hello_world/Cargo.toml
 create mode 100644 Usermode/libcrc/Cargo.toml
 create mode 100644 Usermode/libhandle_server/Cargo.toml
 create mode 100644 Usermode/liblazy_static/Cargo.toml
 create mode 100644 Usermode/login/Cargo.toml
 create mode 100644 Usermode/shell/Cargo.toml
 create mode 100644 Usermode/simple_console/Cargo.toml
 create mode 100644 Usermode/vfs_test/Cargo.toml

diff --git a/Usermode/fileviewer/Cargo.toml b/Usermode/fileviewer/Cargo.toml
new file mode 100644
index 00000000..c52f67f3
--- /dev/null
+++ b/Usermode/fileviewer/Cargo.toml
@@ -0,0 +1,8 @@
+[package]
+name = "fileviewer"
+version = "0.0.1"
+
+[dependencies]
+#syscalls = { path = "../libsyscalls" }
+wtk = { path = "../libwtk" }
+
diff --git a/Usermode/handle_server/Cargo.toml b/Usermode/handle_server/Cargo.toml
new file mode 100644
index 00000000..951cb555
--- /dev/null
+++ b/Usermode/handle_server/Cargo.toml
@@ -0,0 +1,11 @@
+[package]
+name = "handle_server-bin"
+version = "0.0.1"
+
+[dependencies]
+handle_server = { path = "../libhandle_server" }
+
+# Sysroot crates
+#syscalls = { path = "../libsyscalls" }
+#loader = { path = "../loader/lib" }
+
diff --git a/Usermode/hello_world/Cargo.toml b/Usermode/hello_world/Cargo.toml
new file mode 100644
index 00000000..cab9108d
--- /dev/null
+++ b/Usermode/hello_world/Cargo.toml
@@ -0,0 +1,7 @@
+[package]
+name = "hello_word"
+version = "0.0.1"
+
+[dependencies]
+#syscalls = { path = "../libsyscalls" }
+
diff --git a/Usermode/libcrc/Cargo.toml b/Usermode/libcrc/Cargo.toml
new file mode 100644
index 00000000..3263f125
--- /dev/null
+++ b/Usermode/libcrc/Cargo.toml
@@ -0,0 +1,6 @@
+[package]
+name = "crc"
+version = "0.0.0"
+
+[lib]
+path = "lib.rs"
diff --git a/Usermode/libhandle_server/Cargo.toml b/Usermode/libhandle_server/Cargo.toml
new file mode 100644
index 00000000..d03bab0f
--- /dev/null
+++ b/Usermode/libhandle_server/Cargo.toml
@@ -0,0 +1,10 @@
+[package]
+name = "handle_server"
+version = "0.0.0"
+
+[lib]
+path = "lib.rs"
+
+[dependencies]
+#syscalls = { path = "../libsyscalls" }
+
diff --git a/Usermode/liblazy_static/Cargo.toml b/Usermode/liblazy_static/Cargo.toml
new file mode 100644
index 00000000..8c6344ac
--- /dev/null
+++ b/Usermode/liblazy_static/Cargo.toml
@@ -0,0 +1,6 @@
+[package]
+name = "lazy_static"
+version = "0.0.0"
+
+[lib]
+path = "lib.rs"
diff --git a/Usermode/login/Cargo.toml b/Usermode/login/Cargo.toml
new file mode 100644
index 00000000..990a49be
--- /dev/null
+++ b/Usermode/login/Cargo.toml
@@ -0,0 +1,11 @@
+[package]
+name = "login"
+version = "0.0.1"
+
+[dependencies]
+wtk = { path = "../libwtk" }
+async = { path = "../libasync" }
+lazy_static = { path = "../liblazy_static" }
+
+#syscalls = { path = "../libsyscalls" }
+#loader = { path = "../loader/lib" }
diff --git a/Usermode/shell/Cargo.toml b/Usermode/shell/Cargo.toml
new file mode 100644
index 00000000..0038022e
--- /dev/null
+++ b/Usermode/shell/Cargo.toml
@@ -0,0 +1,12 @@
+[package]
+name = "shell"
+version = "0.0.1"
+
+[dependencies]
+wtk = { path = "../libwtk" }
+async = { path = "../libasync" }
+
+# Sysroot crates
+#syscalls = { path = "../libsyscalls" }
+#loader = { path = "../loader/lib" }
+
diff --git a/Usermode/simple_console/Cargo.toml b/Usermode/simple_console/Cargo.toml
new file mode 100644
index 00000000..4086a9e3
--- /dev/null
+++ b/Usermode/simple_console/Cargo.toml
@@ -0,0 +1,11 @@
+[package]
+name = "simple_console"
+version = "0.0.1"
+
+[dependencies]
+#syscalls = { path = "../libsyscalls" }
+wtk = { path = "../libwtk" }
+async = { path = "../libasync" }
+cmdline_words_parser = { path = "../../externals/crates.io/cmdline_words_parser" }
+
+
diff --git a/Usermode/vfs_test/Cargo.toml b/Usermode/vfs_test/Cargo.toml
new file mode 100644
index 00000000..fa29d373
--- /dev/null
+++ b/Usermode/vfs_test/Cargo.toml
@@ -0,0 +1,9 @@
+[package]
+name = "vfs_test"
+version = "0.0.1"
+
+[dependencies]
+crc = { path = "../libcrc" }
+
+#syscalls = { path = "../libsyscalls" }
+
-- 
GitLab