1 | [package] |
2 | name = "gethostname" |
3 | description = "gethostname for all platforms" |
4 | readme = "README.md" |
5 | homepage = "https://github.com/lunaryorn/gethostname.rs" |
6 | repository = "https://github.com/lunaryorn/gethostname.rs.git" |
7 | documentation = "https://docs.rs/gethostname" |
8 | version = "0.3.0" |
9 | authors = ["Sebastian Wiesner <sebastian@swsnr.de>" ] |
10 | edition = "2021" |
11 | license = "Apache-2.0" |
12 | keywords = ["gethostname" , "DNS" , "hostname" ] |
13 | categories = ["os" , "api-bindings" ] |
14 | |
15 | [target.'cfg(not(windows))'.dependencies] |
16 | libc = "^0.2" |
17 | |
18 | [target.'cfg(windows)'.dependencies] |
19 | winapi = { version = "^0.3" , features = ["sysinfoapi" ] } |
20 | |