1 unstable release

0.1.0 May 2, 2023

#225 in #header

MIT license

22KB
387 lines

CratesIO Badge CratesIO Downloads CratesIO License

Planetary SDK

A low-code SDK to build awesome plugins for planetary.

Getting started

Add planetary_core to Cargo.toml

[dependencies]
planetary_core = "0.1.0"

Then use the SDK in your app

use planetary_core::prelude::*;

pub struct Plugin

impl Powerup<Root> for Plugin {
    fn prepare(&self) -> Result<PlanetaryRequest> {
        Ok(request!("POST", "url", /* headers */, /* Optional Body */))
    }

    fn execute(&self, data: Root) -> PrintableGrid {
        let mut printable = PrintableGrid::new();
        printable
    }
}


fn main() {
    Planetary::run("github", Plugin::new());
}

This is just a relatively a simple example. Read the docs here to understand in detail how to build and publish an awesome plugin!

Dependencies

~4–15MB
~179K SLoC