6 releases

0.1.5 Apr 17, 2024
0.1.4 Apr 4, 2024

#3 in #lite

Download history 306/week @ 2024-04-01 6/week @ 2024-04-08 159/week @ 2024-04-15

471 downloads per month

MIT license

32KB
847 lines

neolite

NEO Lite SDK.


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.

Usage

#[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.

Development

git clone https://github.com/BiznetGIO/neolite
cd neolite

# Run unit tests and integration tests
just comply

Contributing

To learn more read the contributing guide

Dependencies

~5–18MB
~264K SLoC