Crates.io | neolite |
lib.rs | neolite |
version | 0.1.5 |
source | src |
created_at | 2024-04-04 04:34:54.556761 |
updated_at | 2024-04-17 02:11:25.355561 |
description | NEO Lite SDK |
homepage | |
repository | https://github.com/BiznetGIO/neolite |
max_upload_size | |
id | 1195859 |
size | 100,180 |
The neolite
SDK makes it easy to work with Biznet Gio's NEO Lite service. With NEO Lite SDK, developers can effortlessly manage and control their VPS instances for hosting websites and applications.
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let url = "https://api.portal.biznetgio.dev/v1/neolites".parse::<http::Uri>()?;
let token = env::var("TOKEN").context("TOKEN env not found.")?;
let config = Config::new(url, &token);
let client = Client::new(config)?;
let keypair = Lite::new(client).keypair().await?;
let key = keypair.create("gandalf0").await?;
println!("{}", key.name);
Ok(())
}
To learn more, see other examples.
git clone https://github.com/BiznetGIO/neolite
cd neolite
# Run unit tests and integration tests
just comply
To learn more read the contributing guide