Skip to content

Commit 242db9d

Browse files
authored
release minor versions of data, sctp and dtls crates (#346)
* bump minor versions for dtls, data and sctp crates * bump versions in Cargo.toml * rename no-run attribute to no_run * fix `sample_writer` example * bring back v prefix
1 parent d897e47 commit 242db9d

File tree

9 files changed

+52
-33
lines changed

9 files changed

+52
-33
lines changed

data/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
## Unreleased
44

5+
## v0.5.1
6+
57
* Increased minimum support rust version to `1.60.0`.
68
* Do not loose data in `PollDataChannel::poll_write` [#341](https://github.com/webrtc-rs/webrtc/pull/341).
79
* `PollDataChannel::poll_shutdown`: make sure to flush any writes before shutting down [#340](https://github.com/webrtc-rs/webrtc/pull/340)
810

9-
## 0.5.0
11+
## v0.5.0
1012

1113
* [#16 [PollDataChannel] reset shutdown_fut future after done](https://github.com/webrtc-rs/data/pull/16) by [@melekes](https://github.com/melekes).
1214
* Increase min verison of `log` dependency to `0.4.16`. [#250 Fix log at ^0.4.16 to make tests compile](https://github.com/webrtc-rs/webrtc/pull/250) by [@k0nserv](https://github.com/k0nserv).

data/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "webrtc-data"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
authors = ["Rain Liu <[email protected]>"]
55
edition = "2018"
66
description = "A pure Rust implementation of WebRTC DataChannel API"
@@ -14,7 +14,7 @@ rust-version = "1.60.0"
1414

1515
[dependencies]
1616
util = { version = "0.6.0", path = "../util", package = "webrtc-util", default-features = false, features = ["conn", "marshal"] }
17-
sctp = { version = "0.6.1", path = "../sctp", package = "webrtc-sctp" }
17+
sctp = { version = "0.6.2", path = "../sctp", package = "webrtc-sctp" }
1818

1919
tokio = { version = "1.19", features = ["full"] }
2020
bytes = "1"

dtls/CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
## Unreleased
44

5-
* Increased minimum support rust version to `1.60.0`.
6-
* Add `RTCCertificate::from_pem` and `RTCCertificate::serialize_pem` (only work with `pem` feature enabled) [#333]
5+
## v0.6.1
76

8-
[#333]: https://github.com/webrtc-rs/webrtc/pull/333
7+
* Increased minimum support rust version to `1.60.0`.
8+
* Add `RTCCertificate::from_pem` and `RTCCertificate::serialize_pem` (only work with `pem` feature enabled) [#333](https://github.com/webrtc-rs/webrtc/pull/333)
99

1010
## v0.6.0
1111

dtls/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "webrtc-dtls"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
authors = ["Rain Liu <[email protected]>"]
55
edition = "2018"
66
description = "A pure Rust implementation of DTLS"

sctp/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+
## v0.6.2
6+
57
* Increased minimum support rust version to `1.60.0`.
68
* Do not loose data in `PollStream::poll_write` [#341](https://github.com/webrtc-rs/webrtc/pull/341).
79
* `PollStream::poll_shutdown`: make sure to flush any writes before shutting down [#340](https://github.com/webrtc-rs/webrtc/pull/340)

sctp/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "webrtc-sctp"
3-
version = "0.6.1"
3+
version = "0.6.2"
44
authors = ["Rain Liu <[email protected]>"]
55
edition = "2018"
66
description = "A pure Rust implementation of SCTP"

webrtc/CHANGELOG.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,21 @@ directions that should not send. [#316](https://github.com/webrtc-rs/webrtc/pull
1616

1717
#### Breaking changes
1818

19-
* Allow one single direction for extmap matching. [#321](https://github.com/webrtc-rs/webrtc/pull/321). API
20-
change for MediaEngine::register_header_extension
21-
* Removes support for Plan-B. All major implementations of WebRTC now support unified and continuing support for plan-b is an undue maintenance burden when unified can be used. See [“Unified Plan” Transition Guide (JavaScript)](https://docs.google.com/document/d/1-ZfikoUtoJa9k-GZG1daN0BU3IjIanQ_JSscHxQesvU/) for an overview of the changes required to migrate. [#320](https://github.com/webrtc-rs/webrtc/pull/320) by [@algesten](https://github.com/algesten).
22-
23-
#### Breaking changes
24-
25-
* Remove 2nd argument from `RTCCertificate::from_pem` and guard it with `pem` feature [#333]
26-
* Rename `RTCCertificate::pem` to `serialize_pem` and guard it with `pem` feature [#333]
27-
* Remove `RTCCertificate::expires` [#333]
19+
* Allowed one single direction for extmap matching. [#321](https://github.com/webrtc-rs/webrtc/pull/321).
20+
API change for `MediaEngine::register_header_extension`.
21+
* Removed support for Plan-B. All major implementations of WebRTC now support unified and continuing support for plan-b is an undue maintenance burden when unified can be used. See [“Unified Plan” Transition Guide (JavaScript)](https://docs.google.com/document/d/1-ZfikoUtoJa9k-GZG1daN0BU3IjIanQ_JSscHxQesvU/) for an overview of the changes required to migrate. [#320](https://github.com/webrtc-rs/webrtc/pull/320) by [@algesten](https://github.com/algesten).
22+
* Removed 2nd argument from `RTCCertificate::from_pem` and guard it with `pem` feature [#333]
23+
* Renamed `RTCCertificate::pem` to `serialize_pem` and guard it with `pem` feature [#333]
24+
* Removed `RTCCertificate::expires` [#333]
2825
* `RTCCertificate::get_fingerprints` no longer returns `Result` [#333]
2926

3027
[#333]: https://github.com/webrtc-rs/webrtc/pull/333
3128

32-
## 0.5.1
29+
## v0.5.1
3330

3431
* Promote agent lock in ice_gather.rs create_agent() to top level of the function to avoid a race condition. [#290 Promote create_agent lock to top of function, to avoid race condition](https://github.com/webrtc-rs/webrtc/pull/290) contributed by [efer-ms](https://github.com/efer-ms)
3532

36-
## 0.5.0
33+
## v0.5.0
3734

3835
### Changes
3936

webrtc/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ rust-version = "1.60.0"
1414
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1515

1616
[dependencies]
17-
data = { version = "0.5.0", path = "../data", package = "webrtc-data" }
18-
dtls = { version = "0.6.0", path = "../dtls", package = "webrtc-dtls" }
17+
data = { version = "0.5.1", path = "../data", package = "webrtc-data" }
18+
dtls = { version = "0.6.1", path = "../dtls", package = "webrtc-dtls" }
1919
ice = { version = "0.8.0", path = "../ice", package = "webrtc-ice" }
2020
interceptor = { version = "0.8.0", path = "../interceptor" }
2121
mdns = { version = "0.5.0", path = "../mdns", package = "webrtc-mdns" }
2222
media = { version = "0.4.7", path = "../media", package = "webrtc-media" }
2323
rtcp = { version = "0.7.0", path = "../rtcp" }
2424
rtp = { version = "0.6.7", path = "../rtp" }
25-
sctp = { version = "0.6.1", path = "../sctp", package = "webrtc-sctp" }
25+
sctp = { version = "0.6.2", path = "../sctp", package = "webrtc-sctp" }
2626
sdp = { version = "0.5.2", path = "../sdp" }
2727
srtp = { version = "0.9.0", path = "../srtp", package = "webrtc-srtp" }
2828
stun = { version = "0.4.3", path = "../stun" }

webrtc/src/track/track_local/track_local_static_sample.rs

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,36 @@ impl TrackLocalStaticSample {
140140
/// Create a builder for writing samples with additional data.
141141
///
142142
/// # Example
143-
/// ```no-run
144-
/// # use crate::track_local::track_local_static_sample::TrackLocalStaticSample;
145-
/// # let track: TrackLocalStaticSample = todo!();
143+
/// ```no_run
146144
/// use rtp::extension::audio_level_extension::AudioLevelExtension;
147-
/// let result = track
148-
/// .sample_writer()
149-
/// .with_audio_level(AudioLevelExtension {
150-
/// level: 10,
151-
/// voice: true,
152-
/// })
153-
/// .write_sample()
154-
/// .await;
145+
/// use std::time::Duration;
146+
/// use webrtc::api::media_engine::MIME_TYPE_VP8;
147+
/// use webrtc::rtp_transceiver::rtp_codec::RTCRtpCodecCapability;
148+
/// use webrtc::track::track_local::track_local_static_sample::TrackLocalStaticSample;
149+
///
150+
/// #[tokio::main]
151+
/// async fn main() {
152+
/// let track = TrackLocalStaticSample::new(
153+
/// RTCRtpCodecCapability {
154+
/// mime_type: MIME_TYPE_VP8.to_owned(),
155+
/// ..Default::default()
156+
/// },
157+
/// "video".to_owned(),
158+
/// "webrtc-rs".to_owned(),
159+
/// );
160+
/// let result = track
161+
/// .sample_writer()
162+
/// .with_audio_level(AudioLevelExtension {
163+
/// level: 10,
164+
/// voice: true,
165+
/// })
166+
/// .write_sample(&media::Sample{
167+
/// data: bytes::Bytes::new(),
168+
/// duration: Duration::from_secs(1),
169+
/// ..Default::default()
170+
/// })
171+
/// .await;
172+
/// }
155173
/// ```
156174
pub fn sample_writer(&self) -> SampleWriter<'_> {
157175
SampleWriter::new(self)

0 commit comments

Comments
 (0)