Skip to content

Commit 84b8594

Browse files
Remove derive_builder dependency
1 parent d9c41ff commit 84b8594

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

data/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
* Remove builder pattern from `data_channel::Config`.
6+
57
## v0.6.0
68

79
* Increased minimum support rust version to `1.60.0`.

data/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ sctp = { version = "0.8.0", path = "../sctp", package = "webrtc-sctp" }
1818

1919
tokio = { version = "1.19", features = ["full"] }
2020
bytes = "1"
21-
derive_builder = "0.11.2"
2221
log = "0.4.16"
2322
thiserror = "1.0"
2423

data/src/data_channel/mod.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ use tokio::io::{AsyncRead, AsyncWrite, ReadBuf};
1313
use util::marshal::*;
1414

1515
use bytes::{Buf, Bytes};
16-
use derive_builder::Builder;
1716
use std::borrow::Borrow;
1817
use std::fmt;
1918
use std::future::Future;
@@ -27,19 +26,13 @@ use std::task::{Context, Poll};
2726
const RECEIVE_MTU: usize = 8192;
2827

2928
/// Config is used to configure the data channel.
30-
#[derive(Eq, PartialEq, Default, Clone, Debug, Builder)]
29+
#[derive(Eq, PartialEq, Default, Clone, Debug)]
3130
pub struct Config {
32-
#[builder(default)]
3331
pub channel_type: ChannelType,
34-
#[builder(default)]
3532
pub negotiated: bool,
36-
#[builder(default)]
3733
pub priority: u16,
38-
#[builder(default)]
3934
pub reliability_parameter: u32,
40-
#[builder(default)]
4135
pub label: String,
42-
#[builder(default)]
4336
pub protocol: String,
4437
}
4538

media/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ bytes = "1"
2121
displaydoc = "0.2.3"
2222
thiserror = "1.0"
2323
rand = "0.8.5"
24-
derive_builder = "0.11.2"
2524

2625
[dev-dependencies]
2726
criterion = { version = "0.3.5", features = ["html_reports"] }

0 commit comments

Comments
 (0)