Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ members = [
"compio-runtime",
"compio-signal",
"compio-tls",
"compio-ws",
]
resolver = "2"

Expand All @@ -25,6 +26,7 @@ license = "MIT"
repository = "https://github.com/compio-rs/compio"

[workspace.dependencies]
compio = { path = "./compio", version = "0.16.0" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this line is removable now.

compio-buf = { path = "./compio-buf", version = "0.7.0" }
compio-driver = { path = "./compio-driver", version = "0.9.0", default-features = false }
compio-runtime = { path = "./compio-runtime", version = "0.9.0" }
Expand All @@ -38,6 +40,7 @@ compio-log = { path = "./compio-log", version = "0.1.0" }
compio-tls = { path = "./compio-tls", version = "0.7.1", default-features = false }
compio-process = { path = "./compio-process", version = "0.6.0" }
compio-quic = { path = "./compio-quic", version = "0.5.0", default-features = false }
compio-ws = { path = "./compio-ws", version = "0.1.0", default-features = false }

bytes = "1.7.1"
cfg_aliases = "0.2.1"
Expand Down
65 changes: 65 additions & 0 deletions compio-ws/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[package]
name = "compio-ws"
version = "0.1.0"
description = "WebSocket library for the compio runtime"
edition = { workspace = true }
authors = { workspace = true }
readme = { workspace = true }
license = { workspace = true }
repository = { workspace = true }


[dependencies]
rustls = { workspace = true, optional = true, default-features = false }
rustls-native-certs = { version = "0.8", optional = true }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to notice that rustls-platform-verifier is more usable than rustls-native-certs. We use the former in compio-quic.

tungstenite = "0.27.0"
compio-io = { workspace = true }
compio-net = { workspace = true, optional = true }
compio-tls = { workspace = true, optional = true, default-features = false, features = [
"rustls",
] }
compio-buf = { workspace = true }
webpki-roots = { version = "1.0.4", optional = true }
rustls-pemfile = "2.0"
log = "0.4"

[features]
default = []
connect = ["dep:compio-net"]
rustls = ["connect", "dep:compio-tls", "dep:rustls", "compio-tls/rustls"]
rustls-native-certs = ["rustls", "dep:rustls-native-certs"]
webpki-roots = ["rustls", "dep:webpki-roots"]
ring = ["rustls?/ring", "compio-tls?/ring"]


[dev-dependencies]
log = "0.4"
env_logger = "0.11"
compio-net = { workspace = true }
compio-macros = { workspace = true }
futures-channel = { workspace = true }
compio-runtime = { workspace = true }
compio-driver = { workspace = true }

[[example]]
name = "echo_server"
required-features = ["connect"]

[[example]]
name = "client"
required-features = ["connect"]

[[example]]
name = "autobahn-client"
required-features = ["connect"]

[[example]]
name = "autobahn-server"
required-features = ["connect"]

[[example]]
name = "echo_server_tls"
required-features = ["connect", "rustls", "ring"]
[[example]]
name = "client_tls"
required-features = ["connect", "rustls", "ring"]
Loading
Loading