grr-plugin

Crates.iogrr-plugin
lib.rsgrr-plugin
version0.2.0
sourcesrc
created_at2022-01-31 20:27:58.179373
updated_at2022-02-08 18:00:24.524294
descriptionA Rust-based go-plugin implementation, to allow Rust plugins into Go programs.
homepage
repository
max_upload_size
id524772
size59,991
Archis (archisgore)

documentation

README

Build Status

grr-plugin-server

Hashicorp's go-plugin, for now, only server side (Plugin side) implemented in Rust.

This will allow Rust-based gRPC plugins to be consumed by go programs.

This repo is still being built. The authoritative usage of this crate is in the Landslide Custom VM for the Avalanche blockchain.

I can imagine this being used for Rust-based plugins for other Hashicorp tools such as Terraform and so forth. I'm sadly not plugged into that ecosystem.

Basic usage looks like:

    let plugin = Server::new(1, HandshakeConfig{
        magic_cookie_key: "foo".to_string(),
        magic_cookie_value: "bar".to_string(),
    });

    plugin.serve(service).await?;
Commit count: 0

cargo fmt