All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
stdweb
dependency when targetting web assembly.
- All public enums now have the attribute
#[non_exhaustive]
and deriveDebug
.
- Some out-of-date documentation
- Web Assembly support.
Platform::Web
variant of enum, useenv()
if you need to.
platform()
is no longer a const fn (needed for wasm platform detection).
- Now uses a more modern Rust coding style (replace
::std::
withstd::
). - Now uses a more modern Rust coding style with
mem::MaybeUninit
. impl Display
for desktop environment now uses proper capitalization.- Don't depend on
libc
anymore.
- Fancy Names not working on Windows
user()
now uses Windows Display Name on Windows rather than the username.host()
now uses Windows Name DNS Fully Qualified rather than the hostname.
- Fixed more broken links!
- Clippy lint warning: change
expect(&format!("…"))
toexpect("…")
for optimization in 2 cases. - Fixed broken links
Platform
enum with correspondingplatform()
function.Dive
,Fuchsia
, andRedox
toDesktopEnv
enum.
- Started using
const fn
for some functions.
- Fixed README errors.
- MacOS support.
env
on Ubuntu now returns DesktopEnv::Ubuntu instead of DesktopEnv::Other("UBUNTU")- Split off the binary into
whome
(who me?) crate
- Added more fallbacks.
- Rename realname -> user
- Rename computer -> host
- Fix typo for uknown -> unknown.
- Works now on platforms that use u8 instead of i8 for chars (like ARM).
- Trailing newline on Windows.
- Typo in markdown.
- Undefined behavior on Linux.
- Windows support.
- Something in the markdown.
- Published to crates.io.