[package]
edition = "2021"
name = "sys_traits"
version = "0.1.23"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Trait per function for system related functionality."
readme = "README.md"
license = "MIT"
repository = "https://github.com/dsherret/sys_traits"
[package.metadata.docs.rs]
all-features = true
[features]
default = []
filetime = ["dep:filetime"]
getrandom = ["dep:getrandom"]
libc = ["dep:libc"]
memory = ["dep:parking_lot"]
real = []
serde = ["dep:serde"]
serde_json = [
"dep:serde_json",
"serde",
]
strip_unc = []
wasm = [
"real",
"dep:js-sys",
"dep:wasm-bindgen",
]
winapi = [
"dep:junction",
"dep:windows-sys",
]
[lib]
name = "sys_traits"
path = "src/lib.rs"
[dependencies.filetime]
version = "0.2"
optional = true
[dependencies.parking_lot]
version = "0.12"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.sys_traits_macros]
version = "0.1"
[dev-dependencies.tempfile]
version = "3.14"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.getrandom]
version = "0.2"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"
optional = true
[target.'cfg(target_os = "windows")'.dependencies.junction]
version = "1.2.0"
optional = true
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.59"
features = [
"Win32_Globalization",
"Win32_Storage_FileSystem",
"Win32_System_Com",
"Win32_System_IO",
"Win32_UI_Shell",
"Win32_UI_Shell_Common",
]
optional = true
[target."cfg(unix)".dependencies.libc]
version = "0.2"
optional = true