[package]
edition = "2021"
rust-version = "1.75"
name = "whoami"
version = "2.1.2"
build = false
include = [
"LICENSE_APACHE",
"LICENSE_BOOST",
"LICENSE_MIT",
"../README.md",
"/src/*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust library for getting information about the current user and environment"
homepage = "https://github.com/ardaku/whoami/releases"
documentation = "https://docs.rs/whoami"
readme = "README.md"
keywords = [
"user",
"username",
"whoami",
"platform",
"detect",
]
categories = [
"os",
"wasm",
"internationalization",
"localization",
"value-formatting",
]
license = "Apache-2.0 OR BSL-1.0 OR MIT"
repository = "https://github.com/ardaku/whoami"
[features]
default = [
"std",
"wasi-wasite",
"wasm-web",
]
force-stub = []
std = [
"dep:libc",
"dep:libredox",
"dep:objc2-system-configuration",
"libc?/std",
"web-sys?/std",
]
wasi-wasite = ["dep:wasite"]
wasm-web = ["dep:web-sys"]
[lib]
name = "whoami"
path = "src/lib.rs"
[target.'cfg(all(any(target_vendor = "apple", target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd", target_os = "illumos", target_os = "hurd"), not(target_arch = "wasm32")))'.dependencies.libc]
version = "0.2.186"
features = []
optional = true
default-features = false
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi"), not(daku)))'.dependencies.web-sys]
version = "0.3.85"
features = [
"Navigator",
"Document",
"Window",
"Location",
]
optional = true
default-features = false
[target.'cfg(all(target_arch = "wasm32", target_os = "wasi"))'.dependencies.wasite]
version = "1.0.2"
features = []
optional = true
default-features = false
[target.'cfg(all(target_os = "redox", not(target_arch = "wasm32")))'.dependencies.libredox]
version = "0.1.16"
features = ["call"]
optional = true
default-features = false
[target.'cfg(target_vendor = "apple")'.dependencies.objc2-system-configuration]
version = "0.3.2"
features = [
"SCDynamicStore",
"SCDynamicStoreCopySpecific",
]
optional = true
default-features = false
[lints.rust.unexpected_cfgs]
level = "allow"
priority = 0
check-cfg = ["cfg(daku)"]