Skip to content

Commit

Permalink
Refactor everything to more idiomatic Rust (#2)
Browse files Browse the repository at this point in the history
Additionally:
- bump up MSRV to 1.74

Co-authored-by: Kai Ren <tyranron@gmail.com>
  • Loading branch information
alexlapa and tyranron authored Jul 9, 2024
1 parent f260451 commit a66b29d
Show file tree
Hide file tree
Showing 19 changed files with 2,012 additions and 2,115 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
strategy:
fail-fast: false
matrix:
msrv: ["1.70.0"]
msrv: ["1.74.0"]
os: ["ubuntu", "macOS", "windows"]
runs-on: ${{ matrix.os }}-latest
steps:
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ All user visible changes to this project will be documented in this file. This p

### Initially re-implemented

- Performed major refactoring with non-server code removing. ([#1])
- Performed major refactoring with non-server code removing. ([#1], [#2])
- Added TCP transport. ([#1])

### [Upstream changes](https://github.com/webrtc-rs/webrtc/blob/89285ceba23dc57fc99386cb978d2d23fe909437/turn/CHANGELOG.md#unreleased)
Expand All @@ -21,6 +21,7 @@ All user visible changes to this project will be documented in this file. This p

[@clia]: https://github.com/clia
[#1]: /../../pull/1
[#2]: /../../pull/2
[webrtc-rs/webrtc#330]: https://github.com/webrtc-rs/webrtc/pull/330
[webrtc-rs/webrtc#421]: https://github.com/webrtc-rs/webrtc/pull/421

Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name = "medea-turn"
version = "0.7.0-dev"
authors = ["Instrumentisto Team <developer@instrumentisto.com>"]
edition = "2021"
rust-version = "1.70"
description = "TURN implementation used by Medea media server."
rust-version = "1.74"
description = "STUN/TURN server implementation used by Medea media server."
license = "MIT OR Apache-2.0"
homepage = "https://github.com/instrumentisto/medea-turn-rs"
repository = "https://github.com/instrumentisto/medea-turn-rs"
Expand All @@ -14,11 +14,11 @@ publish = false
async-trait = "0.1"
bytecodec = "0.4.15"
bytes = "1.6"
derive_more = { version = "1.0.0-beta.6", features = ["debug", "display", "error", "from"] }
futures = "0.3"
log = "0.4"
rand = "0.8"
stun_codec = "0.3"
thiserror = "1.0"
tokio = { version = "1.32", default-features = false, features = ["io-util", "macros", "net", "rt-multi-thread", "time"] }
tokio-util = { version = "0.7", features = ["codec"] }

Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
============

[![CI](https://github.com/instrumentisto/medea-turn-rs/workflows/CI/badge.svg?branch=main "CI")](https://github.com/instrumentisto/medea-turn-rs/actions?query=workflow%3ACI+branch%3Amain)
[![Rust 1.70+](https://img.shields.io/badge/rustc-1.70+-lightgray.svg "Rust 1.70+")](https://blog.rust-lang.org/2023/06/01/Rust-1.70.0.html)

[![Rust 1.74+](https://img.shields.io/badge/rustc-1.74+-lightgray.svg "Rust 1.74+")](https://blog.rust-lang.org/2023/11/16/Rust-1.74.0.html)

[Changelog](https://github.com/instrumentisto/medea-turn-rs/blob/master/CHANGELOG.md)

TURN implementation used by [Medea media server](https://github.com/instrumentisto/medea). Majorly refactored fork of the [`webrtc-rs/turn` crate](https://github.com/webrtc-rs/webrtc/tree/89285ceba23dc57fc99386cb978d2d23fe909437/turn).
[STUN]/[TURN] implementation used by [Medea media server](https://github.com/instrumentisto/medea). Majorly refactored fork of the [`webrtc-rs/turn` crate](https://github.com/webrtc-rs/webrtc/tree/89285ceba23dc57fc99386cb978d2d23fe909437/turn).

Hard fork of [`webrtc-rs/turn` crate](https://docs.rs/turn).



Expand All @@ -25,3 +26,5 @@ Unless you explicitly state otherwise, any contribution intentionally submitted

[APACHE]: https://github.com/instrumentisto/medea-turn-rs/blob/main/LICENSE-APACHE
[MIT]: https://github.com/instrumentisto/medea-turn-rs/blob/main/LICENSE-MIT
[STUN]: https://en.wikipedia.org/wiki/STUN
[TURN]: https://en.wikipedia.org/wiki/TURN
Loading

0 comments on commit a66b29d

Please sign in to comment.