Browse Source

Workspaces

main
Julio Biason 3 years ago
parent
commit
63002cd3e9
  1. 11
      Cargo.toml
  2. 8
      lib/Cargo.toml
  3. 7
      lib/src/lib.rs
  4. 3
      src/main.rs

11
Cargo.toml

@ -1,8 +1,5 @@
[package]
name = "tin"
version = "0.1.0"
edition = "2018"
[workspace]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
members = [
"lib"
]

8
lib/Cargo.toml

@ -0,0 +1,8 @@
[package]
name = "lib"
version = "0.1.0"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

7
lib/src/lib.rs

@ -0,0 +1,7 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}

3
src/main.rs

@ -1,3 +0,0 @@
fn main() {
println!("Hello, world!");
}
Loading…
Cancel
Save