Flatten nested Rust projects into monorepo
This commit is contained in:
7
variables/Cargo.lock
generated
Normal file
7
variables/Cargo.lock
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "variables"
|
||||
version = "0.1.0"
|
6
variables/Cargo.toml
Normal file
6
variables/Cargo.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "variables"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
16
variables/src/main.rs
Normal file
16
variables/src/main.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
fn main() {
|
||||
let x = 10;
|
||||
|
||||
let x = x * 5;
|
||||
|
||||
{
|
||||
let x = x / 2;
|
||||
println!("x in the inner scope: {x}");
|
||||
}
|
||||
|
||||
println!("x in the outer scope: {x}");
|
||||
|
||||
// let mut space = " ";
|
||||
// space = space.len();
|
||||
// println!("spaces: {space}");
|
||||
}
|
Reference in New Issue
Block a user