diff options
author | hozan23 <hozan23@karyontech.net> | 2024-06-22 05:21:42 +0200 |
---|---|---|
committer | hozan23 <hozan23@karyontech.net> | 2024-06-22 05:21:42 +0200 |
commit | 741a83e1a59a9ed822ce6d1ab1a82d31a1cc854a (patch) | |
tree | 4fd02b04967aceed1a59b573f8e0b4677e7a9063 /net/async_rustls/Cargo.toml | |
parent | 9aa972dd83a85cec5da71e8e893eb6e07d5db8ca (diff) |
net: compile rustls only if tls feature is enabled
Diffstat (limited to 'net/async_rustls/Cargo.toml')
-rw-r--r-- | net/async_rustls/Cargo.toml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net/async_rustls/Cargo.toml b/net/async_rustls/Cargo.toml new file mode 100644 index 0000000..0d40e8a --- /dev/null +++ b/net/async_rustls/Cargo.toml @@ -0,0 +1,19 @@ +[package] +name = "karyon_async_rustls" +description = "Internal crate for Karyon library." +version.workspace = true +edition.workspace = true +homepage.workspace = true +repository.workspace = true +license.workspace = true +authors.workspace = true + +[features] +default = ["smol"] +smol = ["futures-rustls"] +tokio = ["tokio-rustls"] + +[dependencies] +futures-rustls = { version = "0.25.1", optional = true } +tokio-rustls = { version = "0.26.0", optional = true } + |