largo-cli-0.2.6 is not a library.
Largo
A simple CLI tool that runs cargo check → build → run at the project root (auto-detected).
What it does
Largo automatically finds the nearest Rust project by searching for a Cargo.toml file, then runs the standard development workflow:
cargo check- Fast syntax and type checkingcargo build- Compile the projectcargo run- Execute the binary
This is especially useful when you're working in a subdirectory of a Rust project and want to quickly test the entire project without navigating to the root.
Installation
From crates.io
From source
Usage
Basic usage
# Run from anywhere in your Rust project
This will:
- Find the nearest
Cargo.tomlfile by walking up the directory tree - Run
cargo check, thencargo build, thencargo runin that directory
Command-line options
Examples
# Skip the check step
# Only build, don't run
# Pass arguments to your program
# Start from a specific directory
# Only run cargo check and build
Example workflow
# You're working in src/modules/parser/
# /home/user/my-rust-project/src/modules/parser
# Instead of doing:
# Just do:
Output:
Found Rust project at: /home/user/my-rust-project
Running cargo check...
Checking my-project v0.1.0 (/home/user/my-rust-project)
Finished dev [unoptimized + debuginfo] target(s) in 0.12s
Running cargo build...
Finished dev [unoptimized + debuginfo] target(s) in 0.01s
Running cargo run...
Finished dev [unoptimized + debuginfo] target(s) in 0.01s
Running `target/debug/my-project`
Hello, world!
Safety features
- Infinite recursion protection: Largo detects if you're trying to run it on the largo project itself and prevents execution
- Respects cargo's exit codes: If any step fails, largo stops and returns the appropriate exit code
Why "Largo"?
Largo is a musical term meaning "slow and dignified" - perfect for a tool that takes its time to check, build, and run your code properly, one step at a time.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.