From 59620f79a11fff63b222e73a62468e83d2a94d77 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Sun, 30 Jun 2024 16:39:24 +0000
Subject: [PATCH] chore(deps): update dependency cargo-component to 0.13.0
(#197)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [cargo-component](https://togithub.com/bytecodealliance/cargo-component) | minor | `0.10.1` -> `0.13.0` |
---
### Release Notes
bytecodealliance/cargo-component (cargo-component)
### [`v0.13.2`](https://togithub.com/bytecodealliance/cargo-component/releases/tag/v0.13.2)
[Compare Source](https://togithub.com/bytecodealliance/cargo-component/compare/v0.13.1...v0.13.2)
#### What's Changed
- Add `cargo component serve` subcommand by [@primoly](https://togithub.com/primoly) in [https://github.com/bytecodealliance/cargo-component/pull/305](https://togithub.com/bytecodealliance/cargo-component/pull/305)
- added wasmtime wasi args for `cargo component serve` by [@calvinrp](https://togithub.com/calvinrp) in [https://github.com/bytecodealliance/cargo-component/pull/308](https://togithub.com/bytecodealliance/cargo-component/pull/308)
#### New Contributors
- [@primoly](https://togithub.com/primoly) made their first contribution in [https://github.com/bytecodealliance/cargo-component/pull/305](https://togithub.com/bytecodealliance/cargo-component/pull/305)
**Full Changelog**: https://github.com/bytecodealliance/cargo-component/compare/v0.13.1...v0.13.2
### [`v0.13.1`](https://togithub.com/bytecodealliance/cargo-component/releases/tag/v0.13.1)
[Compare Source](https://togithub.com/bytecodealliance/cargo-component/compare/v0.13.0...v0.13.1)
#### What's Changed
- More `cargo component new` generator fixes by [@calvinrp](https://togithub.com/calvinrp) in [https://github.com/bytecodealliance/cargo-component/pull/304](https://togithub.com/bytecodealliance/cargo-component/pull/304)
**Full Changelog**: https://github.com/bytecodealliance/cargo-component/compare/v0.13.0...v0.13.1
### [`v0.13.0`](https://togithub.com/bytecodealliance/cargo-component/releases/tag/v0.13.0)
[Compare Source](https://togithub.com/bytecodealliance/cargo-component/compare/v0.12.0...v0.13.0)
#### What's Changed
- set dev version by [@calvinrp](https://togithub.com/calvinrp) in [https://github.com/bytecodealliance/cargo-component/pull/297](https://togithub.com/bytecodealliance/cargo-component/pull/297)
- Bug fixes for targeting a world with resource borrows by [@calvinrp](https://togithub.com/calvinrp) in [https://github.com/bytecodealliance/cargo-component/pull/300](https://togithub.com/bytecodealliance/cargo-component/pull/300)
**Full Changelog**: https://github.com/bytecodealliance/cargo-component/compare/v0.12.0...v0.13.0
### [`v0.12.0`](https://togithub.com/bytecodealliance/cargo-component/releases/tag/v0.12.0)
[Compare Source](https://togithub.com/bytecodealliance/cargo-component/compare/v0.11.0...v0.12.0)
#### What's Changed
- add support for missing settings from wit-bindgen by [@sehnryr](https://togithub.com/sehnryr) in [https://github.com/bytecodealliance/cargo-component/pull/273](https://togithub.com/bytecodealliance/cargo-component/pull/273)
- fix kebab case issue by [@fibonacci1729](https://togithub.com/fibonacci1729) in [https://github.com/bytecodealliance/cargo-component/pull/274](https://togithub.com/bytecodealliance/cargo-component/pull/274)
- Help mesasage improvement ([#138](https://togithub.com/bytecodealliance/cargo-component/issues/138)) by [@chikoski](https://togithub.com/chikoski) in [https://github.com/bytecodealliance/cargo-component/pull/278](https://togithub.com/bytecodealliance/cargo-component/pull/278)
- Update the example to use the latest version of cargo-component by [@rylev](https://togithub.com/rylev) in [https://github.com/bytecodealliance/cargo-component/pull/283](https://togithub.com/bytecodealliance/cargo-component/pull/283)
- fix test assertions after rust upgrade by [@calvinrp](https://togithub.com/calvinrp) in [https://github.com/bytecodealliance/cargo-component/pull/287](https://togithub.com/bytecodealliance/cargo-component/pull/287)
- Add `profile.release` to `Cargo.toml` generated by `cargo component new` by [@calvinrp](https://togithub.com/calvinrp) in [https://github.com/bytecodealliance/cargo-component/pull/289](https://togithub.com/bytecodealliance/cargo-component/pull/289)
- Update install instruction to use --locked by [@fibonacci1729](https://togithub.com/fibonacci1729) in [https://github.com/bytecodealliance/cargo-component/pull/292](https://togithub.com/bytecodealliance/cargo-component/pull/292)
- Update to latest Warg release to support registry federation by [@calvinrp](https://togithub.com/calvinrp) in [https://github.com/bytecodealliance/cargo-component/pull/288](https://togithub.com/bytecodealliance/cargo-component/pull/288)
- removed unused warg-credentials dependency by [@calvinrp](https://togithub.com/calvinrp) in [https://github.com/bytecodealliance/cargo-component/pull/295](https://togithub.com/bytecodealliance/cargo-component/pull/295)
- Warg update 0.7 by [@calvinrp](https://togithub.com/calvinrp) in [https://github.com/bytecodealliance/cargo-component/pull/296](https://togithub.com/bytecodealliance/cargo-component/pull/296)
#### New Contributors
- [@sehnryr](https://togithub.com/sehnryr) made their first contribution in [https://github.com/bytecodealliance/cargo-component/pull/273](https://togithub.com/bytecodealliance/cargo-component/pull/273)
- [@fibonacci1729](https://togithub.com/fibonacci1729) made their first contribution in [https://github.com/bytecodealliance/cargo-component/pull/274](https://togithub.com/bytecodealliance/cargo-component/pull/274)
- [@chikoski](https://togithub.com/chikoski) made their first contribution in [https://github.com/bytecodealliance/cargo-component/pull/278](https://togithub.com/bytecodealliance/cargo-component/pull/278)
- [@calvinrp](https://togithub.com/calvinrp) made their first contribution in [https://github.com/bytecodealliance/cargo-component/pull/287](https://togithub.com/bytecodealliance/cargo-component/pull/287)
**Full Changelog**: https://github.com/bytecodealliance/cargo-component/compare/v0.11.0...v0.12.0
### [`v0.11.0`](https://togithub.com/bytecodealliance/cargo-component/releases/tag/v0.11.0)
[Compare Source](https://togithub.com/bytecodealliance/cargo-component/compare/v0.10.1...v0.11.0)
#### Compatibility
- Wasmtime: 17.0.0+
- WASI: 0.2.0
- Warg (registry support): 0.4.0
#### What's Changed
- Update wit-bindgen and wasm-tools. by [@sunfishcode](https://togithub.com/sunfishcode) in [https://github.com/bytecodealliance/cargo-component/pull/266](https://togithub.com/bytecodealliance/cargo-component/pull/266)
- Synchronize artifact componentization. by [@peterhuene](https://togithub.com/peterhuene) in [https://github.com/bytecodealliance/cargo-component/pull/270](https://togithub.com/bytecodealliance/cargo-component/pull/270)
- Bump version to 0.11.0. by [@peterhuene](https://togithub.com/peterhuene) in [https://github.com/bytecodealliance/cargo-component/pull/271](https://togithub.com/bytecodealliance/cargo-component/pull/271)
**Full Changelog**: https://github.com/bytecodealliance/cargo-component/compare/v0.10.1...v0.11.0
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
â™» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/andrzejressel/pulumi-wasm).
---
.../fixtures/example/common/src/bindings.rs | 20 ++-
.../fixtures/example/main/src/bindings.rs | 24 +++-
.../example/provider_a/src/bindings.rs | 22 +++-
justfile | 2 +-
.../src/bindings.rs | 69 ++++++++---
.../pulumi_wasm_provider_docker/src/lib.rs | 4 -
.../src/lib.rs | 4 -
.../src/bindings.rs | 55 ++++++---
.../pulumi_wasm_provider_random/src/lib.rs | 4 -
.../src/lib.rs | 4 -
pulumi_wasm/src/bindings.rs | 114 ++++++++++++++----
.../src/output/provider/lib.rs.handlebars | 4 -
.../src/output/rust/lib.rs.handlebars | 4 -
.../output/command_provider/lib/src/lib.rs | 4 -
.../command_provider/provider/src/bindings.rs | 35 ++++--
.../command_provider/provider/src/lib.rs | 4 -
.../output/docker_provider/lib/src/lib.rs | 4 -
.../docker_provider/provider/src/bindings.rs | 69 ++++++++---
.../docker_provider/provider/src/lib.rs | 4 -
.../output/random_provider/lib/src/lib.rs | 4 -
.../random_provider/provider/src/bindings.rs | 55 ++++++---
.../random_provider/provider/src/lib.rs | 4 -
22 files changed, 350 insertions(+), 163 deletions(-)
diff --git a/cargo-pulumi/tests/fixtures/example/common/src/bindings.rs b/cargo-pulumi/tests/fixtures/example/common/src/bindings.rs
index 18d9b78d..c5879d6c 100644
--- a/cargo-pulumi/tests/fixtures/example/common/src/bindings.rs
+++ b/cargo-pulumi/tests/fixtures/example/common/src/bindings.rs
@@ -1,9 +1,12 @@
-// Generated by `wit-bindgen` 0.21.0. DO NOT EDIT!
+// Generated by `wit-bindgen` 0.25.0. DO NOT EDIT!
// Options used:
+#[allow(dead_code)]
pub mod exports {
+ #[allow(dead_code)]
pub mod example {
+ #[allow(dead_code)]
pub mod service {
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod common_interface {
#[used]
#[doc(hidden)]
@@ -14,6 +17,8 @@ pub mod exports {
#[doc(hidden)]
#[allow(non_snake_case)]
pub unsafe fn _export_run_common_cabi() -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let result0 = T::run_common();
let ptr1 = _RET_AREA.0.as_mut_ptr().cast::();
let vec2 = (result0.into_bytes()).into_boxed_slice();
@@ -59,6 +64,11 @@ pub mod exports {
}
}
mod _rt {
+
+ #[cfg(target_arch = "wasm32")]
+ pub fn run_ctors_once() {
+ wit_bindgen_rt::run_ctors_once();
+ }
pub unsafe fn cabi_dealloc(ptr: *mut u8, size: usize, align: usize) {
if size == 0 {
return;
@@ -100,14 +110,14 @@ macro_rules! __export_common_impl {
pub(crate) use __export_common_impl as export;
#[cfg(target_arch = "wasm32")]
-#[link_section = "component-type:wit-bindgen:0.21.0:common:encoded world"]
+#[link_section = "component-type:wit-bindgen:0.25.0:common:encoded world"]
#[doc(hidden)]
pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 229] = *b"\
\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07i\x01A\x02\x01A\x02\x01\
B\x02\x01@\0\0s\x04\0\x0arun-common\x01\0\x04\x01&example:service/common-interfa\
ce@0.1.0\x05\0\x04\x01\x1cexample:service/common@0.1.0\x04\0\x0b\x0c\x01\0\x06co\
-mmon\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.201.0\
-\x10wit-bindgen-rust\x060.21.0";
+mmon\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\
+\x10wit-bindgen-rust\x060.25.0";
#[inline(never)]
#[doc(hidden)]
diff --git a/cargo-pulumi/tests/fixtures/example/main/src/bindings.rs b/cargo-pulumi/tests/fixtures/example/main/src/bindings.rs
index 9475a2d8..81250423 100644
--- a/cargo-pulumi/tests/fixtures/example/main/src/bindings.rs
+++ b/cargo-pulumi/tests/fixtures/example/main/src/bindings.rs
@@ -1,8 +1,10 @@
-// Generated by `wit-bindgen` 0.21.0. DO NOT EDIT!
+// Generated by `wit-bindgen` 0.25.0. DO NOT EDIT!
// Options used:
+#[allow(dead_code)]
pub mod example {
+ #[allow(dead_code)]
pub mod service {
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod a_interface {
#[used]
#[doc(hidden)]
@@ -38,7 +40,7 @@ pub mod example {
}
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod common_interface {
#[used]
#[doc(hidden)]
@@ -75,10 +77,13 @@ pub mod example {
}
}
}
+#[allow(dead_code)]
pub mod exports {
+ #[allow(dead_code)]
pub mod example {
+ #[allow(dead_code)]
pub mod service {
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod main_interface {
#[used]
#[doc(hidden)]
@@ -89,6 +94,8 @@ pub mod exports {
#[doc(hidden)]
#[allow(non_snake_case)]
pub unsafe fn _export_main_cabi() -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let result0 = T::main();
let ptr1 = _RET_AREA.0.as_mut_ptr().cast::();
let vec2 = (result0.into_bytes()).into_boxed_slice();
@@ -143,6 +150,11 @@ mod _rt {
String::from_utf8_unchecked(bytes)
}
}
+
+ #[cfg(target_arch = "wasm32")]
+ pub fn run_ctors_once() {
+ wit_bindgen_rt::run_ctors_once();
+ }
pub unsafe fn cabi_dealloc(ptr: *mut u8, size: usize, align: usize) {
if size == 0 {
return;
@@ -183,7 +195,7 @@ macro_rules! __export_main_impl {
pub(crate) use __export_main_impl as export;
#[cfg(target_arch = "wasm32")]
-#[link_section = "component-type:wit-bindgen:0.21.0:main:encoded world"]
+#[link_section = "component-type:wit-bindgen:0.25.0:main:encoded world"]
#[doc(hidden)]
pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 340] = *b"\
\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xd9\x01\x01A\x02\x01\
@@ -192,7 +204,7 @@ e@0.1.0\x05\0\x01B\x02\x01@\0\0s\x04\0\x0arun-common\x01\0\x03\x01&example:servi
ce/common-interface@0.1.0\x05\x01\x01B\x02\x01@\0\0s\x04\0\x04main\x01\0\x04\x01\
$example:service/main-interface@0.1.0\x05\x02\x04\x01\x1aexample:service/main@0.\
1.0\x04\0\x0b\x0a\x01\0\x04main\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0d\
-wit-component\x070.201.0\x10wit-bindgen-rust\x060.21.0";
+wit-component\x070.208.1\x10wit-bindgen-rust\x060.25.0";
#[inline(never)]
#[doc(hidden)]
diff --git a/cargo-pulumi/tests/fixtures/example/provider_a/src/bindings.rs b/cargo-pulumi/tests/fixtures/example/provider_a/src/bindings.rs
index 9a554bd6..22aa6289 100644
--- a/cargo-pulumi/tests/fixtures/example/provider_a/src/bindings.rs
+++ b/cargo-pulumi/tests/fixtures/example/provider_a/src/bindings.rs
@@ -1,8 +1,10 @@
-// Generated by `wit-bindgen` 0.21.0. DO NOT EDIT!
+// Generated by `wit-bindgen` 0.25.0. DO NOT EDIT!
// Options used:
+#[allow(dead_code)]
pub mod example {
+ #[allow(dead_code)]
pub mod service {
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod common_interface {
#[used]
#[doc(hidden)]
@@ -39,10 +41,13 @@ pub mod example {
}
}
}
+#[allow(dead_code)]
pub mod exports {
+ #[allow(dead_code)]
pub mod example {
+ #[allow(dead_code)]
pub mod service {
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod a_interface {
#[used]
#[doc(hidden)]
@@ -53,6 +58,8 @@ pub mod exports {
#[doc(hidden)]
#[allow(non_snake_case)]
pub unsafe fn _export_run_a_cabi() -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let result0 = T::run_a();
let ptr1 = _RET_AREA.0.as_mut_ptr().cast::();
let vec2 = (result0.into_bytes()).into_boxed_slice();
@@ -107,6 +114,11 @@ mod _rt {
String::from_utf8_unchecked(bytes)
}
}
+
+ #[cfg(target_arch = "wasm32")]
+ pub fn run_ctors_once() {
+ wit_bindgen_rt::run_ctors_once();
+ }
pub unsafe fn cabi_dealloc(ptr: *mut u8, size: usize, align: usize) {
if size == 0 {
return;
@@ -147,7 +159,7 @@ macro_rules! __export_provider_a_impl {
pub(crate) use __export_provider_a_impl as export;
#[cfg(target_arch = "wasm32")]
-#[link_section = "component-type:wit-bindgen:0.21.0:provider-a:encoded world"]
+#[link_section = "component-type:wit-bindgen:0.25.0:provider-a:encoded world"]
#[doc(hidden)]
pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 294] = *b"\
\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xa5\x01\x01A\x02\x01\
@@ -155,7 +167,7 @@ A\x04\x01B\x02\x01@\0\0s\x04\0\x0arun-common\x01\0\x03\x01&example:service/commo
n-interface@0.1.0\x05\0\x01B\x02\x01@\0\0s\x04\0\x05run-a\x01\0\x04\x01!example:\
service/a-interface@0.1.0\x05\x01\x04\x01\x20example:service/provider-a@0.1.0\x04\
\0\x0b\x10\x01\0\x0aprovider-a\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0d\
-wit-component\x070.201.0\x10wit-bindgen-rust\x060.21.0";
+wit-component\x070.208.1\x10wit-bindgen-rust\x060.25.0";
#[inline(never)]
#[doc(hidden)]
diff --git a/justfile b/justfile
index 75281497..9f9cadf2 100644
--- a/justfile
+++ b/justfile
@@ -2,7 +2,7 @@ set windows-shell := ["pwsh.exe", "-c"]
# renovate: datasource=crate depName=cargo-nextest packageName=cargo-nextest
NEXTEST_VERSION := "0.9.72"
# renovate: datasource=crate depName=cargo-component packageName=cargo-component
-CARGO_COMPONENT_VERSION := "0.10.1"
+CARGO_COMPONENT_VERSION := "0.13.0"
# renovate: datasource=crate depName=wasm-tools packageName=wasm-tools
WASM_TOOLS_VERSION := "1.202.0"
diff --git a/providers/pulumi_wasm_provider_docker/src/bindings.rs b/providers/pulumi_wasm_provider_docker/src/bindings.rs
index 276485d2..510e4ce0 100644
--- a/providers/pulumi_wasm_provider_docker/src/bindings.rs
+++ b/providers/pulumi_wasm_provider_docker/src/bindings.rs
@@ -1,8 +1,10 @@
-// Generated by `wit-bindgen` 0.21.0. DO NOT EDIT!
+// Generated by `wit-bindgen` 0.25.0. DO NOT EDIT!
// Options used:
+#[allow(dead_code)]
pub mod component {
+ #[allow(dead_code)]
pub mod pulumi_wasm {
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod output_interface {
#[used]
#[doc(hidden)]
@@ -267,7 +269,7 @@ pub mod component {
}
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod register_interface {
#[used]
#[doc(hidden)]
@@ -446,10 +448,13 @@ pub mod component {
}
}
}
+#[allow(dead_code)]
pub mod exports {
+ #[allow(dead_code)]
pub mod pulumi {
+ #[allow(dead_code)]
pub mod docker {
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod container {
#[used]
#[doc(hidden)]
@@ -740,6 +745,8 @@ pub mod exports {
#[doc(hidden)]
#[allow(non_snake_case)]
pub unsafe fn _export_invoke_cabi(arg0: *mut u8) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle4;
let handle6;
let handle8;
@@ -1283,7 +1290,7 @@ pub mod exports {
_RetArea([::core::mem::MaybeUninit::uninit(); 264]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod image {
#[used]
#[doc(hidden)]
@@ -1344,6 +1351,8 @@ pub mod exports {
arg5: i32,
arg6: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -1416,7 +1425,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 28]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod network {
#[used]
#[doc(hidden)]
@@ -1510,6 +1519,8 @@ pub mod exports {
arg12: i32,
arg13: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -1629,7 +1640,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 52]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod plugin {
#[used]
#[doc(hidden)]
@@ -1708,6 +1719,8 @@ pub mod exports {
arg9: i32,
arg10: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -1806,7 +1819,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 40]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod registry_image {
#[used]
#[doc(hidden)]
@@ -1860,6 +1873,8 @@ pub mod exports {
arg4: i32,
arg5: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -1923,7 +1938,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 20]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod remote_image {
#[used]
#[doc(hidden)]
@@ -1994,6 +2009,8 @@ pub mod exports {
arg7: i32,
arg8: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -2080,7 +2097,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 36]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod secret {
#[used]
#[doc(hidden)]
@@ -2127,6 +2144,8 @@ pub mod exports {
arg3: i32,
arg4: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -2181,7 +2200,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 12]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod service {
#[used]
#[doc(hidden)]
@@ -2258,6 +2277,8 @@ pub mod exports {
arg9: i32,
arg10: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -2354,7 +2375,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 36]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod service_config {
#[used]
#[doc(hidden)]
@@ -2396,6 +2417,8 @@ pub mod exports {
arg2: i32,
arg3: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let len0 = arg1;
@@ -2443,7 +2466,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 8]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod tag {
#[used]
#[doc(hidden)]
@@ -2487,6 +2510,8 @@ pub mod exports {
arg2: i32,
arg3: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let len0 = arg1;
@@ -2536,7 +2561,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 12]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod volume {
#[used]
#[doc(hidden)]
@@ -2590,6 +2615,8 @@ pub mod exports {
arg4: i32,
arg5: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -2689,6 +2716,7 @@ mod _rt {
/// drop a resource.
///
/// This generally is implemented by generated code, not user-facing code.
+ #[allow(clippy::missing_safety_doc)]
pub unsafe trait WasmResource {
/// Invokes the `[resource-drop]...` intrinsic.
unsafe fn drop(handle: u32);
@@ -2767,7 +2795,7 @@ mod _rt {
_ => panic!("invalid bool discriminant"),
}
} else {
- ::core::mem::transmute::(val)
+ val != 0
}
}
pub unsafe fn invalid_enum_discriminant() -> T {
@@ -2778,6 +2806,11 @@ mod _rt {
}
}
pub use alloc_crate::alloc;
+
+ #[cfg(target_arch = "wasm32")]
+ pub fn run_ctors_once() {
+ wit_bindgen_rt::run_ctors_once();
+ }
pub unsafe fn cabi_dealloc(ptr: *mut u8, size: usize, align: usize) {
if size == 0 {
return;
@@ -2827,7 +2860,7 @@ macro_rules! __export_main_world_impl {
pub(crate) use __export_main_world_impl as export;
#[cfg(target_arch = "wasm32")]
-#[link_section = "component-type:wit-bindgen:0.21.0:main-world:encoded world"]
+#[link_section = "component-type:wit-bindgen:0.25.0:main-world:encoded world"]
#[doc(hidden)]
pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 4840] = *b"\
\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xe7$\x01A\x02\x01A\x1b\
@@ -2932,8 +2965,8 @@ lumi:docker/tag@4.5.3\x05\x0c\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0
s\x05\x0amountpoint\x05\x04name\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04\
args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01\x1apulumi:docker/volume@4.5.3\x05\
\x0d\x04\x01\x1epulumi:docker/main-world@4.5.3\x04\0\x0b\x10\x01\0\x0amain-world\
-\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.201.0\x10\
-wit-bindgen-rust\x060.21.0";
+\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10\
+wit-bindgen-rust\x060.25.0";
#[inline(never)]
#[doc(hidden)]
diff --git a/providers/pulumi_wasm_provider_docker/src/lib.rs b/providers/pulumi_wasm_provider_docker/src/lib.rs
index 1bf32341..fb78bd83 100644
--- a/providers/pulumi_wasm_provider_docker/src/lib.rs
+++ b/providers/pulumi_wasm_provider_docker/src/lib.rs
@@ -13,10 +13,6 @@ use bindings::exports::pulumi::docker::service_config;
use bindings::exports::pulumi::docker::tag;
use bindings::exports::pulumi::docker::volume;
-#[allow(clippy::all)]
-#[allow(dead_code)]
-#[allow(unused_variables)]
-#[allow(unused_unsafe)]
mod bindings;
bindings::export!(Component with_types_in bindings);
diff --git a/providers/pulumi_wasm_provider_docker_rust/src/lib.rs b/providers/pulumi_wasm_provider_docker_rust/src/lib.rs
index 2fe2a70a..d381958e 100644
--- a/providers/pulumi_wasm_provider_docker_rust/src/lib.rs
+++ b/providers/pulumi_wasm_provider_docker_rust/src/lib.rs
@@ -3,10 +3,6 @@ use pulumi_wasm_rust::Output;
pub mod resource;
pub mod types;
-#[allow(clippy::all)]
-#[allow(dead_code)]
-#[allow(unused_variables)]
-#[allow(unused_unsafe)]
mod bindings {
wit_bindgen::generate!({
// the name of the world in the `*.wit` input file
diff --git a/providers/pulumi_wasm_provider_random/src/bindings.rs b/providers/pulumi_wasm_provider_random/src/bindings.rs
index 0dc634fa..880c877c 100644
--- a/providers/pulumi_wasm_provider_random/src/bindings.rs
+++ b/providers/pulumi_wasm_provider_random/src/bindings.rs
@@ -1,8 +1,10 @@
-// Generated by `wit-bindgen` 0.21.0. DO NOT EDIT!
+// Generated by `wit-bindgen` 0.25.0. DO NOT EDIT!
// Options used:
+#[allow(dead_code)]
pub mod component {
+ #[allow(dead_code)]
pub mod pulumi_wasm {
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod output_interface {
#[used]
#[doc(hidden)]
@@ -267,7 +269,7 @@ pub mod component {
}
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod register_interface {
#[used]
#[doc(hidden)]
@@ -446,10 +448,13 @@ pub mod component {
}
}
}
+#[allow(dead_code)]
pub mod exports {
+ #[allow(dead_code)]
pub mod pulumi {
+ #[allow(dead_code)]
pub mod random {
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod random_bytes {
#[used]
#[doc(hidden)]
@@ -495,6 +500,8 @@ pub mod exports {
arg2: i32,
arg3: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let len0 = arg1;
@@ -546,7 +553,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 16]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod random_id {
#[used]
#[doc(hidden)]
@@ -601,6 +608,8 @@ pub mod exports {
arg3: i32,
arg4: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -663,7 +672,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 28]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod random_integer {
#[used]
#[doc(hidden)]
@@ -717,6 +726,8 @@ pub mod exports {
arg4: i32,
arg5: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -780,7 +791,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 20]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod random_password {
#[used]
#[doc(hidden)]
@@ -876,6 +887,8 @@ pub mod exports {
arg12: i32,
arg13: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -997,7 +1010,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 56]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod random_pet {
#[used]
#[doc(hidden)]
@@ -1049,6 +1062,8 @@ pub mod exports {
arg4: i32,
arg5: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -1110,7 +1125,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 16]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod random_shuffle {
#[used]
#[doc(hidden)]
@@ -1164,6 +1179,8 @@ pub mod exports {
arg4: i32,
arg5: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -1227,7 +1244,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 20]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod random_string {
#[used]
#[doc(hidden)]
@@ -1321,6 +1338,8 @@ pub mod exports {
arg12: i32,
arg13: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -1440,7 +1459,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 52]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod random_uuid {
#[used]
#[doc(hidden)]
@@ -1479,6 +1498,8 @@ pub mod exports {
arg1: usize,
arg2: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let len0 = arg1;
let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0);
@@ -1557,6 +1578,7 @@ mod _rt {
/// drop a resource.
///
/// This generally is implemented by generated code, not user-facing code.
+ #[allow(clippy::missing_safety_doc)]
pub unsafe trait WasmResource {
/// Invokes the `[resource-drop]...` intrinsic.
unsafe fn drop(handle: u32);
@@ -1635,7 +1657,7 @@ mod _rt {
_ => panic!("invalid bool discriminant"),
}
} else {
- ::core::mem::transmute::(val)
+ val != 0
}
}
pub unsafe fn invalid_enum_discriminant() -> T {
@@ -1646,6 +1668,11 @@ mod _rt {
}
}
pub use alloc_crate::alloc;
+
+ #[cfg(target_arch = "wasm32")]
+ pub fn run_ctors_once() {
+ wit_bindgen_rt::run_ctors_once();
+ }
extern crate alloc as alloc_crate;
}
@@ -1685,7 +1712,7 @@ macro_rules! __export_main_world_impl {
pub(crate) use __export_main_world_impl as export;
#[cfg(target_arch = "wasm32")]
-#[link_section = "component-type:wit-bindgen:0.21.0:main-world:encoded world"]
+#[link_section = "component-type:wit-bindgen:0.25.0:main-world:encoded world"]
#[doc(hidden)]
pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 2641] = *b"\
\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xd0\x13\x01A\x02\x01\
@@ -1747,7 +1774,7 @@ B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x01\x07keepers\x
res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01\
\x20pulumi:random/random-uuid@4.15.0\x05\x0a\x04\x01\x1fpulumi:random/main-world\
@4.15.0\x04\0\x0b\x10\x01\0\x0amain-world\x03\0\0\0G\x09producers\x01\x0cprocess\
-ed-by\x02\x0dwit-component\x070.201.0\x10wit-bindgen-rust\x060.21.0";
+ed-by\x02\x0dwit-component\x070.208.1\x10wit-bindgen-rust\x060.25.0";
#[inline(never)]
#[doc(hidden)]
diff --git a/providers/pulumi_wasm_provider_random/src/lib.rs b/providers/pulumi_wasm_provider_random/src/lib.rs
index 878f4379..69c42c83 100644
--- a/providers/pulumi_wasm_provider_random/src/lib.rs
+++ b/providers/pulumi_wasm_provider_random/src/lib.rs
@@ -10,10 +10,6 @@ use bindings::exports::pulumi::random::random_shuffle;
use bindings::exports::pulumi::random::random_string;
use bindings::exports::pulumi::random::random_uuid;
-#[allow(clippy::all)]
-#[allow(dead_code)]
-#[allow(unused_variables)]
-#[allow(unused_unsafe)]
mod bindings;
bindings::export!(Component with_types_in bindings);
diff --git a/providers/pulumi_wasm_provider_random_rust/src/lib.rs b/providers/pulumi_wasm_provider_random_rust/src/lib.rs
index 2fe2a70a..d381958e 100644
--- a/providers/pulumi_wasm_provider_random_rust/src/lib.rs
+++ b/providers/pulumi_wasm_provider_random_rust/src/lib.rs
@@ -3,10 +3,6 @@ use pulumi_wasm_rust::Output;
pub mod resource;
pub mod types;
-#[allow(clippy::all)]
-#[allow(dead_code)]
-#[allow(unused_variables)]
-#[allow(unused_unsafe)]
mod bindings {
wit_bindgen::generate!({
// the name of the world in the `*.wit` input file
diff --git a/pulumi_wasm/src/bindings.rs b/pulumi_wasm/src/bindings.rs
index bca6542f..131b097d 100644
--- a/pulumi_wasm/src/bindings.rs
+++ b/pulumi_wasm/src/bindings.rs
@@ -1,8 +1,10 @@
-// Generated by `wit-bindgen` 0.21.0. DO NOT EDIT!
+// Generated by `wit-bindgen` 0.25.0. DO NOT EDIT!
// Options used:
+#[allow(dead_code)]
pub mod component {
+ #[allow(dead_code)]
pub mod pulumi_wasm {
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod log {
#[used]
#[doc(hidden)]
@@ -32,7 +34,8 @@ pub mod component {
}
impl Level {
- pub(crate) unsafe fn _lift(val: u8) -> Level {
+ #[doc(hidden)]
+ pub unsafe fn _lift(val: u8) -> Level {
if !cfg!(debug_assertions) {
return ::core::mem::transmute(val);
}
@@ -213,7 +216,7 @@ pub mod component {
}
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod external_world {
#[used]
#[doc(hidden)]
@@ -324,10 +327,13 @@ pub mod component {
}
}
}
+#[allow(dead_code)]
pub mod exports {
+ #[allow(dead_code)]
pub mod component {
+ #[allow(dead_code)]
pub mod pulumi_wasm {
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod output_interface {
#[used]
#[doc(hidden)]
@@ -412,9 +418,15 @@ pub mod exports {
}
}
+ #[doc(hidden)]
+ pub unsafe fn dtor(handle: *mut u8) {
+ Self::type_guard::();
+ let _ = _rt::Box::from_raw(handle as *mut _OutputRep);
+ }
+
fn as_ptr(&self) -> *mut _OutputRep {
Output::type_guard::();
- unsafe { T::_resource_rep(self.handle()).cast() }
+ T::_resource_rep(self.handle()).cast()
}
}
@@ -475,6 +487,8 @@ pub mod exports {
#[doc(hidden)]
#[allow(non_snake_case)]
pub unsafe fn _export_describe_outputs_cabi() -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let result0 = T::describe_outputs();
let ptr1 = _RET_AREA.0.as_mut_ptr().cast::();
let vec2 = (result0.into_bytes()).into_boxed_slice();
@@ -495,6 +509,8 @@ pub mod exports {
#[doc(hidden)]
#[allow(non_snake_case)]
pub unsafe fn _export_non_done_exists_cabi() -> i32 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let result0 = T::non_done_exists();
match result0 {
true => 1,
@@ -507,6 +523,8 @@ pub mod exports {
arg0: *mut u8,
arg1: usize,
) -> i32 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let len0 = arg1;
let result1 =
Output::new(T::new(_rt::Vec::from_raw_parts(arg0.cast(), len0, len0)));
@@ -515,10 +533,12 @@ pub mod exports {
#[doc(hidden)]
#[allow(non_snake_case)]
pub unsafe fn _export_method_output_map_cabi(
- arg0: i32,
+ arg0: *mut u8,
arg1: *mut u8,
arg2: usize,
) -> i32 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let len0 = arg2;
let bytes0 = _rt::Vec::from_raw_parts(arg1.cast(), len0, len0);
let result1 = T::map(
@@ -529,7 +549,11 @@ pub mod exports {
}
#[doc(hidden)]
#[allow(non_snake_case)]
- pub unsafe fn _export_method_output_get_cabi(arg0: i32) -> *mut u8 {
+ pub unsafe fn _export_method_output_get_cabi(
+ arg0: *mut u8,
+ ) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let result0 = T::get(OutputBorrow::lift(arg0 as u32 as usize).get());
let ptr1 = _RET_AREA.0.as_mut_ptr().cast::();
match result0 {
@@ -566,11 +590,13 @@ pub mod exports {
#[doc(hidden)]
#[allow(non_snake_case)]
pub unsafe fn _export_method_output_get_field_cabi(
- arg0: i32,
+ arg0: *mut u8,
arg1: *mut u8,
arg2: usize,
arg3: i32,
) -> i32 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let len0 = arg2;
let bytes0 = _rt::Vec::from_raw_parts(arg1.cast(), len0, len0);
let result1 = T::get_field(
@@ -583,8 +609,10 @@ pub mod exports {
#[doc(hidden)]
#[allow(non_snake_case)]
pub unsafe fn _export_method_output_get_type_cabi(
- arg0: i32,
+ arg0: *mut u8,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let result0 = T::get_type(OutputBorrow::lift(arg0 as u32 as usize).get());
let ptr1 = _RET_AREA.0.as_mut_ptr().cast::();
let vec2 = (result0.into_bytes()).into_boxed_slice();
@@ -605,8 +633,10 @@ pub mod exports {
#[doc(hidden)]
#[allow(non_snake_case)]
pub unsafe fn _export_method_output_duplicate_cabi(
- arg0: i32,
+ arg0: *mut u8,
) -> i32 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let result0 = T::duplicate(OutputBorrow::lift(arg0 as u32 as usize).get());
(result0).take_handle() as i32
}
@@ -622,7 +652,10 @@ pub mod exports {
Self: Sized,
{
#[cfg(not(target_arch = "wasm32"))]
- unreachable!();
+ {
+ let _ = val;
+ unreachable!();
+ }
#[cfg(target_arch = "wasm32")]
{
@@ -643,7 +676,10 @@ pub mod exports {
Self: Sized,
{
#[cfg(not(target_arch = "wasm32"))]
- unreachable!();
+ {
+ let _ = handle;
+ unreachable!();
+ }
#[cfg(target_arch = "wasm32")]
{
@@ -687,11 +723,11 @@ pub mod exports {
$($path_to_types)*::_export_constructor_output_cabi::<<$ty as $($path_to_types)*::Guest>::Output>(arg0, arg1)
}
#[export_name = "component:pulumi-wasm/output-interface@0.1.0#[method]output.map"]
- unsafe extern "C" fn export_method_output_map(arg0: i32,arg1: *mut u8,arg2: usize,) -> i32 {
+ unsafe extern "C" fn export_method_output_map(arg0: *mut u8,arg1: *mut u8,arg2: usize,) -> i32 {
$($path_to_types)*::_export_method_output_map_cabi::<<$ty as $($path_to_types)*::Guest>::Output>(arg0, arg1, arg2)
}
#[export_name = "component:pulumi-wasm/output-interface@0.1.0#[method]output.get"]
- unsafe extern "C" fn export_method_output_get(arg0: i32,) -> *mut u8 {
+ unsafe extern "C" fn export_method_output_get(arg0: *mut u8,) -> *mut u8 {
$($path_to_types)*::_export_method_output_get_cabi::<<$ty as $($path_to_types)*::Guest>::Output>(arg0)
}
#[export_name = "cabi_post_component:pulumi-wasm/output-interface@0.1.0#[method]output.get"]
@@ -699,11 +735,11 @@ pub mod exports {
$($path_to_types)*::__post_return_method_output_get::<<$ty as $($path_to_types)*::Guest>::Output>(arg0)
}
#[export_name = "component:pulumi-wasm/output-interface@0.1.0#[method]output.get-field"]
- unsafe extern "C" fn export_method_output_get_field(arg0: i32,arg1: *mut u8,arg2: usize,arg3: i32,) -> i32 {
+ unsafe extern "C" fn export_method_output_get_field(arg0: *mut u8,arg1: *mut u8,arg2: usize,arg3: i32,) -> i32 {
$($path_to_types)*::_export_method_output_get_field_cabi::<<$ty as $($path_to_types)*::Guest>::Output>(arg0, arg1, arg2, arg3)
}
#[export_name = "component:pulumi-wasm/output-interface@0.1.0#[method]output.get-type"]
- unsafe extern "C" fn export_method_output_get_type(arg0: i32,) -> *mut u8 {
+ unsafe extern "C" fn export_method_output_get_type(arg0: *mut u8,) -> *mut u8 {
$($path_to_types)*::_export_method_output_get_type_cabi::<<$ty as $($path_to_types)*::Guest>::Output>(arg0)
}
#[export_name = "cabi_post_component:pulumi-wasm/output-interface@0.1.0#[method]output.get-type"]
@@ -711,9 +747,21 @@ pub mod exports {
$($path_to_types)*::__post_return_method_output_get_type::<<$ty as $($path_to_types)*::Guest>::Output>(arg0)
}
#[export_name = "component:pulumi-wasm/output-interface@0.1.0#[method]output.duplicate"]
- unsafe extern "C" fn export_method_output_duplicate(arg0: i32,) -> i32 {
+ unsafe extern "C" fn export_method_output_duplicate(arg0: *mut u8,) -> i32 {
$($path_to_types)*::_export_method_output_duplicate_cabi::<<$ty as $($path_to_types)*::Guest>::Output>(arg0)
}
+
+ const _: () = {
+ #[doc(hidden)]
+ #[export_name = "component:pulumi-wasm/output-interface@0.1.0#[dtor]output"]
+ #[allow(non_snake_case)]
+ unsafe extern "C" fn dtor(rep: *mut u8) {
+ $($path_to_types)*::Output::dtor::<
+ <$ty as $($path_to_types)*::Guest>::Output
+ >(rep)
+ }
+ };
+
};);
}
#[doc(hidden)]
@@ -723,7 +771,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 12]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod register_interface {
#[used]
#[doc(hidden)]
@@ -786,6 +834,8 @@ pub mod exports {
arg6: *mut u8,
arg7: usize,
) -> i32 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let len0 = arg1;
let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0);
let len1 = arg3;
@@ -858,7 +908,7 @@ pub mod exports {
pub(crate) use __export_component_pulumi_wasm_register_interface_0_1_0_cabi;
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod function_reverse_callback {
#[used]
#[doc(hidden)]
@@ -900,6 +950,8 @@ pub mod exports {
arg0: *mut u8,
arg1: usize,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let len0 = arg1;
let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0);
let result1 = T::get_functions(_rt::string_lift(bytes0));
@@ -970,6 +1022,8 @@ pub mod exports {
#[doc(hidden)]
#[allow(non_snake_case)]
pub unsafe fn _export_set_functions_cabi(arg0: *mut u8, arg1: usize) {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let base4 = arg0;
let len4 = arg1;
let mut result4 = _rt::Vec::with_capacity(len4);
@@ -1021,7 +1075,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 8]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod stack_interface {
#[used]
#[doc(hidden)]
@@ -1038,6 +1092,8 @@ pub mod exports {
arg1: usize,
arg2: i32,
) {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let len0 = arg1;
let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0);
T::add_export(
@@ -1048,6 +1104,8 @@ pub mod exports {
#[doc(hidden)]
#[allow(non_snake_case)]
pub unsafe fn _export_finish_cabi() -> i32 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let result0 = T::finish();
match result0 {
true => 1,
@@ -1161,7 +1219,7 @@ mod _rt {
_ => panic!("invalid bool discriminant"),
}
} else {
- ::core::mem::transmute::(val)
+ val != 0
}
}
pub unsafe fn string_lift(bytes: Vec) -> String {
@@ -1204,6 +1262,7 @@ mod _rt {
/// drop a resource.
///
/// This generally is implemented by generated code, not user-facing code.
+ #[allow(clippy::missing_safety_doc)]
pub unsafe trait WasmResource {
/// Invokes the `[resource-drop]...` intrinsic.
unsafe fn drop(handle: u32);
@@ -1266,6 +1325,11 @@ mod _rt {
}
}
pub use alloc_crate::boxed::Box;
+
+ #[cfg(target_arch = "wasm32")]
+ pub fn run_ctors_once() {
+ wit_bindgen_rt::run_ctors_once();
+ }
pub unsafe fn cabi_dealloc(ptr: *mut u8, size: usize, align: usize) {
if size == 0 {
return;
@@ -1308,7 +1372,7 @@ macro_rules! __export_pulumi_wasm_impl {
pub(crate) use __export_pulumi_wasm_impl as export;
#[cfg(target_arch = "wasm32")]
-#[link_section = "component-type:wit-bindgen:0.21.0:pulumi-wasm:encoded world"]
+#[link_section = "component-type:wit-bindgen:0.25.0:pulumi-wasm:encoded world"]
#[doc(hidden)]
pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 1559] = *b"\
\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x95\x0b\x01A\x02\x01\
@@ -1343,8 +1407,8 @@ k@0.1.0\x05\x05\x01B\x07\x02\x03\x02\x01\x03\x04\0\x06output\x03\0\0\x01h\x01\x0
@\x02\x04names\x05value\x02\x01\0\x04\0\x0aadd-export\x01\x03\x01@\0\0\x7f\x04\0\
\x06finish\x01\x04\x04\x01+component:pulumi-wasm/stack-interface@0.1.0\x05\x06\x04\
\x01'component:pulumi-wasm/pulumi-wasm@0.1.0\x04\0\x0b\x11\x01\0\x0bpulumi-wasm\x03\
-\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.201.0\x10wit-\
-bindgen-rust\x060.21.0";
+\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10wit-\
+bindgen-rust\x060.25.0";
#[inline(never)]
#[doc(hidden)]
diff --git a/pulumi_wasm_generator/src/output/provider/lib.rs.handlebars b/pulumi_wasm_generator/src/output/provider/lib.rs.handlebars
index ea3941f2..06f942e1 100644
--- a/pulumi_wasm_generator/src/output/provider/lib.rs.handlebars
+++ b/pulumi_wasm_generator/src/output/provider/lib.rs.handlebars
@@ -3,10 +3,6 @@ use crate::bindings::component::pulumi_wasm::register_interface::{ObjectField, r
use bindings::exports::pulumi::{{@root.package.name}}::{{name}};
{{/each}}
-#[allow(clippy::all)]
-#[allow(dead_code)]
-#[allow(unused_variables)]
-#[allow(unused_unsafe)]
mod bindings;
bindings::export!(Component with_types_in bindings);
diff --git a/pulumi_wasm_generator/src/output/rust/lib.rs.handlebars b/pulumi_wasm_generator/src/output/rust/lib.rs.handlebars
index da92d44c..2245fa2f 100644
--- a/pulumi_wasm_generator/src/output/rust/lib.rs.handlebars
+++ b/pulumi_wasm_generator/src/output/rust/lib.rs.handlebars
@@ -3,10 +3,6 @@ use crate::bindings::component::pulumi_wasm::output_interface::Output as WitOutp
pub mod resource;
pub mod types;
-#[allow(clippy::all)]
-#[allow(dead_code)]
-#[allow(unused_variables)]
-#[allow(unused_unsafe)]
mod bindings {
wit_bindgen::generate!({
// the name of the world in the `*.wit` input file
diff --git a/pulumi_wasm_generator/tests/output/command_provider/lib/src/lib.rs b/pulumi_wasm_generator/tests/output/command_provider/lib/src/lib.rs
index da92d44c..2245fa2f 100644
--- a/pulumi_wasm_generator/tests/output/command_provider/lib/src/lib.rs
+++ b/pulumi_wasm_generator/tests/output/command_provider/lib/src/lib.rs
@@ -3,10 +3,6 @@ use crate::bindings::component::pulumi_wasm::output_interface::Output as WitOutp
pub mod resource;
pub mod types;
-#[allow(clippy::all)]
-#[allow(dead_code)]
-#[allow(unused_variables)]
-#[allow(unused_unsafe)]
mod bindings {
wit_bindgen::generate!({
// the name of the world in the `*.wit` input file
diff --git a/pulumi_wasm_generator/tests/output/command_provider/provider/src/bindings.rs b/pulumi_wasm_generator/tests/output/command_provider/provider/src/bindings.rs
index bc9da6f8..8e72e4d4 100644
--- a/pulumi_wasm_generator/tests/output/command_provider/provider/src/bindings.rs
+++ b/pulumi_wasm_generator/tests/output/command_provider/provider/src/bindings.rs
@@ -1,8 +1,10 @@
-// Generated by `wit-bindgen` 0.21.0. DO NOT EDIT!
+// Generated by `wit-bindgen` 0.25.0. DO NOT EDIT!
// Options used:
+#[allow(dead_code)]
pub mod component {
+ #[allow(dead_code)]
pub mod pulumi_wasm {
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod output_interface {
#[used]
#[doc(hidden)]
@@ -267,7 +269,7 @@ pub mod component {
}
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod register_interface {
#[used]
#[doc(hidden)]
@@ -446,10 +448,13 @@ pub mod component {
}
}
}
+#[allow(dead_code)]
pub mod exports {
+ #[allow(dead_code)]
pub mod pulumi {
+ #[allow(dead_code)]
pub mod command {
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod local_command {
#[used]
#[doc(hidden)]
@@ -539,6 +544,8 @@ pub mod exports {
arg10: i32,
arg11: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -650,7 +657,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 56]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod remote_command {
#[used]
#[doc(hidden)]
@@ -721,6 +728,8 @@ pub mod exports {
arg7: i32,
arg8: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -807,7 +816,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 36]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod remote_copy_file {
#[used]
#[doc(hidden)]
@@ -859,6 +868,8 @@ pub mod exports {
arg4: i32,
arg5: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -956,6 +967,7 @@ mod _rt {
/// drop a resource.
///
/// This generally is implemented by generated code, not user-facing code.
+ #[allow(clippy::missing_safety_doc)]
pub unsafe trait WasmResource {
/// Invokes the `[resource-drop]...` intrinsic.
unsafe fn drop(handle: u32);
@@ -1034,7 +1046,7 @@ mod _rt {
_ => panic!("invalid bool discriminant"),
}
} else {
- ::core::mem::transmute::(val)
+ val != 0
}
}
pub unsafe fn invalid_enum_discriminant() -> T {
@@ -1045,6 +1057,11 @@ mod _rt {
}
}
pub use alloc_crate::alloc;
+
+ #[cfg(target_arch = "wasm32")]
+ pub fn run_ctors_once() {
+ wit_bindgen_rt::run_ctors_once();
+ }
extern crate alloc as alloc_crate;
}
@@ -1079,7 +1096,7 @@ macro_rules! __export_main_world_impl {
pub(crate) use __export_main_world_impl as export;
#[cfg(target_arch = "wasm32")]
-#[link_section = "component-type:wit-bindgen:0.21.0:main-world:encoded world"]
+#[link_section = "component-type:wit-bindgen:0.25.0:main-world:encoded world"]
#[doc(hidden)]
pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 1641] = *b"\
\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xe8\x0b\x01A\x02\x01\
@@ -1117,7 +1134,7 @@ ath\x02\x08triggers\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01r\x04\x0aconnection\
@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01%pulumi:command/\
remote-copy-file@0.9.2\x05\x05\x04\x01\x1fpulumi:command/main-world@0.9.2\x04\0\x0b\
\x10\x01\0\x0amain-world\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-\
-component\x070.201.0\x10wit-bindgen-rust\x060.21.0";
+component\x070.208.1\x10wit-bindgen-rust\x060.25.0";
#[inline(never)]
#[doc(hidden)]
diff --git a/pulumi_wasm_generator/tests/output/command_provider/provider/src/lib.rs b/pulumi_wasm_generator/tests/output/command_provider/provider/src/lib.rs
index 8f698ff4..34e7ced1 100644
--- a/pulumi_wasm_generator/tests/output/command_provider/provider/src/lib.rs
+++ b/pulumi_wasm_generator/tests/output/command_provider/provider/src/lib.rs
@@ -3,10 +3,6 @@ use bindings::exports::pulumi::command::local_command;
use bindings::exports::pulumi::command::remote_command;
use bindings::exports::pulumi::command::remote_copy_file;
-#[allow(clippy::all)]
-#[allow(dead_code)]
-#[allow(unused_variables)]
-#[allow(unused_unsafe)]
mod bindings;
bindings::export!(Component with_types_in bindings);
diff --git a/pulumi_wasm_generator/tests/output/docker_provider/lib/src/lib.rs b/pulumi_wasm_generator/tests/output/docker_provider/lib/src/lib.rs
index da92d44c..2245fa2f 100644
--- a/pulumi_wasm_generator/tests/output/docker_provider/lib/src/lib.rs
+++ b/pulumi_wasm_generator/tests/output/docker_provider/lib/src/lib.rs
@@ -3,10 +3,6 @@ use crate::bindings::component::pulumi_wasm::output_interface::Output as WitOutp
pub mod resource;
pub mod types;
-#[allow(clippy::all)]
-#[allow(dead_code)]
-#[allow(unused_variables)]
-#[allow(unused_unsafe)]
mod bindings {
wit_bindgen::generate!({
// the name of the world in the `*.wit` input file
diff --git a/pulumi_wasm_generator/tests/output/docker_provider/provider/src/bindings.rs b/pulumi_wasm_generator/tests/output/docker_provider/provider/src/bindings.rs
index 276485d2..510e4ce0 100644
--- a/pulumi_wasm_generator/tests/output/docker_provider/provider/src/bindings.rs
+++ b/pulumi_wasm_generator/tests/output/docker_provider/provider/src/bindings.rs
@@ -1,8 +1,10 @@
-// Generated by `wit-bindgen` 0.21.0. DO NOT EDIT!
+// Generated by `wit-bindgen` 0.25.0. DO NOT EDIT!
// Options used:
+#[allow(dead_code)]
pub mod component {
+ #[allow(dead_code)]
pub mod pulumi_wasm {
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod output_interface {
#[used]
#[doc(hidden)]
@@ -267,7 +269,7 @@ pub mod component {
}
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod register_interface {
#[used]
#[doc(hidden)]
@@ -446,10 +448,13 @@ pub mod component {
}
}
}
+#[allow(dead_code)]
pub mod exports {
+ #[allow(dead_code)]
pub mod pulumi {
+ #[allow(dead_code)]
pub mod docker {
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod container {
#[used]
#[doc(hidden)]
@@ -740,6 +745,8 @@ pub mod exports {
#[doc(hidden)]
#[allow(non_snake_case)]
pub unsafe fn _export_invoke_cabi(arg0: *mut u8) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle4;
let handle6;
let handle8;
@@ -1283,7 +1290,7 @@ pub mod exports {
_RetArea([::core::mem::MaybeUninit::uninit(); 264]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod image {
#[used]
#[doc(hidden)]
@@ -1344,6 +1351,8 @@ pub mod exports {
arg5: i32,
arg6: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -1416,7 +1425,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 28]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod network {
#[used]
#[doc(hidden)]
@@ -1510,6 +1519,8 @@ pub mod exports {
arg12: i32,
arg13: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -1629,7 +1640,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 52]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod plugin {
#[used]
#[doc(hidden)]
@@ -1708,6 +1719,8 @@ pub mod exports {
arg9: i32,
arg10: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -1806,7 +1819,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 40]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod registry_image {
#[used]
#[doc(hidden)]
@@ -1860,6 +1873,8 @@ pub mod exports {
arg4: i32,
arg5: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -1923,7 +1938,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 20]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod remote_image {
#[used]
#[doc(hidden)]
@@ -1994,6 +2009,8 @@ pub mod exports {
arg7: i32,
arg8: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -2080,7 +2097,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 36]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod secret {
#[used]
#[doc(hidden)]
@@ -2127,6 +2144,8 @@ pub mod exports {
arg3: i32,
arg4: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -2181,7 +2200,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 12]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod service {
#[used]
#[doc(hidden)]
@@ -2258,6 +2277,8 @@ pub mod exports {
arg9: i32,
arg10: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -2354,7 +2375,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 36]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod service_config {
#[used]
#[doc(hidden)]
@@ -2396,6 +2417,8 @@ pub mod exports {
arg2: i32,
arg3: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let len0 = arg1;
@@ -2443,7 +2466,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 8]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod tag {
#[used]
#[doc(hidden)]
@@ -2487,6 +2510,8 @@ pub mod exports {
arg2: i32,
arg3: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let len0 = arg1;
@@ -2536,7 +2561,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 12]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod volume {
#[used]
#[doc(hidden)]
@@ -2590,6 +2615,8 @@ pub mod exports {
arg4: i32,
arg5: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -2689,6 +2716,7 @@ mod _rt {
/// drop a resource.
///
/// This generally is implemented by generated code, not user-facing code.
+ #[allow(clippy::missing_safety_doc)]
pub unsafe trait WasmResource {
/// Invokes the `[resource-drop]...` intrinsic.
unsafe fn drop(handle: u32);
@@ -2767,7 +2795,7 @@ mod _rt {
_ => panic!("invalid bool discriminant"),
}
} else {
- ::core::mem::transmute::(val)
+ val != 0
}
}
pub unsafe fn invalid_enum_discriminant() -> T {
@@ -2778,6 +2806,11 @@ mod _rt {
}
}
pub use alloc_crate::alloc;
+
+ #[cfg(target_arch = "wasm32")]
+ pub fn run_ctors_once() {
+ wit_bindgen_rt::run_ctors_once();
+ }
pub unsafe fn cabi_dealloc(ptr: *mut u8, size: usize, align: usize) {
if size == 0 {
return;
@@ -2827,7 +2860,7 @@ macro_rules! __export_main_world_impl {
pub(crate) use __export_main_world_impl as export;
#[cfg(target_arch = "wasm32")]
-#[link_section = "component-type:wit-bindgen:0.21.0:main-world:encoded world"]
+#[link_section = "component-type:wit-bindgen:0.25.0:main-world:encoded world"]
#[doc(hidden)]
pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 4840] = *b"\
\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xe7$\x01A\x02\x01A\x1b\
@@ -2932,8 +2965,8 @@ lumi:docker/tag@4.5.3\x05\x0c\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0
s\x05\x0amountpoint\x05\x04name\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04\
args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01\x1apulumi:docker/volume@4.5.3\x05\
\x0d\x04\x01\x1epulumi:docker/main-world@4.5.3\x04\0\x0b\x10\x01\0\x0amain-world\
-\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.201.0\x10\
-wit-bindgen-rust\x060.21.0";
+\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10\
+wit-bindgen-rust\x060.25.0";
#[inline(never)]
#[doc(hidden)]
diff --git a/pulumi_wasm_generator/tests/output/docker_provider/provider/src/lib.rs b/pulumi_wasm_generator/tests/output/docker_provider/provider/src/lib.rs
index 0a6199a2..d4ba715a 100644
--- a/pulumi_wasm_generator/tests/output/docker_provider/provider/src/lib.rs
+++ b/pulumi_wasm_generator/tests/output/docker_provider/provider/src/lib.rs
@@ -11,10 +11,6 @@ use bindings::exports::pulumi::docker::service_config;
use bindings::exports::pulumi::docker::tag;
use bindings::exports::pulumi::docker::volume;
-#[allow(clippy::all)]
-#[allow(dead_code)]
-#[allow(unused_variables)]
-#[allow(unused_unsafe)]
mod bindings;
bindings::export!(Component with_types_in bindings);
diff --git a/pulumi_wasm_generator/tests/output/random_provider/lib/src/lib.rs b/pulumi_wasm_generator/tests/output/random_provider/lib/src/lib.rs
index da92d44c..2245fa2f 100644
--- a/pulumi_wasm_generator/tests/output/random_provider/lib/src/lib.rs
+++ b/pulumi_wasm_generator/tests/output/random_provider/lib/src/lib.rs
@@ -3,10 +3,6 @@ use crate::bindings::component::pulumi_wasm::output_interface::Output as WitOutp
pub mod resource;
pub mod types;
-#[allow(clippy::all)]
-#[allow(dead_code)]
-#[allow(unused_variables)]
-#[allow(unused_unsafe)]
mod bindings {
wit_bindgen::generate!({
// the name of the world in the `*.wit` input file
diff --git a/pulumi_wasm_generator/tests/output/random_provider/provider/src/bindings.rs b/pulumi_wasm_generator/tests/output/random_provider/provider/src/bindings.rs
index 0dc634fa..880c877c 100644
--- a/pulumi_wasm_generator/tests/output/random_provider/provider/src/bindings.rs
+++ b/pulumi_wasm_generator/tests/output/random_provider/provider/src/bindings.rs
@@ -1,8 +1,10 @@
-// Generated by `wit-bindgen` 0.21.0. DO NOT EDIT!
+// Generated by `wit-bindgen` 0.25.0. DO NOT EDIT!
// Options used:
+#[allow(dead_code)]
pub mod component {
+ #[allow(dead_code)]
pub mod pulumi_wasm {
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod output_interface {
#[used]
#[doc(hidden)]
@@ -267,7 +269,7 @@ pub mod component {
}
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod register_interface {
#[used]
#[doc(hidden)]
@@ -446,10 +448,13 @@ pub mod component {
}
}
}
+#[allow(dead_code)]
pub mod exports {
+ #[allow(dead_code)]
pub mod pulumi {
+ #[allow(dead_code)]
pub mod random {
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod random_bytes {
#[used]
#[doc(hidden)]
@@ -495,6 +500,8 @@ pub mod exports {
arg2: i32,
arg3: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let len0 = arg1;
@@ -546,7 +553,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 16]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod random_id {
#[used]
#[doc(hidden)]
@@ -601,6 +608,8 @@ pub mod exports {
arg3: i32,
arg4: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -663,7 +672,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 28]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod random_integer {
#[used]
#[doc(hidden)]
@@ -717,6 +726,8 @@ pub mod exports {
arg4: i32,
arg5: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -780,7 +791,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 20]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod random_password {
#[used]
#[doc(hidden)]
@@ -876,6 +887,8 @@ pub mod exports {
arg12: i32,
arg13: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -997,7 +1010,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 56]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod random_pet {
#[used]
#[doc(hidden)]
@@ -1049,6 +1062,8 @@ pub mod exports {
arg4: i32,
arg5: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -1110,7 +1125,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 16]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod random_shuffle {
#[used]
#[doc(hidden)]
@@ -1164,6 +1179,8 @@ pub mod exports {
arg4: i32,
arg5: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -1227,7 +1244,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 20]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod random_string {
#[used]
#[doc(hidden)]
@@ -1321,6 +1338,8 @@ pub mod exports {
arg12: i32,
arg13: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let handle2;
let handle3;
@@ -1440,7 +1459,7 @@ pub mod exports {
static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 52]);
}
- #[allow(clippy::all)]
+ #[allow(dead_code, clippy::all)]
pub mod random_uuid {
#[used]
#[doc(hidden)]
@@ -1479,6 +1498,8 @@ pub mod exports {
arg1: usize,
arg2: i32,
) -> *mut u8 {
+ #[cfg(target_arch = "wasm32")]
+ _rt::run_ctors_once();
let handle1;
let len0 = arg1;
let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0);
@@ -1557,6 +1578,7 @@ mod _rt {
/// drop a resource.
///
/// This generally is implemented by generated code, not user-facing code.
+ #[allow(clippy::missing_safety_doc)]
pub unsafe trait WasmResource {
/// Invokes the `[resource-drop]...` intrinsic.
unsafe fn drop(handle: u32);
@@ -1635,7 +1657,7 @@ mod _rt {
_ => panic!("invalid bool discriminant"),
}
} else {
- ::core::mem::transmute::(val)
+ val != 0
}
}
pub unsafe fn invalid_enum_discriminant() -> T {
@@ -1646,6 +1668,11 @@ mod _rt {
}
}
pub use alloc_crate::alloc;
+
+ #[cfg(target_arch = "wasm32")]
+ pub fn run_ctors_once() {
+ wit_bindgen_rt::run_ctors_once();
+ }
extern crate alloc as alloc_crate;
}
@@ -1685,7 +1712,7 @@ macro_rules! __export_main_world_impl {
pub(crate) use __export_main_world_impl as export;
#[cfg(target_arch = "wasm32")]
-#[link_section = "component-type:wit-bindgen:0.21.0:main-world:encoded world"]
+#[link_section = "component-type:wit-bindgen:0.25.0:main-world:encoded world"]
#[doc(hidden)]
pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 2641] = *b"\
\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xd0\x13\x01A\x02\x01\
@@ -1747,7 +1774,7 @@ B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x01\x07keepers\x
res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01\
\x20pulumi:random/random-uuid@4.15.0\x05\x0a\x04\x01\x1fpulumi:random/main-world\
@4.15.0\x04\0\x0b\x10\x01\0\x0amain-world\x03\0\0\0G\x09producers\x01\x0cprocess\
-ed-by\x02\x0dwit-component\x070.201.0\x10wit-bindgen-rust\x060.21.0";
+ed-by\x02\x0dwit-component\x070.208.1\x10wit-bindgen-rust\x060.25.0";
#[inline(never)]
#[doc(hidden)]
diff --git a/pulumi_wasm_generator/tests/output/random_provider/provider/src/lib.rs b/pulumi_wasm_generator/tests/output/random_provider/provider/src/lib.rs
index b752d6f1..b2a4b608 100644
--- a/pulumi_wasm_generator/tests/output/random_provider/provider/src/lib.rs
+++ b/pulumi_wasm_generator/tests/output/random_provider/provider/src/lib.rs
@@ -8,10 +8,6 @@ use bindings::exports::pulumi::random::random_shuffle;
use bindings::exports::pulumi::random::random_string;
use bindings::exports::pulumi::random::random_uuid;
-#[allow(clippy::all)]
-#[allow(dead_code)]
-#[allow(unused_variables)]
-#[allow(unused_unsafe)]
mod bindings;
bindings::export!(Component with_types_in bindings);