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
658 changes: 363 additions & 295 deletions Cargo.lock

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions transports/webrtc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ categories = ["network-programming", "asynchronous"]

[dependencies]
async-trait = "0.1"
bytes = { workspace = true }
futures = { workspace = true }
futures-timer = { workspace = true }
hex = "0.4"
Expand All @@ -22,17 +23,17 @@ libp2p-identity = { workspace = true }
libp2p-webrtc-utils = { workspace = true }
multihash = { workspace = true }
rand = { workspace = true }
rcgen = { workspace = true }
rcgen = "0.14"
rtc = { version = "0.20", optional = true }
stun = "0.17"
thiserror = { workspace = true }
tokio = { workspace = true, features = ["net"], optional = true }
tokio-util = { version = "0.7", features = ["compat"], optional = true }
tracing = { workspace = true }
webrtc = { version = "0.17", optional = true }
webrtc = { version = "0.20", default-features = false, features = ["runtime-tokio"], optional = true }

[features]
tokio = ["dep:tokio", "dep:tokio-util", "dep:webrtc", "if-watch/tokio"]
pem = ["webrtc?/pem"]
tokio = ["dep:rtc", "dep:tokio", "dep:webrtc", "if-watch/tokio"]
pem = ["rtc?/pem"]

[dev-dependencies]
libp2p-identity = { workspace = true, features = ["rand"] }
Expand Down
4 changes: 2 additions & 2 deletions transports/webrtc/src/tokio/certificate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// DEALINGS IN THE SOFTWARE.

use rand::{CryptoRng, Rng};
use webrtc::peer_connection::certificate::RTCCertificate;
use webrtc::peer_connection::RTCCertificate;

use crate::tokio::fingerprint::Fingerprint;

Expand Down Expand Up @@ -92,7 +92,7 @@ pub struct Error(#[from] Kind);
#[derive(thiserror::Error, Debug)]
enum Kind {
#[error(transparent)]
InvalidPEM(#[from] webrtc::Error),
InvalidPEM(#[from] webrtc::error::Error),
}

#[cfg(all(test, feature = "pem"))]
Expand Down
Loading
Loading