https://github.com/lab5e/rust-simple
Simple API client example in Rust that retrieves a list of collections
https://github.com/lab5e/rust-simple
iot lang-rust rust sample span
Last synced: 9 months ago
JSON representation
Simple API client example in Rust that retrieves a list of collections
- Host: GitHub
- URL: https://github.com/lab5e/rust-simple
- Owner: lab5e
- License: apache-2.0
- Created: 2023-12-24T13:02:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-05T10:34:42.000Z (about 2 years ago)
- Last Synced: 2025-02-28T22:38:59.752Z (12 months ago)
- Topics: iot, lang-rust, rust, sample, span
- Language: Rust
- Homepage: https://span.lab5e.com/
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Rust example
This is a very simple example that uses the Span client library. Build the sample with
`cargo build`.
Create a new API token in the [Span dashboard](https://span.lab5e.com/) and run
the sample with `cargo run [api token]`
## Adding the API client dependency
Add the following lines to the `[dependencies]` section of your `Cargo.toml` file:
```text
spanapi = { git = "https://github.com/lab5e/rust-spanapi" }
futures = "0.3"
tokio = { version = "1", features = ["macros", "rt-multi-thread" ] }
```