Mercurial > crates > systemd-socket
annotate Cargo.toml @ 17:dfb727367934
Allow specifying systemd name directly
When an application has systemd name by parsing a configuration directly
it can use the function added in this change to construct `SocketAddr`
without having to allocate an intermediate string.
author | Martin Habovstiak <martin.habovstiak@gmail.com> |
---|---|
date | Tue, 22 Dec 2020 14:15:49 +0100 |
parents | bc76507dd878 |
children | 77dc1c45b424 |
rev | line source |
---|---|
0 | 1 [package] |
2 name = "systemd_socket" | |
3 version = "0.1.0" | |
4 authors = ["Martin Habovstiak <martin.habovstiak@gmail.com>"] | |
14
2039b5d39d72
Publish 0.1.0
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
13
diff
changeset
|
5 description = "A convenience crate for optionally supporting systemd socket activation." |
2039b5d39d72
Publish 0.1.0
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
13
diff
changeset
|
6 homepage = "https://github.com/Kixunil/systemd_socket" |
2039b5d39d72
Publish 0.1.0
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
13
diff
changeset
|
7 repository = "https://github.com/Kixunil/systemd_socket" |
2039b5d39d72
Publish 0.1.0
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
13
diff
changeset
|
8 readme = "README.md" |
2039b5d39d72
Publish 0.1.0
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
13
diff
changeset
|
9 keywords = ["systmed", "socket-activation"] |
2039b5d39d72
Publish 0.1.0
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
13
diff
changeset
|
10 categories = ["api-bindings", "config", "os::linux-apis"] |
0 | 11 edition = "2018" |
14
2039b5d39d72
Publish 0.1.0
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
13
diff
changeset
|
12 license = "MITNFA" |
2039b5d39d72
Publish 0.1.0
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
13
diff
changeset
|
13 |
0 | 14 |
15 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
16 | |
17 [features] | |
13
f740dadd2948
Added enable_systemd feature
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
12
diff
changeset
|
18 default = ["enable_systemd"] |
0 | 19 serde = ["serde_crate", "serde_str_helpers"] |
16
bc76507dd878
Fixed conditional compilation based on OS
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
14
diff
changeset
|
20 enable_systemd = ["libsystemd"] |
0 | 21 |
16
bc76507dd878
Fixed conditional compilation based on OS
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
14
diff
changeset
|
22 [target.'cfg(target_os = "linux")'.dependencies] |
bc76507dd878
Fixed conditional compilation based on OS
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
14
diff
changeset
|
23 # WARNING: It is NOT guaranteed that this crate will always use libsystemd as dependency! |
bc76507dd878
Fixed conditional compilation based on OS
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
14
diff
changeset
|
24 # This as a feature is not considered a public interface! |
bc76507dd878
Fixed conditional compilation based on OS
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
14
diff
changeset
|
25 libsystemd = { version = "0.2.1", optional = true } |
6
a7893294e9b2
Make the crate compilable on non-linux systems
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
4
diff
changeset
|
26 |
0 | 27 [dependencies] |
12
4479770c2275
Decrease version requirement on thiserror
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
10
diff
changeset
|
28 thiserror = "1.0.21" |
10
c9f42be465ca
Decrease version requirement for serde
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
9
diff
changeset
|
29 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
|
30 serde_str_helpers = { version = "0.1.2", optional = true } |
0 | 31 parse_arg = { version = "0.1.4", optional = true } |
32 lazy_static = "1.4.0" | |
4
66c0e10c89fc
Support resolving hostnames
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
0
diff
changeset
|
33 tokio_0_2 = { package = "tokio", version = "0.2", optional = true, features = ["tcp", "dns"] } |
0 | 34 tokio_0_3 = { package = "tokio", version = "0.3", optional = true, features = ["net"] } |
35 async-std = { version = "1.7.0", optional = true } |