Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Plugin
✓ use nu_plugin::Plugin;
Defines a minimal Nushell plugin that passes input through.
use nu_plugin::{Plugin, EvaluatedCall, EngineInterface};
use nu_protocol::{LabeledError, Value};
struct MyPlugin;
impl Plugin for MyPlugin {
fn name(&self) -> &str { "my_plugin" }
fn signature(&self) -> Vec<nu_protocol::Signature> { vec![] }
fn run(&self, engine: &EngineInterface, call: &EvaluatedCall, input: &Value) -> Result<Value, LabeledError> {
Ok(input.clone())
}
}
fn main() {
nu_plugin::serve_plugin(&MyPlugin);
}
Upgrade
Version history
0.110.0latest on crates.io
Audit
Dependencies
No dependency data recorded yet.