| Crates.io | emix |
| lib.rs | emix |
| version | 0.6.0 |
| created_at | 2026-01-11 14:03:01.84777+00 |
| updated_at | 2026-01-11 14:03:01.84777+00 |
| description | Everyday filesystem, string, random, and terminal utilities built on emixcore. |
| homepage | |
| repository | https://github.com/asm2025/essentialmix-rs |
| max_upload_size | |
| id | 2035858 |
| size | 159,645 |
emix collects everyday utilities that sit on top of emixcore, ranging from
filesystem helpers to string manipulation, random data generators, and terminal
tooling. Pull in the features you need and keep the rest out of your build.
terminal: Enables terminal UI helpers backed by crossterm, dialoguer,
and rpassword.fake: Unlocks rich fake-data generation via the fake crate.full: Convenience flag for ["terminal", "fake"].[dependencies]
emix = { path = "../../crates/base", features = ["terminal"] }
Path utilities:
use emix::io::path::PathEx;
let manifest = ("crates", "base", "Cargo.toml");
assert!(manifest.as_path().ends_with("crates\\base\\Cargo.toml") || manifest.as_path().ends_with("crates/base/Cargo.toml"));
String helpers:
use emix::string::StringEx;
let slug = "--EssentialMix--".trim_char(&'-').to_lowercase();
assert_eq!(slug, "essentialmix");
Fake data (behind the fake feature):
use emix::random::person::FullName;
let name = FullName().fake();
println!("Hello, {name}!");
Explore additional modules in src/ and the corresponding tests under
tests/ for more patterns.