Rust Authentication Libraries

Libraries for Rust

GitHub Star Comparison

Rust Authentication Libraries GitHub Star Comparison
NoNameGitHub StarsDescriptionTrendLicenseTypeOfficial Site
1jsonwebtoken⭐ 1.9kHigh-performance JWT implementation library for Rust. Supports signature algorithms like HS256, RS256 with type-safe token processingRapid growth as top candidate for Rust authentication library. Expanding adoption in development prioritizing performance and safetyMITJWT TokenOfficial
2oauth2⭐ 1.1kExtensible OAuth2 client library for Rust. Supports flows including Authorization Code and Client CredentialsStandard choice for OAuth2 integration in Rust web applications. Valued for excellent type safety and error handlingMITOAuth2 ImplementationOfficial
3axum-login⭐ 891Login library for Axum web framework. Provides session management and user authentication as Axum middlewareRising attention with rapid growth of Axum framework. Authentication solution in modern Rust asynchronous web developmentMITFramework-Specific AuthOfficial
4actix-identity⭐ 858Identity management middleware for Actix Web. Supports session-based and cookie-based authenticationExpanding demand with rising popularity of Actix Web framework. Adopted as authentication solution in high-speed Web API developmentMITSession ManagementOfficial
5tower-sessions⭐ 365Session management library for Tower ecosystem. Provides type-safe and composable session handlingRising attention in Axum and Tower-based application development. New choice in modern Rust web developmentMITComposable SessionsOfficial
6argon2-Argon2 password hashing library for Rust. Provides secure password storage and hash verification functionalityRecommended password hashing method in security-focused development. Expanding adoption due to Argon2's industry standardizationMITCryptographic HashingOfficial