tsar-client 0.0.8

Official Rust SDK for TSAR
Documentation
# TSAR Client API

The official Rust SDK for TSAR. Rust is our primary focus, so this SDK will be the most maintained.

## Example Import

```toml
tsar-client = "*"
```

## Example Usage

```rs
use tsar_client::Client;

// Get these credentials from: https://tsar.cc/app/any/settings
const CLIENT_KEY: &str = "MFkwEwY...GAr/ITBqA==";
const APP_ID: &str = "00000000-0000-0000-0000-000000000000";

fn main() {
    let options = ClientOptions {
        app_id: APP_ID,
        client_key: CLIENT_KEY,
        debug_print: true,
    };

    let client = Client::new(options).expect("Failed to initialize client.");

    // If client formed successfully, then the user is authorized
    // Access user info directly from the client

    println!("User ID: {}", client.subscription.user.id);
}
```