plugin_api 1.0.0

A blazing fast package manager and CLI tool.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::{Deserialize, Serialize};
use std::collections::HashMap;

#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct PluginContext {
    pub hook: String,
    pub package_name: String,
    pub package_version: String,
    pub install_path: String,
    pub env: HashMap<String, String>,
}

pub type PluginResult = Result<(), String>;