Skip to content

crydensync/crydensync-sdk-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

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.

About

Official Rust SDK for CrydenSync authentication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors