DEV Community

moznion
moznion

Posted on

Released radius-rs: an async/await native RADIUS implementation for Rust

I've published an implementation of the RADIUS server and client for Rust.

GitHub logo moznion / radius-rs

An async/await native implementation of the RADIUS server and client for Rust.

And this is also available on crates.io: https://crates.io/crates/radius

RADIUS is one of the major protocols for AAA (Authentication, Authorization and Accounting). According to the Wikipedia article:

Remote Authentication Dial-In User Service (RADIUS) is a networking protocol, operating on ports 1812 and 1813, that provides centralized Authentication, Authorization, and Accounting (AAA or Triple A) management for users who connect and use a network service.

This library aims to provide the functions of that protocol for Rust programming language.

The feature of this implementation is async/await native functions powered by tokio.
And this implementation and design is based on layeh/radius, this is a RADIUS implementation for golang, so it can generate the Rust code to make the RADIUS applications by giving the dictionary files of FreeRADIUS.

A simple example for the server and client is here:

Please use this library when you implement the RADIUS application in Rust!
And if you have some troubles, questions and etc on this library, please feel free to open an issue.

Enjoy!

Top comments (0)