{"id":16304779,"url":"https://github.com/moznion/radius-rs","last_synced_at":"2025-10-24T07:41:27.461Z","repository":{"id":40236691,"uuid":"315389681","full_name":"moznion/radius-rs","owner":"moznion","description":"An async/await native implementation of the RADIUS server and client for Rust.","archived":false,"fork":false,"pushed_at":"2024-06-21T07:01:33.000Z","size":437,"stargazers_count":88,"open_issues_count":11,"forks_count":14,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-17T23:55:08.211Z","etag":null,"topics":["radius","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moznion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-23T17:25:22.000Z","updated_at":"2024-10-16T05:28:47.000Z","dependencies_parsed_at":"2023-12-09T01:31:07.507Z","dependency_job_id":"1c1b1899-7745-4017-a8de-652688b36bd4","html_url":"https://github.com/moznion/radius-rs","commit_stats":{"total_commits":177,"total_committers":9,"mean_commits":"19.666666666666668","dds":0.2768361581920904,"last_synced_commit":"c6102d664619ea36b2aeccca3697aee7cf10c39a"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Fradius-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Fradius-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Fradius-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Fradius-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moznion","download_url":"https://codeload.github.com/moznion/radius-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509238,"owners_count":20950232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["radius","rust"],"created_at":"2024-10-10T21:04:48.130Z","updated_at":"2025-10-24T07:41:22.406Z","avatar_url":"https://github.com/moznion.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# radius-rs [![Check](https://github.com/moznion/radius-rs/workflows/Check/badge.svg)](https://github.com/moznion/radius-rs/actions) [![crates.io](https://img.shields.io/crates/v/radius.svg)](https://crates.io/crates/radius)\n\nAn async/await native implementation of the RADIUS server and client for Rust. And this also can be used for parsing/constructing (i.e. decoding/encoding) purposes as a RADIUS library.\n\n## Description\n\nThis RADIUS server and client implementation use [tokio](https://tokio.rs/) to support asynchronous operations natively. This implementation satisfies basic functions that are described in [RFC2865](https://tools.ietf.org/html/rfc2865).\n\n## Usage\n\nSimple example implementations are here:\n\n- [server](./examples/server.rs)\n- [client](./examples/client.rs)\n\nThose examples implement a quite simple `Access-Request` processor. You can try those with the following commands.\n\n```\n$ RUST_LOG=debug cargo run --example server\n$ RUST_LOG=debug cargo run --example client # in another shell\n```\n\n## Supported Dictionaries\n\nThis supports the following RFC dictionaries at the moment:\n\n- [RFC2865](https://tools.ietf.org/html/rfc2865)\n- [RFC2866](https://tools.ietf.org/html/rfc2866)\n- [RFC2867](https://tools.ietf.org/html/rfc2867)\n- [RFC2868](https://tools.ietf.org/html/rfc2868)\n- [RFC2869](https://tools.ietf.org/html/rfc2869)\n- [RFC3162](https://tools.ietf.org/html/rfc3162)\n- [RFC3576](https://tools.ietf.org/html/rfc3576)\n- [RFC3580](https://tools.ietf.org/html/rfc3580)\n- [RFC4072](https://tools.ietf.org/html/rfc4072)\n- [RFC4372](https://tools.ietf.org/html/rfc4372)\n- [RFC4603](https://tools.ietf.org/html/rfc4603)\n- [RFC4675](https://tools.ietf.org/html/rfc4675)\n- [RFC4818](https://tools.ietf.org/html/rfc4818)\n- [RFC4849](https://tools.ietf.org/html/rfc4849)\n- [RFC5090](https://tools.ietf.org/html/rfc5090)\n- [RFC5176](https://tools.ietf.org/html/rfc5176)\n- [RFC5607](https://tools.ietf.org/html/rfc5607)\n- [RFC5904](https://tools.ietf.org/html/rfc5904)\n- [RFC6519](https://tools.ietf.org/html/rfc6519)\n- [RFC6572](https://tools.ietf.org/html/rfc6572)\n- [RFC6677](https://tools.ietf.org/html/rfc6677)\n- [RFC6911](https://tools.ietf.org/html/rfc6911)\n- [RFC7055](https://tools.ietf.org/html/rfc7055)\n- [RFC7155](https://tools.ietf.org/html/rfc7155)\n\n## Cryptography method feature option\n\nBy default, this library uses MD5 for authentication.\nStarting from version v0.4.0, it also supports [OpenSSL](https://www.openssl.org/).\n\nIf you prefer to use OpenSSL, please add the following lines to your Cargo.toml:\n\n```toml\n[dependencies]\nradius = { version = \"__version__\", default-features = false, features = [\"openssl\"] }\n```\n\n## Implementation guide for your RADIUS application\n\n### Common\n\n- `Packet` struct represents request packet and response one.\n  - This struct has a list of AVPs.\n  - You can get a specific AVP by RFC dictionary module.\n    - e.g. `rfc2865::lookup_user_name(packet)`\n      - This method returns `Some(Result\u003cString, AVPError\u003e)` if the packet contains `User-Name` attribute.\n      - On the other hand, if the package doesn't have that attribute, it returns `None`.\n  - You can construct a packet with RFC dictionary module.\n    - e.g. `rfc2865::add_user_name(\u0026mut packet, \"user\")`\n      - This method adds a `User-Name` AVP to the packet.\n  - Please refer to the rustdoc for each RFC dictionary module in detail.\n\n### Server\n\n- Must implement `RequestHandler\u003cT, E\u003e` interface.\n  - This interface method is the core function of the server application what you need.\n- Please refer also to the example implementation: [server](./examples/server.rs)\n\n### Client\n\n- Please refer also to the example implementation: [client](./examples/client.rs)\n\n## Roadmap\n\n- Support the following RFC dictionaries:\n  - rfc4679\n  - rfc5447\n  - rfc5580\n  - rfc6929\n  - rfc6930\n  - rfc7268\n  - rfc7499\n  - rfc7930\n  - rfc8045\n  - rfc8559\n\n## Development guide for this library\n\n### How to generate code from dictionary\n\n```shell\n$ make gen\n```\n\n`code-generator` sub project has the responsibility to generate the Rust code according to\ngiven RFC dictionary files. The dictionary files are in `dicts` directory.\n\nThe format of the dictionary files respect the [FreeRADIUS project's ones](https://github.com/FreeRADIUS/freeradius-server/tree/master/share/dictionary/radius).\n\n## Note\n\nThe original implementation and design of this are inspired by [layeh/radius](https://github.com/layeh/radius).\n\n## Author\n\nmoznion (\u003cmoznion@gmail.com\u003e)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Fradius-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoznion%2Fradius-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Fradius-rs/lists"}