Crates.io | faster-stun |
lib.rs | faster-stun |
version | 1.0.2 |
source | src |
created_at | 2023-01-01 05:32:58.713473 |
updated_at | 2023-12-24 15:34:34.634831 |
description | Fast and zero-cost stun message decoder and encoder. |
homepage | https://github.com/mycrl/turn-rs |
repository | https://github.com/mycrl/turn-rs |
max_upload_size | |
id | 748731 |
size | 96,400 |
A turn server implemented pure in rust. Compared with coturn, the advantage is that it provides better performance. It can reach a decoding speed of 5Gib/s in a single thread, and the forwarding delay is less than 35 microseconds. However, it does not provide the same With rich functional support like coturn, this project is most suitable for scenarios where stun/turn servers are used in webrtc.
Psyai
(turn-rs has been in service for more than a year without any faults or downtime.)
turn-cli
)proto
)The versions on crates.io and docker may be very outdated. It is recommended to compile directly from the github source code.
cargo install turn-server
Start with configuration file:
turn-server --config=/etc/turn_server/config.toml
Please check the example configuration file for details: turn_server.toml
// docker hub
docker pull quasipaa/turn-server
// github packages
docker pull ghcr.io/mycrl/turn-server
The custom configuration file overrides the /etc/turn-server/config.toml
path inside the image through -v
.
./install-service.sh
This will compile the project and install and start the service.
You need to install the Rust toolchain, if you have already installed it, you can skip it, Install Rust, then get the source code:
git clone https://github.com/mycrl/turn-rs
Compile the entire workspace in release mode:
cd turn-rs
cargo build --release
After the compilation is complete, you can find the binary file in the "target/release"
directory.
GPL3.0 Copyright (c) 2022 Mr.Panda.