3 releases

0.0.11 Mar 15, 2024
0.0.10 Nov 5, 2023
0.0.6 Oct 27, 2023

#1209 in Development tools

Download history 16/week @ 2024-02-18 15/week @ 2024-02-25 1/week @ 2024-03-03 155/week @ 2024-03-10 17/week @ 2024-03-17 1/week @ 2024-03-24 89/week @ 2024-03-31 2/week @ 2024-04-07

121 downloads per month
Used in 2 crates

MIT license

18KB
382 lines

fsearch-core

fsearch core utils for building plugins in rust.

What You have access to ?

Functions

get_css() -> String;
get_cfg() -> Option<Config>;
get_plugins() -> Vec<PluginConfig>;

plugin_response_to_json(plugin_response: PluginResponse) -> String;

Structs & Enums

pub struct Config {
    /// The look section
    pub look: Option<Look>,
    /// The network section
    pub network: Option<Network>,
}

pub struct PluginConfig {
    /// The name of the plugin
    pub name: String,
    /// Plugin description
    pub description: String,
    /// The command to execute
    pub cmd: String,
    /// Run on any query
    pub run_on_any_query: Option<bool>,
    /// Priority
    /// The priority is used to sort the plugins displayed in the UI default is 0 and max is 3
    pub priority: Option<i32>,
    /// dev mode (not used yet)
    /// This mode will show debug info in the UI
    pub dev: Option<bool>,
}

pub struct PluginResponse {
    pub gtk: Option<Vec<GtkComponent>>,
    pub actions: Option<Vec<PluginAction>>,
}

All these structs can be deserialize

Dependencies

~1–1.8MB
~39K SLoC