Crates.io | planetary_core |
lib.rs | planetary_core |
version | 0.1.0 |
source | src |
created_at | 2023-05-02 15:19:03.447216 |
updated_at | 2023-05-02 15:19:03.447216 |
description | SDK to build plugins for planetary |
homepage | https://planetary.kyeboard.me |
repository | https://www.github.com/kyeboard/planetary |
max_upload_size | |
id | 854650 |
size | 21,111 |
A low-code SDK to build awesome plugins for planetary.
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!