Crates.io | skynet-rs |
lib.rs | skynet-rs |
version | 0.1.0 |
source | src |
created_at | 2021-04-08 04:56:57.999308 |
updated_at | 2021-04-08 04:56:57.999308 |
description | Sia Skynet API |
homepage | |
repository | https://github.com/cerebralcourt/skynet-rs |
max_upload_size | |
id | 380682 |
size | 20,970 |
Rust implementation of the Sia Skynet API.
use skynet_rs::{SkynetClient, UploadOptions, DownloadOptions, MetadataOptions};
let client = SkynetClient::default();
let skylink = client.upload_file("hello.txt", UploadOptions::default()).await?;
let data = client.download_data(&skylink, DownloadOptions::default()).await?;
let metadata = client.get_metadata(&skylink, MetadataOptions::default()).await?;