diff --git a/Cargo.lock b/Cargo.lock index 0e174f6..c750b51 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1050,7 +1050,7 @@ dependencies = [ [[package]] name = "tf-provider" -version = "0.2.0" +version = "0.2.1" dependencies = [ "anyhow", "async-stream", diff --git a/Cargo.toml b/Cargo.toml index 077894b..527008b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ license = "Apache-2.0" readme = "README.md" name = "tf-provider" repository = "https://github.com/aneoconsulting/tf-provider" -version = "0.2.0" +version = "0.2.1" [profile.release] strip = "debuginfo" diff --git a/build.rs b/build.rs index 132a2c9..62b2354 100644 --- a/build.rs +++ b/build.rs @@ -1,7 +1,10 @@ fn main() -> Result<(), Box> { - tonic_build::configure().build_client(false).compile( - &["proto/plugin.proto", "proto/tfplugin6.5.proto"], - &["proto"], - )?; + tonic_build::configure() + .protoc_arg("--experimental_allow_proto3_optional") + .build_client(false) + .compile( + &["proto/plugin.proto", "proto/tfplugin6.5.proto"], + &["proto"], + )?; Ok(()) } diff --git a/src/value.rs b/src/value.rs index 667ef9a..34815c0 100644 --- a/src/value.rs +++ b/src/value.rs @@ -252,8 +252,8 @@ impl Value { /// or call [`unwrap_or`], [`unwrap_or_else`], or [`unwrap_or_default`]. /// /// [`unwrap_or`]: Value::unwrap_or - /// [`unwrap_else`]: Value::unwrap_else - /// [`unwrap_default`]: Value::unwrap_default + /// [`unwrap_or_else`]: Value::unwrap_or_else + /// [`unwrap_or_default`]: Value::unwrap_or_default /// /// # Panics ///