# fauna-api
The Fauna SDK for Rust. It mirrors the [`fauna-api`](https://www.npmjs.com/package/fauna-api) npm package
function for function, and both are released together with the same version.
```toml
[dependencies]
fauna-api = "1"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
```
```rust
use fauna_api::authentification;
#[tokio::main]
async fn main() -> fauna_api::Result<()> {
let key = authentification::authorize_api_key("sk-...").await?;
println!("balance: {}", key.balance);
Ok(())
}
```
Calls go to `https://api.faunakit.com`. Point them at another stack with `fauna_api::set_route("http://localhost:32862")`.
Guides and the API reference are at [docs.faunakit.com](https://docs.faunakit.com).