# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.75.0" name = "just-webrtc-signalling" version = "0.2.1" authors = ["Reece Kibble "] build = "build.rs" exclude = [".git*"] autobins = false autoexamples = false autotests = false autobenches = false description = "Just simple, fast and easy signalling for full-mesh WebRTC connections on native and wasm" documentation = "https://docs.rs/just-webrtc-signalling" readme = "README.md" keywords = [ "webrtc", "peer", "wasm", "networking", "peer-to-peer", ] categories = [ "network-programming", "web-programming", "wasm", "game-development", ] license = "MIT OR Apache-2.0" repository = "https://github.com/uniciant/just-webrtc/tree/main/crates/just-webrtc-signalling" [lib] name = "just_webrtc_signalling" path = "src/lib.rs" [[test]] name = "signalling" path = "tests/signalling.rs" [dependencies.anyhow] version = "1.0" optional = true [dependencies.bincode] version = "1.3" optional = true [dependencies.futures-util] version = "0.3" optional = true [dependencies.log] version = "0.4" optional = true [dependencies.prost] version = "0.13" [dependencies.serde] version = "1.0" optional = true [dependencies.thiserror] version = "1.0" optional = true [dev-dependencies.anyhow] version = "1.0" [dev-dependencies.pretty_env_logger] version = "0.5" [dev-dependencies.tokio] version = "1.36" features = [ "rt", "macros", ] [build-dependencies.tonic-build] version = "0.12" features = [ "prost", "transport", ] default-features = false [features] client = [ "dep:tonic", "dep:tonic-web-wasm-client", "dep:bincode", "dep:thiserror", "dep:anyhow", "dep:futures-util", "dep:serde", "dep:log", ] default = [ "server", "server-web", "client", ] server = [ "dep:tonic", "dep:flume", "dep:async-broadcast", "dep:async-stream", "dep:log", "dep:futures-util", ] server-web = [ "server", "dep:tower-http", "dep:http", "dep:tonic-web", ] [target.'cfg(not(target_arch = "wasm32"))'.dependencies.async-broadcast] version = "0.7.0" optional = true [target.'cfg(not(target_arch = "wasm32"))'.dependencies.async-stream] version = "0.3.5" optional = true [target.'cfg(not(target_arch = "wasm32"))'.dependencies.flume] version = "0.11" features = ["async"] optional = true default-features = false [target.'cfg(not(target_arch = "wasm32"))'.dependencies.http] version = "1.1" optional = true [target.'cfg(not(target_arch = "wasm32"))'.dependencies.tonic] version = "0.12" features = [ "prost", "codegen", "transport", "tls", ] optional = true default-features = false [target.'cfg(not(target_arch = "wasm32"))'.dependencies.tonic-web] version = "0.12" optional = true [target.'cfg(not(target_arch = "wasm32"))'.dependencies.tower-http] version = "0.6" features = ["cors"] optional = true [target.'cfg(target_arch = "wasm32")'.dependencies.tonic] version = "0.12" features = [ "prost", "codegen", ] optional = true default-features = false [target.'cfg(target_arch = "wasm32")'.dependencies.tonic-web-wasm-client] version = "0.6" optional = true