[package]
edition = "2021"
rust-version = "1.75"
name = "whoami"
version = "2.1.0"
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 = ["web-sys?/std"]
wasi-wasite = ["dep:wasite"]
wasm-web = ["dep:web-sys"]
[lib]
name = "whoami"
path = "src/lib.rs"
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi"), not(daku)))'.dependencies.web-sys]
version = "0.3.77"
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"
optional = true
default-features = false
[target.'cfg(all(target_os = "redox", not(target_arch = "wasm32")))'.dependencies.libredox]
version = "0.1.12"
features = ["call"]
default-features = false
[lints.rust.unexpected_cfgs]
level = "allow"
priority = 0
check-cfg = ["cfg(daku)"]