1 parent 0f74132 commit d98dcc1Copy full SHA for d98dcc1
3 files changed
Cargo.toml
@@ -8,3 +8,7 @@ edition = "2024"
8
[[bin]]
9
name = "notcc"
10
path = "rust_src/main.rs"
11
+
12
+[lib]
13
+name = "notcc"
14
+path = "rust_src/lib.rs"
rust_src/lib.rs
@@ -0,0 +1,5 @@
1
+pub mod error;
2
3
+pub fn driver() {
4
+ println!("you did it!")
5
+}
rust_src/main.rs
@@ -1,6 +1,7 @@
-mod error;
//mod driver;
+use notcc;
-fn main() -> Result<(), error::Error> {
- return error::fail("Bad news bro!");
+fn main() -> Result<(), notcc::error::Error> {
+ notcc::driver();
6
+ return notcc::error::fail("Bad news bro!");
7
}
0 commit comments