Mercurial > crates > systemd-socket
annotate Cargo.toml @ 13:f740dadd2948
Added enable_systemd feature
This feature makes systemd support optional, on by default. While it may
seem strange that this feature exists, it makes sense for authors of
applications who want to make systemd optional. Thanks to this feature
the interface stays the same, it just fails to parse `systemd://`
addresses with a helpful error message.
author | Martin Habovstiak <martin.habovstiak@gmail.com> |
---|---|
date | Thu, 03 Dec 2020 16:34:09 +0100 |
parents | 4479770c2275 |
children | 2039b5d39d72 |
rev | line source |
---|---|
0 | 1 [package] |
2 name = "systemd_socket" | |
3 version = "0.1.0" | |
4 authors = ["Martin Habovstiak <martin.habovstiak@gmail.com>"] | |
5 edition = "2018" | |
6 | |
7 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
8 | |
9 [features] | |
13
f740dadd2948
Added enable_systemd feature
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
12
diff
changeset
|
10 default = ["enable_systemd"] |
0 | 11 serde = ["serde_crate", "serde_str_helpers"] |
13
f740dadd2948
Added enable_systemd feature
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
12
diff
changeset
|
12 enable_systemd = [] |
0 | 13 |
13
f740dadd2948
Added enable_systemd feature
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
12
diff
changeset
|
14 [target.'cfg(all(target_os = "linux", feature = "enable_systemd"))'.dependencies] |
6
a7893294e9b2
Make the crate compilable on non-linux systems
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
4
diff
changeset
|
15 libsystemd = "0.2.1" |
a7893294e9b2
Make the crate compilable on non-linux systems
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
4
diff
changeset
|
16 |
0 | 17 [dependencies] |
12
4479770c2275
Decrease version requirement on thiserror
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
10
diff
changeset
|
18 thiserror = "1.0.21" |
10
c9f42be465ca
Decrease version requirement for serde
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
9
diff
changeset
|
19 serde_crate = { package = "serde", version = "1.0.116", optional = true, features = ["derive"] } |
9
4fb70ca820a6
Upgrade serde_str_helpers
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
6
diff
changeset
|
20 serde_str_helpers = { version = "0.1.2", optional = true } |
0 | 21 parse_arg = { version = "0.1.4", optional = true } |
22 lazy_static = "1.4.0" | |
4
66c0e10c89fc
Support resolving hostnames
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
0
diff
changeset
|
23 tokio_0_2 = { package = "tokio", version = "0.2", optional = true, features = ["tcp", "dns"] } |
0 | 24 tokio_0_3 = { package = "tokio", version = "0.3", optional = true, features = ["net"] } |
25 async-std = { version = "1.7.0", optional = true } |