From 680c8633e6206085ad417c6055e17f6d30f462a4 Mon Sep 17 00:00:00 2001 From: Jordan Gong Date: Wed, 9 Sep 2020 21:52:02 +0800 Subject: Manage multiple packages using workspaces --- add/adder/src/main.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 add/adder/src/main.rs (limited to 'add/adder/src/main.rs') diff --git a/add/adder/src/main.rs b/add/adder/src/main.rs new file mode 100644 index 0000000..7deb796 --- /dev/null +++ b/add/adder/src/main.rs @@ -0,0 +1,10 @@ +use add_one; + +fn main() { + let num = 10; + println!( + "Hello, world! {} plus one is {}!", + num, + add_one::add_one(num) + ); +} -- cgit v1.2.3