Skip to content

Latest commit

Β 

History

History
129 lines (95 loc) Β· 2.54 KB

File metadata and controls

129 lines (95 loc) Β· 2.54 KB

crydensync-rs - Rust SDK

Status License Rust Version

πŸ”— Quick Links

🎯 Purpose

Native Rust SDK for CrydenSync. Type-safe, async-first, ergonomic authentication.

πŸ“Š Status

  • Phase: Planning
  • Progress: 0%
  • Target: After api v1.0.0

πŸ—ΊοΈ Roadmap

v1.0.0

  • HTTP client (reqwest)
  • Type-safe API
  • Async support
  • Signup endpoint
  • Login endpoint
  • Token verification
  • Error handling

v1.1.0

  • Session management
  • Logout endpoint
  • Refresh token
  • Actix-web middleware
  • Axum middleware

v1.2.0

  • WebAssembly support
  • Rocket middleware
  • Rate limiting helpers

πŸ”§ Development

# 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:

  1. Read CONTRIBUTING.md
  2. Check open issues
  3. 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.