Skip to content

Simple API client example in Rust that retrieves a list of collections

License

Notifications You must be signed in to change notification settings

lab5e/rust-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

spanapi = { git = "https://github.com/lab5e/rust-spanapi" }
futures = "0.3"
tokio = { version = "1", features = ["macros", "rt-multi-thread" ] }

About

Simple API client example in Rust that retrieves a list of collections

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages