8000 Release v1.6.0 by AldaronLau · Pull Request #162 · ardaku/whoami · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Release v1.6.0 #162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
# Changelog

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].

## [1.6.0] - Unreleased
## [1.6.0] - 2025-03-23

### Added

- Support for GNU/Hurd

### Changed

- Removed comment about hostname being limited to ASCII
- Removed comment about hostname being limited to ASCII due to Unicode
hostnames being supported on Windows
- More descriptive error messages on the web target

### Fixed

- `account()` always returning username instead of user principal name on
Windows
- `langs()` now returns a list accurate to the POSIX locale spec
- `hostname()` on Windows now returns `PhysicalDnsHostname` instead of
`NetBIOS`
- `devicename()`: Fixed reading escaped unix pretty names
- Link error on Windows (in future Rust version)

## [1.5.2] - 2024-09-02

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "whoami"
version = "1.6.0-pre.2"
version = "1.6.0"
edition = "2018"
license = "Apache-2.0 OR BSL-1.0 OR MIT"
documentation = "https://docs.rs/whoami"
Expand Down
14 changes: 7 additions & 7 deletions examples/web/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions examples/web/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[package]
name = "whoami_web"
version = "0.1.0"
authors = ["Jeron Aldaron Lau <jeronlau@plopgrizzly.com>"]
edition = "2021"
edition = "2024"

[lib]
crate-type = ["cdylib", "rlib"]
Expand Down
2 changes: 1 addition & 1 deletion recipe.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[source]
git = "https://github.com/AldaronLau/whome.git"
rev = "ddcadeae154bf2f907b43aed415a3feb209c7486"
rev = "d29f4e29e8ed71f7284c84b093c58dbf1a151c01"

[build]
template = "cargo"
14 changes: 9 additions & 5 deletions src/os/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,11 @@ extern "system" {
b: *mut c_char,
c: *mut c_ulong,
) -> c_uchar;
}

#[link(name = "advapi32")]
extern "system" {
fn GetUserNameW(a: *mut c_char, b: *mut c_ulong) -> c_int;
fn GetComputerNameExW(
a: ComputerNameFormat,
b: *mut c_char,
c: *mut c_ulong,
) -> c_int;
}

#[link(name = "kernel32")]
Expand All @@ -108,6 +107,11 @@ extern "system" {
pcch_languages_buffer: *mut c_ulong,
) -> c_int;
fn GetNativeSystemInfo(system_info: *mut SystemInfo);
fn GetComputerNameExW(
a: ComputerNameFormat,
b: *mut c_char,
c: *mut c_ulong,
) -> c_int;
}

fn username() -> Result<OsString> {
Expand Down
Loading
0