| Crates.io | shadertoy |
| lib.rs | shadertoy |
| version | 0.6.1 |
| created_at | 2017-12-31 18:41:39.10202+00 |
| updated_at | 2018-06-02 23:49:39.608735+00 |
| description | Rust library wrapping the Shadertoy REST API to be able to easily search through and download Shadertoy assets. |
| homepage | |
| repository | https://github.com/repi/shadertoy-browser/tree/master/src/shadertoy |
| max_upload_size | |
| id | 45066 |
| size | 24,896 |
Rust library wrapping the Shadertoy REST API to be able to easily search through and download Shadertoy assets.
In Cargo.toml:
[dependencies]
shadertoy = "0.5"
Example usage:
extern crate shadertoy;
fn test() {
let client = shadertoy::Client::new("Bd8tWD"); // insert your own API key here
let search_params = shadertoy::SearchParams {
string: "car",
sort_order: shadertoy::SearchSortOrder::Love,
filters: vec![],
};
match client.search(&search_params) {
Ok(shader_ids) => println!("\"Car\" shadertoys: {:?}", shader_ids),
Err(err) => println!("Search failed: {}", err),
}
}
TODO
Licensed under either of the following, at your option:
Contributions are welcome! Please note that your contributions are assumed to be dual-licensed under Apache-2.0/MIT.