Mercurial > crates > systemd-socket
annotate Cargo.toml @ 21:f6334887e3c8
Support `tokio` 1.0
Tokio 1.0 was already out for a while and this adds the missing support
for it. Deprecation of 0.2 and 0.3 is planned but they are staying for
now.
author | Martin Habovstiak <martin.habovstiak@gmail.com> |
---|---|
date | Sat, 13 Jul 2024 15:09:13 +0200 |
parents | 2b78a483f84b |
children | f33e2c048104 |
rev | line source |
---|---|
0 | 1 [package] |
2 name = "systemd_socket" | |
19
77dc1c45b424
Release 0.1.1
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
16
diff
changeset
|
3 version = "0.1.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! |
20
2b78a483f84b
Update `libsystemd`
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
19
diff
changeset
|
25 libsystemd = { version = ">= 0.3.0, < 0.8.0", 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" | |
21
f6334887e3c8
Support `tokio` 1.0
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
20
diff
changeset
|
33 tokio = { package = "tokio", version = "1.0.0", optional = true, features = ["net"] } |
4
66c0e10c89fc
Support resolving hostnames
Martin Habovstiak <martin.habovstiak@gmail.com>
parents:
0
diff
changeset
|
34 tokio_0_2 = { package = "tokio", version = "0.2", optional = true, features = ["tcp", "dns"] } |
0 | 35 tokio_0_3 = { package = "tokio", version = "0.3", optional = true, features = ["net"] } |
36 async-std = { version = "1.7.0", optional = true } |