Skip to content

ludios/cli-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a template for command-line Rust programs. Clone and run the rename script with both a lowercase and UpperCase name.

In the dev profile, dependencies (but not your own crate) are optimized. This is a good tradeoff because dependencies are recompiled far less frequently.

In the release profile, full LTO is enabled.

To see your log messages, start your program with RUST_LOG=trace or see the EnvFilter documentation for more filter syntax.

To reduce build times, use mold and build with RUSTFLAGS="-C link-arg=--ld-path=/usr/bin/mold"; also export CARGO_UNSTABLE_SPARSE_REGISTRY=true (info)

To further reduce the size of your release binary, compile with Rust nightly and RUSTFLAGS="-Z share-generics" and cargo build --release -Z build-std --target x86_64-unknown-linux-gnu

About

A template for command-line Rust programs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published