Create the project structure

Create a new rust project.

cargo new rit

Create a library file named lib.rs and add it as a library crate to Cargo.toml:

[lib]
path = "src/lib.rs"

[[bin]]
path = "src/main.rs"
name = "rit"

Add these crates to the project's dependencies:

[dependencies]
clap = { version = "4.4.6", features = ["cargo"] }
configparser = "3.0.2"
flate2 = "1.0.28"

Last updated