No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-09 14:28:00 +01:00
src feat: big bang 2026-09-09 14:28:00 +01:00
.gitignore feat: big bang 2026-09-09 14:28:00 +01:00
Cargo.lock feat: big bang 2026-09-09 14:28:00 +01:00
Cargo.toml feat: big bang 2026-09-09 14:28:00 +01:00
README.md feat: big bang 2026-09-09 14:28:00 +01:00

rustLibs

rustLibs is just a little library for things I use. Sometimes.

Sections

  • args
  • exec
  • utils

args

Argument parsing utilities.

macrov1limited

use rustlib::args::macrov1limited;

let args = args!(
    Args,
    "setup",
    true,

    no_clear: "-c" | "--no-clear" => "Don't clear the screen",
    gaming: "-g" | "--gaming" => "Enable gaming support",
    no_flatpak: "-f" | "--no-flatpak" => "Don't use Flatpak",
);

exec

'command'

use rustlib::exec::*;
let output = command("sudo", "pkg install thing")
println!("Output: {}, Return Code: {}", output.output, output.code)

utils

'username'

Returns a string containing the username.

'clear_screen'

Prints the ASCII escape for clearing a framebuffer or something.

Hope you like it!