host_discovery 1.0.5

A simple crate for host discovery
Documentation

A simple Rust crate for host discovery

On Crates.io

  • Make more decisions based on the characteristics of the environment you are working in.

Basic Usage

  • API

    • fn detect_os - Returns a variant of OperatingSystem
    • fn detect_arch - Returns a variant of Architecture
    • fn detect_distro - Returns a String containing the name of the running Linux distribution
    • fn detect_distro_version - Returns a String containing the version id of the running Linux distribution
    • fn is_subsystem_env - Returns a boolean based on whether the Linux environment is a Windows subsystem
  • Add to your project

cargo add host_discovery

Planned Features

  • Minimal Windows Registry support
    • Detect Windows Edition
    • Detect Windows Version
      • Implements trait PartialProfile