Skip to main content

Crate travsr_plugin_sdk

Crate travsr_plugin_sdk 

Source
Expand description

travsr-plugin-sdk — ergonomic plugin authoring for the Travsr plugin system.

Structs§

Edge
A directed, typed edge between two nodes.
FfiMarker
HandshakeRequest
HandshakeResponse
InvokeRequest
InvokeResponse
Node
A node in the code graph.
NodeId
Opaque, content-addressed identifier for a node in the graph.
ParseRequest
ParseResponse
PluginError
VName
Kythe-style globally unique identifier for a code entity.

Enums§

FfiMarkerKind
Language
Source language of a graph node.
PluginRequest
PluginResponse

Constants§

PROTOCOL_VERSION
Current protocol version. Bump on any breaking wire change.

Traits§

Plugin
Implemented once per language. Stateless and Send+Sync so a single instance is shared across walker threads (in-process) or drives one child process (sidecar).

Functions§

run_plugin
Run the plugin event loop on stdin/stdout. Blocks until stdin closes.