-
Notifications
You must be signed in to change notification settings - Fork 18
/
Cargo.toml
36 lines (30 loc) · 868 Bytes
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[package]
name = "hostname"
version = "0.4.0"
description = "Cross-platform system's host name functions"
categories = ["api-bindings", "os"]
keywords = ["hostname", "gethostname", "sethostname"]
authors = [
"fengcen <fengcen.love@gmail.com>",
"svartalf <self@svartalf.info>"
]
repository = "https://github.com/svartalf/hostname"
readme = "README.md"
license = "MIT"
edition = "2021"
rust-version = "1.67"
[features]
default = []
# Enables the `hostname::set` function
set = []
[dependencies]
cfg-if = "^1.0"
[target.'cfg(any(unix, target_os = "redox"))'.dependencies]
libc = "^0.2"
[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "^0.52", features = ["Win32_Foundation", "Win32_System_SystemInformation"] }
[dev-dependencies]
version-sync = "0.9"
[package.metadata.docs.rs]
features = ["set"]
rustdoc-args = ["--cfg", "docsrs"]