1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//! 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.
/// 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.
// Generated at build time from `proto/tfplugin{5,6}.proto`. The .proto
// files are vendored from OpenTofu's `internal/tfplugin{5,6}/` and
// published under MPL-2.0 explicitly for plugin authors to copy.
/// tfplugin5 v5.10 — deprecated but still produced by older providers.
/// Generated by tonic-build from `proto/tfplugin5.proto`.
/// tfplugin6 — current; required for sensitive-mark propagation,
/// nested attribute types, optional-required-computed expression.
/// Generated by tonic-build from `proto/tfplugin6.proto`.