https://www.rust-lang.org/tools/install
$curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$which rustc
$which cargo
Run in Debug Mode
$rustc test.rs
Optimized Compilation of Rust file
$rustc -O test.rs
Run the Debug or Compiled Rust file
$./test
$cargo new rust-jwt
$cargo new sample_progra --bin
#To Run
$cargo run --bin server
#Cargo.toml
[package]
name = "rust-grpc-chat-auth"
version = "0.1.0"
edition = "2021"
[[bin]]
name = "server"
path = "src/server.rs"
[[bin]]
name ="client"
path = "src/client.rs"
$cd proj_dir
$cargo new "library_name" --lib
#Cargo.toml
[package]
name = "pyo3"
version = "0.1.0"
edition = "2021"
[lib]
name = "calculate_pi"
create-type = ["cdylib"]
$cargo clean
$cargo build --release
//Build Location
$cd rust-project/target/debug/rust-project-name
//Execute The Project
$./rust-project-name
$cargo install cargo-watch
To run
$cargo watch -x run
$cargo remove <library>
Check the library tree
$cargo tree -p axum
Check Cargo.lock to confirm duplicate
$vim Cargo.lock
Then Re-add the library specifying the version
$cargo add axum@0.8.1