A rust/Cargo.toml => rust/Cargo.toml +3 -0
@@ 0,0 1,3 @@
+[workspace]
+resolver = "2"
+members = ["tabbde-wm", "tabbde-core"]
A rust/tabbde-core/Cargo.toml => rust/tabbde-core/Cargo.toml +6 -0
@@ 0,0 1,6 @@
+[package]
+name = "tabbde-core"
+version = "0.1.0"
+edition = "2021"
+
+[dependencies]
A rust/tabbde-core/src/lib.rs => rust/tabbde-core/src/lib.rs +14 -0
@@ 0,0 1,14 @@
+pub fn add(left: u64, right: u64) -> u64 {
+ left + right
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn it_works() {
+ let result = add(2, 2);
+ assert_eq!(result, 4);
+ }
+}
A rust/tabbde-wm/Cargo.toml => rust/tabbde-wm/Cargo.toml +6 -0
@@ 0,0 1,6 @@
+[package]
+name = "tabbde-wm"
+version = "0.1.0"
+edition = "2021"
+
+[dependencies]
A rust/tabbde-wm/src/main.rs => rust/tabbde-wm/src/main.rs +3 -0
@@ 0,0 1,3 @@
+fn main() {
+ println!("Hello, world!");
+}