Mercurial > crates > systemd-socket
view 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 |
line wrap: on
line source
[package] name = "systemd_socket" version = "0.1.0" authors = ["Martin Habovstiak <martin.habovstiak@gmail.com>"] edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] default = ["enable_systemd"] serde = ["serde_crate", "serde_str_helpers"] enable_systemd = [] [target.'cfg(all(target_os = "linux", feature = "enable_systemd"))'.dependencies] libsystemd = "0.2.1" [dependencies] thiserror = "1.0.21" serde_crate = { package = "serde", version = "1.0.116", optional = true, features = ["derive"] } serde_str_helpers = { version = "0.1.2", optional = true } parse_arg = { version = "0.1.4", optional = true } lazy_static = "1.4.0" tokio_0_2 = { package = "tokio", version = "0.2", optional = true, features = ["tcp", "dns"] } tokio_0_3 = { package = "tokio", version = "0.3", optional = true, features = ["net"] } async-std = { version = "1.7.0", optional = true }