Skip to main content

Crate magma_protocol

Crate magma_protocol 

Source
Expand description

magma-protocol — tfplugin5.proto + tfplugin6.proto Rust bindings.

The protocol surface every Terraform / OpenTofu provider speaks. Generated at build time by tonic-build from the vendored .proto files in proto/. No hand-written gRPC anywhere else in magma per theory/MAGMA.md §IX anti-patterns.

Until proto files are vendored (M0), this crate exposes placeholder modules so dependent crates compile. Once the build script generates the real bindings, uncomment the include_proto! invocations below.

Modules§

tfplugin5
tfplugin5 v5.10 — deprecated but still produced by older providers. Generated by tonic-build from proto/tfplugin5.proto.
tfplugin6
tfplugin6 — current; required for sensitive-mark propagation, nested attribute types, optional-required-computed expression. Generated by tonic-build from proto/tfplugin6.proto.

Enums§

PluginProtocol
Marker for which provider-plugin protocol version a Plugin speaks. Real gRPC client stubs live under tfplugin5::* and tfplugin6::* once the build script generates them.