Skip to main content

Crate nxd_plugin_protocol

Crate nxd_plugin_protocol 

Source

Modules§

v1

Structs§

EventSequencer
ProgressBatcher
ProgressReporter
Unlimited timed flushes so multi-minute builds keep streaming.
SensitiveTextRedactor
Language-neutral safe_message policy helper for bundled Rust providers and core.

Enums§

ProtocolError

Constants§

MAX_EVENTS
Hard cap on retained apply events. Progress is streamed/logged; only the terminal Completed event must be retained for confidential outputs.
MAX_MESSAGE_BYTES
MAX_PROGRESS_MESSAGE_BYTES
Progress/detail body payloads (DATA frames). Smaller than MAX_MESSAGE_BYTES so one event stays cheap to buffer on the wire.
MAX_STATUS_MESSAGE_BYTES
gRPC status/trailers live in HTTP/2 HEADERS frames. Keep well under the default SETTINGS_MAX_HEADER_LIST_SIZE (~16–64 KiB) so large Nix stderr cannot GOAWAY the plugin connection with header_list_way_too_large.
PROTOCOL_VERSION

Functions§

redact_sensitive_text
schema_digest
Stable content digest for provider resource schema bytes.
truncate_progress_message
Truncate a progress/detail message for ApplyResponse DATA frames. Progress chunks already batch recent lines; keep the head of each chunk.
truncate_status_message
Truncate a human message for gRPC Status / trailers (HEADERS).
validate_canonical_json
validate_context
validate_metadata