planetary_core

Crates.ioplanetary_core
lib.rsplanetary_core
version0.1.0
sourcesrc
created_at2023-05-02 15:19:03.447216
updated_at2023-05-02 15:19:03.447216
descriptionSDK to build plugins for planetary
homepagehttps://planetary.kyeboard.me
repositoryhttps://www.github.com/kyeboard/planetary
max_upload_size
id854650
size21,111
kyeboard (kyeboard)

documentation

README

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!

Commit count: 0

cargo fmt