Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stridsvagn69420/apputils
A lightweight Rust crate to help you build awesome tools
https://github.com/stridsvagn69420/apputils
app-tool essentials helper rust rust-lang toolkit utils
Last synced: about 2 hours ago
JSON representation
A lightweight Rust crate to help you build awesome tools
- Host: GitHub
- URL: https://github.com/stridsvagn69420/apputils
- Owner: Stridsvagn69420
- License: mit
- Created: 2024-02-24T20:53:58.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-04-04T01:48:52.000Z (10 months ago)
- Last Synced: 2024-12-23T16:43:00.364Z (about 1 month ago)
- Topics: app-tool, essentials, helper, rust, rust-lang, toolkit, utils
- Language: Rust
- Homepage: https://crates.io/crates/apputils
- Size: 30.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# apputils
A lightweight Rust crate to help you build awesome toolsCheck out [the docs](https://docs.rs/apputils) to know what it can do. To add it to your dependencies, either run:
```bash
cargo add apputils
```Or update your `Cargo.toml`:
```toml
[dependencies]
apputils = "0.1.5"
```## Categories
- `dirs`: User directories using environment variables
- `config`: Config file helpersAn example
```rust
use apputils::config::local_file;
use apputils::Colors;
use apputils::paintln;fn main() {
paintln!(Colors::Rgb(42, 164, 69), "Attempting to read alacritty config file...");match local_file("alacritty", "alacritty.toml") {
Ok(data) => println!("Your alacritty config:\n{}", data),
Err(_) => paintln!(Colors::Red, "You don't seem to have an alacritty config!")
}// You can also print with bold colors
paintln!(Colors::MagentaBold, "I use Gentoo, btw.");
}
```