forked from Chewing_Bever/rusty-bever
Organized Rust project in library & binary
This commit is contained in:
parent
3415ce7329
commit
48fdc460ad
22 changed files with 68 additions and 60 deletions
|
|
@ -1,3 +0,0 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
3
src/rb/lib.rs
Normal file
3
src/rb/lib.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
pub fn yeet() -> String {
|
||||
String::from("yeet")
|
||||
}
|
||||
5
src/rbs/main.rs
Normal file
5
src/rbs/main.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
use rb::yeet;
|
||||
|
||||
fn main() {
|
||||
println!("{}", yeet());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue