From 0caa5fb8e4e084248e6c4e7d3314854eb7bc4e7f Mon Sep 17 00:00:00 2001 From: Jordan Gong Date: Wed, 9 Sep 2020 21:36:11 +0800 Subject: Publish my crate --- my_crate/src/main.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 my_crate/src/main.rs (limited to 'my_crate/src/main.rs') diff --git a/my_crate/src/main.rs b/my_crate/src/main.rs new file mode 100644 index 0000000..f7a50d3 --- /dev/null +++ b/my_crate/src/main.rs @@ -0,0 +1,8 @@ +use my_crate::PrimaryColor; +use my_crate::mix; + +fn main() { + let red = PrimaryColor::Red; + let yellow = PrimaryColor::Yellow; + mix(red, yellow); +} -- cgit v1.2.3