Native Rust SDK for CrydenSync. Type-safe, async-first, ergonomic authentication.
- Phase: Planning
- Progress: 0%
- Target: After api v1.0.0
- HTTP client (reqwest)
- Type-safe API
- Async support
- Signup endpoint
- Login endpoint
- Token verification
- Error handling
- Session management
- Logout endpoint
- Refresh token
- Actix-web middleware
- Axum middleware
- WebAssembly support
- Rocket middleware
- Rate limiting helpers
# Clone
git clone https://github.com/crydensync/sdk-rust
cd sdk-rust
# Build
cargo build
# Test
cargo test
# Run example
cargo run --example basic📦 Usage
use crydensync::Cryden;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Cryden::new("https://api.crydensync.com");
// Sign up
let user = client.auth()
.sign_up("alice@example.com", "SecurePass123")
.await?;
// Login
let tokens = client.auth()
.login("alice@example.com", "SecurePass123")
.await?;
// Verify token
let user_id = client.auth()
.verify(&tokens.access_token)
.await?;
Ok(())
}🔗 Dependencies
Crate Purpose Version reqwest HTTP client 0.11 serde Serialization 1.0 serde_json JSON handling 1.0 thiserror Error handling 1.0 async-trait Async traits 0.1
🆘 Getting Help
· Documentation: docs.crydensync.com · Issues: GitHub Issues · Discussions: GitHub Discussions · Discord: Join our server (coming soon)
🤝 Contributing
We welcome contributions! Please:
- Read CONTRIBUTING.md
- Check open issues
- Join Discord
Current needs:
· 🦀 HTTP client implementation · 🧪 Integration tests · 📝 Documentation · 🔌 Framework middleware (Actix, Axum, Rocket)
📄 License
MIT © CrydenSync
This is open source software. Use it freely, modify it, share it.