xtask-toolkit 0.1.12

A collection of useful tools for xtask building
Documentation
1
2
3
4
5
6
7
use std::{ffi::OsString, os::unix::ffi::OsStringExt};

pub fn buildhost() -> String {
    OsString::from_vec(rustix::system::uname().nodename().to_bytes().to_vec())
        .to_string_lossy()
        .to_string()
}