feat: init with rust lib and bin crate

This commit is contained in:
steveej 2024-12-23 11:55:36 +01:00
commit ca266531a9
21 changed files with 990 additions and 0 deletions

View file

@ -0,0 +1,11 @@
[package]
name = "app"
edition = "2021"
version.workspace = true
[dependencies]
lib = { path = "../lib" }
anyhow = { workspace = true }
log = { workspace = true }
env_logger = { workspace = true }

View file

@ -0,0 +1,6 @@
fn main() {
let (a, b) = (1, 1);
let r = lib::add(a, b);
println!("{a} + {b} = {r}");
}