Skip to content

Commit

Permalink
Fix docs.rs build
Browse files Browse the repository at this point in the history
  • Loading branch information
lemaitre-aneo committed Jun 17, 2024
1 parent 71b27e0 commit 6e3715f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
11 changes: 7 additions & 4 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
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(())
}
4 changes: 2 additions & 2 deletions src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ impl<T> Value<T> {
/// 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
///
Expand Down

0 comments on commit 6e3715f

Please sign in to comment.