Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.12 KB

File metadata and controls

40 lines (30 loc) · 1.12 KB

Getting Started

The current public crate in this repository is xfetch-plugin-api.

Git Dependency

[dependencies]
serde = { version = "1", features = ["derive"] }
xfetch-plugin-api = { git = "https://github.com/xfetch-cli/api", package = "xfetch-plugin-api" }

Local Development

During multi-repo development, you can use a standard Cargo path dependency instead.

[dependencies]
serde = { version = "1", features = ["derive"] }
xfetch-plugin-api = { path = "../api/crates/plugin-api" }

Runtime Model

Plugins are standalone executables. The core writes one JSON request to stdin, the plugin reads it, and the plugin writes one JSON response to stdout.

Next Step