From 4029cc6a308a8cd55dad7007ba8dc1f1ed6ff8a2 Mon Sep 17 00:00:00 2001 From: Andrzej Ressel Date: Sat, 13 Jul 2024 18:24:09 +0200 Subject: [PATCH] Remove bindings.rs --- .gitignore | 2 +- .../src/bindings.rs | 2854 ----------------- .../src/bindings.rs | 1669 ---------- pulumi_wasm/src/bindings.rs | 1351 -------- 4 files changed, 1 insertion(+), 5875 deletions(-) delete mode 100644 providers/pulumi_wasm_provider_docker/src/bindings.rs delete mode 100644 providers/pulumi_wasm_provider_random/src/bindings.rs delete mode 100644 pulumi_wasm/src/bindings.rs diff --git a/.gitignore b/.gitignore index b6447cbe9..315608324 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,4 @@ target .idea/ output.log -*.wasm \ No newline at end of file +bindings.rs \ No newline at end of file diff --git a/providers/pulumi_wasm_provider_docker/src/bindings.rs b/providers/pulumi_wasm_provider_docker/src/bindings.rs deleted file mode 100644 index 232bbe9ef..000000000 --- a/providers/pulumi_wasm_provider_docker/src/bindings.rs +++ /dev/null @@ -1,2854 +0,0 @@ -// 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(dead_code, clippy::all)] - pub mod output_interface { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::__link_custom_section_describing_imports; - use super::super::super::_rt; - - #[derive(Debug)] - #[repr(transparent)] - pub struct Output { - handle: _rt::Resource, - } - - impl Output { - #[doc(hidden)] - pub unsafe fn from_handle(handle: u32) -> Self { - Self { - handle: _rt::Resource::from_handle(handle), - } - } - - #[doc(hidden)] - pub fn take_handle(&self) -> u32 { - _rt::Resource::take_handle(&self.handle) - } - - #[doc(hidden)] - pub fn handle(&self) -> u32 { - _rt::Resource::handle(&self.handle) - } - } - - unsafe impl _rt::WasmResource for Output { - #[inline] - unsafe fn drop(_handle: u32) { - #[cfg(not(target_arch = "wasm32"))] - unreachable!(); - - #[cfg(target_arch = "wasm32")] - { - #[link(wasm_import_module = "component:pulumi-wasm/output-interface@0.1.0")] - extern "C" { - #[link_name = "[resource-drop]output"] - fn drop(_: u32); - } - - drop(_handle); - } - } - } - - impl Output { - #[allow(unused_unsafe, clippy::all)] - pub fn new(value: &str) -> Self { - unsafe { - let vec0 = value; - let ptr0 = vec0.as_ptr().cast::(); - let len0 = vec0.len(); - - #[cfg(target_arch = "wasm32")] - #[link(wasm_import_module = "component:pulumi-wasm/output-interface@0.1.0")] - extern "C" { - #[link_name = "[constructor]output"] - fn wit_import(_: *mut u8, _: usize) -> i32; - } - - #[cfg(not(target_arch = "wasm32"))] - fn wit_import(_: *mut u8, _: usize) -> i32 { - unreachable!() - } - let ret = wit_import(ptr0.cast_mut(), len0); - Output::from_handle(ret as u32) - } - } - } - impl Output { - #[allow(unused_unsafe, clippy::all)] - pub fn map(&self, function_name: &str) -> Output { - unsafe { - let vec0 = function_name; - let ptr0 = vec0.as_ptr().cast::(); - let len0 = vec0.len(); - - #[cfg(target_arch = "wasm32")] - #[link(wasm_import_module = "component:pulumi-wasm/output-interface@0.1.0")] - extern "C" { - #[link_name = "[method]output.map"] - fn wit_import(_: i32, _: *mut u8, _: usize) -> i32; - } - - #[cfg(not(target_arch = "wasm32"))] - fn wit_import(_: i32, _: *mut u8, _: usize) -> i32 { - unreachable!() - } - let ret = wit_import((self).handle() as i32, ptr0.cast_mut(), len0); - Output::from_handle(ret as u32) - } - } - } - impl Output { - #[allow(unused_unsafe, clippy::all)] - pub fn duplicate(&self) -> Output { - unsafe { - #[cfg(target_arch = "wasm32")] - #[link(wasm_import_module = "component:pulumi-wasm/output-interface@0.1.0")] - extern "C" { - #[link_name = "[method]output.duplicate"] - fn wit_import(_: i32) -> i32; - } - - #[cfg(not(target_arch = "wasm32"))] - fn wit_import(_: i32) -> i32 { - unreachable!() - } - let ret = wit_import((self).handle() as i32); - Output::from_handle(ret as u32) - } - } - } - } - - #[allow(dead_code, clippy::all)] - pub mod register_interface { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::__link_custom_section_describing_imports; - use super::super::super::_rt; - pub type Output = super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct ObjectField<'a> { - pub name: _rt::String, - pub value: &'a Output, - } - impl<'a> ::core::fmt::Debug for ObjectField<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ObjectField") - .field("name", &self.name) - .field("value", &self.value) - .finish() - } - } - #[derive(Clone)] - pub struct ResultField { - pub name: _rt::String, - } - impl ::core::fmt::Debug for ResultField { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ResultField") - .field("name", &self.name) - .finish() - } - } - pub struct RegisterResourceResultField { - pub name: _rt::String, - pub output: Output, - } - impl ::core::fmt::Debug for RegisterResourceResultField { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("RegisterResourceResultField") - .field("name", &self.name) - .field("output", &self.output) - .finish() - } - } - pub struct RegisterResourceRequest<'a> { - pub type_: _rt::String, - pub name: _rt::String, - pub object: _rt::Vec>, - pub results: _rt::Vec, - } - impl<'a> ::core::fmt::Debug for RegisterResourceRequest<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("RegisterResourceRequest") - .field("type", &self.type_) - .field("name", &self.name) - .field("object", &self.object) - .field("results", &self.results) - .finish() - } - } - pub struct RegisterResourceResult { - pub fields: _rt::Vec, - } - impl ::core::fmt::Debug for RegisterResourceResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("RegisterResourceResult") - .field("fields", &self.fields) - .finish() - } - } - #[allow(unused_unsafe, clippy::all)] - pub fn register(request: &RegisterResourceRequest<'_>) -> RegisterResourceResult { - unsafe { - #[repr(align(4))] - struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); - let RegisterResourceRequest { - type_: type_0, - name: name0, - object: object0, - results: results0, - } = request; - let vec1 = type_0; - let ptr1 = vec1.as_ptr().cast::(); - let len1 = vec1.len(); - let vec2 = name0; - let ptr2 = vec2.as_ptr().cast::(); - let len2 = vec2.len(); - let vec5 = object0; - let len5 = vec5.len(); - let layout5 = _rt::alloc::Layout::from_size_align_unchecked(vec5.len() * 12, 4); - let result5 = if layout5.size() != 0 { - let ptr = _rt::alloc::alloc(layout5).cast::(); - if ptr.is_null() { - _rt::alloc::handle_alloc_error(layout5); - } - ptr - } else { - { - ::core::ptr::null_mut() - } - }; - for (i, e) in vec5.into_iter().enumerate() { - let base = result5.add(i * 12); - { - let ObjectField { - name: name3, - value: value3, - } = e; - let vec4 = name3; - let ptr4 = vec4.as_ptr().cast::(); - let len4 = vec4.len(); - *base.add(4).cast::() = len4; - *base.add(0).cast::<*mut u8>() = ptr4.cast_mut(); - *base.add(8).cast::() = (value3).handle() as i32; - } - } - let vec8 = results0; - let len8 = vec8.len(); - let layout8 = _rt::alloc::Layout::from_size_align_unchecked(vec8.len() * 8, 4); - let result8 = if layout8.size() != 0 { - let ptr = _rt::alloc::alloc(layout8).cast::(); - if ptr.is_null() { - _rt::alloc::handle_alloc_error(layout8); - } - ptr - } else { - { - ::core::ptr::null_mut() - } - }; - for (i, e) in vec8.into_iter().enumerate() { - let base = result8.add(i * 8); - { - let ResultField { name: name6 } = e; - let vec7 = name6; - let ptr7 = vec7.as_ptr().cast::(); - let len7 = vec7.len(); - *base.add(4).cast::() = len7; - *base.add(0).cast::<*mut u8>() = ptr7.cast_mut(); - } - } - let ptr9 = ret_area.0.as_mut_ptr().cast::(); - #[cfg(target_arch = "wasm32")] - #[link(wasm_import_module = "component:pulumi-wasm/register-interface@0.1.0")] - extern "C" { - #[link_name = "register"] - fn wit_import( - _: *mut u8, - _: usize, - _: *mut u8, - _: usize, - _: *mut u8, - _: usize, - _: *mut u8, - _: usize, - _: *mut u8, - ); - } - - #[cfg(not(target_arch = "wasm32"))] - fn wit_import( - _: *mut u8, - _: usize, - _: *mut u8, - _: usize, - _: *mut u8, - _: usize, - _: *mut u8, - _: usize, - _: *mut u8, - ) { - unreachable!() - } - wit_import( - ptr1.cast_mut(), - len1, - ptr2.cast_mut(), - len2, - result5, - len5, - result8, - len8, - ptr9, - ); - let l10 = *ptr9.add(0).cast::<*mut u8>(); - let l11 = *ptr9.add(4).cast::(); - let base16 = l10; - let len16 = l11; - let mut result16 = _rt::Vec::with_capacity(len16); - for i in 0..len16 { - let base = base16.add(i * 12); - let e16 = { - let l12 = *base.add(0).cast::<*mut u8>(); - let l13 = *base.add(4).cast::(); - let len14 = l13; - let bytes14 = _rt::Vec::from_raw_parts(l12.cast(), len14, len14); - let l15 = *base.add(8).cast::(); - - RegisterResourceResultField{ - name: _rt::string_lift(bytes14), - output: super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l15 as u32), - } - }; - result16.push(e16); - } - _rt::cabi_dealloc(base16, len16 * 12, 4); - if layout5.size() != 0 { - _rt::alloc::dealloc(result5.cast(), layout5); - } - if layout8.size() != 0 { - _rt::alloc::dealloc(result8.cast(), layout8); - } - RegisterResourceResult { fields: result16 } - } - } - } - } -} -#[allow(dead_code)] -pub mod exports { - #[allow(dead_code)] - pub mod pulumi { - #[allow(dead_code)] - pub mod docker { - #[allow(dead_code, clippy::all)] - pub mod container { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub attach: &'a Output, - pub capabilities: &'a Output, - pub cgroupns_mode: &'a Output, - pub command: &'a Output, - pub container_read_refresh_timeout_milliseconds: &'a Output, - pub cpu_set: &'a Output, - pub cpu_shares: &'a Output, - pub destroy_grace_seconds: &'a Output, - pub devices: &'a Output, - pub dns: &'a Output, - pub dns_opts: &'a Output, - pub dns_searches: &'a Output, - pub domainname: &'a Output, - pub entrypoints: &'a Output, - pub envs: &'a Output, - pub gpus: &'a Output, - pub group_adds: &'a Output, - pub healthcheck: &'a Output, - pub hostname: &'a Output, - pub hosts: &'a Output, - pub image: &'a Output, - pub init: &'a Output, - pub ipc_mode: &'a Output, - pub labels: &'a Output, - pub log_driver: &'a Output, - pub log_opts: &'a Output, - pub logs: &'a Output, - pub max_retry_count: &'a Output, - pub memory: &'a Output, - pub memory_swap: &'a Output, - pub mounts: &'a Output, - pub must_run: &'a Output, - pub name: &'a Output, - pub network_mode: &'a Output, - pub networks_advanced: &'a Output, - pub pid_mode: &'a Output, - pub ports: &'a Output, - pub privileged: &'a Output, - pub publish_all_ports: &'a Output, - pub read_only: &'a Output, - pub remove_volumes: &'a Output, - pub restart: &'a Output, - pub rm: &'a Output, - pub runtime: &'a Output, - pub security_opts: &'a Output, - pub shm_size: &'a Output, - pub start: &'a Output, - pub stdin_open: &'a Output, - pub stop_signal: &'a Output, - pub stop_timeout: &'a Output, - pub storage_opts: &'a Output, - pub sysctls: &'a Output, - pub tmpfs: &'a Output, - pub tty: &'a Output, - pub ulimits: &'a Output, - pub uploads: &'a Output, - pub user: &'a Output, - pub userns_mode: &'a Output, - pub volumes: &'a Output, - pub wait: &'a Output, - pub wait_timeout: &'a Output, - pub working_dir: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("attach", &self.attach) - .field("capabilities", &self.capabilities) - .field("cgroupns-mode", &self.cgroupns_mode) - .field("command", &self.command) - .field( - "container-read-refresh-timeout-milliseconds", - &self.container_read_refresh_timeout_milliseconds, - ) - .field("cpu-set", &self.cpu_set) - .field("cpu-shares", &self.cpu_shares) - .field("destroy-grace-seconds", &self.destroy_grace_seconds) - .field("devices", &self.devices) - .field("dns", &self.dns) - .field("dns-opts", &self.dns_opts) - .field("dns-searches", &self.dns_searches) - .field("domainname", &self.domainname) - .field("entrypoints", &self.entrypoints) - .field("envs", &self.envs) - .field("gpus", &self.gpus) - .field("group-adds", &self.group_adds) - .field("healthcheck", &self.healthcheck) - .field("hostname", &self.hostname) - .field("hosts", &self.hosts) - .field("image", &self.image) - .field("init", &self.init) - .field("ipc-mode", &self.ipc_mode) - .field("labels", &self.labels) - .field("log-driver", &self.log_driver) - .field("log-opts", &self.log_opts) - .field("logs", &self.logs) - .field("max-retry-count", &self.max_retry_count) - .field("memory", &self.memory) - .field("memory-swap", &self.memory_swap) - .field("mounts", &self.mounts) - .field("must-run", &self.must_run) - .field("name", &self.name) - .field("network-mode", &self.network_mode) - .field("networks-advanced", &self.networks_advanced) - .field("pid-mode", &self.pid_mode) - .field("ports", &self.ports) - .field("privileged", &self.privileged) - .field("publish-all-ports", &self.publish_all_ports) - .field("read-only", &self.read_only) - .field("remove-volumes", &self.remove_volumes) - .field("restart", &self.restart) - .field("rm", &self.rm) - .field("runtime", &self.runtime) - .field("security-opts", &self.security_opts) - .field("shm-size", &self.shm_size) - .field("start", &self.start) - .field("stdin-open", &self.stdin_open) - .field("stop-signal", &self.stop_signal) - .field("stop-timeout", &self.stop_timeout) - .field("storage-opts", &self.storage_opts) - .field("sysctls", &self.sysctls) - .field("tmpfs", &self.tmpfs) - .field("tty", &self.tty) - .field("ulimits", &self.ulimits) - .field("uploads", &self.uploads) - .field("user", &self.user) - .field("userns-mode", &self.userns_mode) - .field("volumes", &self.volumes) - .field("wait", &self.wait) - .field("wait-timeout", &self.wait_timeout) - .field("working-dir", &self.working_dir) - .finish() - } - } - pub struct Res { - pub attach: Output, - pub bridge: Output, - pub capabilities: Output, - pub cgroupns_mode: Output, - pub command: Output, - pub container_logs: Output, - pub container_read_refresh_timeout_milliseconds: Output, - pub cpu_set: Output, - pub cpu_shares: Output, - pub destroy_grace_seconds: Output, - pub devices: Output, - pub dns: Output, - pub dns_opts: Output, - pub dns_searches: Output, - pub domainname: Output, - pub entrypoints: Output, - pub envs: Output, - pub exit_code: Output, - pub gpus: Output, - pub group_adds: Output, - pub healthcheck: Output, - pub hostname: Output, - pub hosts: Output, - pub image: Output, - pub init: Output, - pub ipc_mode: Output, - pub labels: Output, - pub log_driver: Output, - pub log_opts: Output, - pub logs: Output, - pub max_retry_count: Output, - pub memory: Output, - pub memory_swap: Output, - pub mounts: Output, - pub must_run: Output, - pub name: Output, - pub network_datas: Output, - pub network_mode: Output, - pub networks_advanced: Output, - pub pid_mode: Output, - pub ports: Output, - pub privileged: Output, - pub publish_all_ports: Output, - pub read_only: Output, - pub remove_volumes: Output, - pub restart: Output, - pub rm: Output, - pub runtime: Output, - pub security_opts: Output, - pub shm_size: Output, - pub start: Output, - pub stdin_open: Output, - pub stop_signal: Output, - pub stop_timeout: Output, - pub storage_opts: Output, - pub sysctls: Output, - pub tmpfs: Output, - pub tty: Output, - pub ulimits: Output, - pub uploads: Output, - pub user: Output, - pub userns_mode: Output, - pub volumes: Output, - pub wait: Output, - pub wait_timeout: Output, - pub working_dir: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("attach", &self.attach) - .field("bridge", &self.bridge) - .field("capabilities", &self.capabilities) - .field("cgroupns-mode", &self.cgroupns_mode) - .field("command", &self.command) - .field("container-logs", &self.container_logs) - .field( - "container-read-refresh-timeout-milliseconds", - &self.container_read_refresh_timeout_milliseconds, - ) - .field("cpu-set", &self.cpu_set) - .field("cpu-shares", &self.cpu_shares) - .field("destroy-grace-seconds", &self.destroy_grace_seconds) - .field("devices", &self.devices) - .field("dns", &self.dns) - .field("dns-opts", &self.dns_opts) - .field("dns-searches", &self.dns_searches) - .field("domainname", &self.domainname) - .field("entrypoints", &self.entrypoints) - .field("envs", &self.envs) - .field("exit-code", &self.exit_code) - .field("gpus", &self.gpus) - .field("group-adds", &self.group_adds) - .field("healthcheck", &self.healthcheck) - .field("hostname", &self.hostname) - .field("hosts", &self.hosts) - .field("image", &self.image) - .field("init", &self.init) - .field("ipc-mode", &self.ipc_mode) - .field("labels", &self.labels) - .field("log-driver", &self.log_driver) - .field("log-opts", &self.log_opts) - .field("logs", &self.logs) - .field("max-retry-count", &self.max_retry_count) - .field("memory", &self.memory) - .field("memory-swap", &self.memory_swap) - .field("mounts", &self.mounts) - .field("must-run", &self.must_run) - .field("name", &self.name) - .field("network-datas", &self.network_datas) - .field("network-mode", &self.network_mode) - .field("networks-advanced", &self.networks_advanced) - .field("pid-mode", &self.pid_mode) - .field("ports", &self.ports) - .field("privileged", &self.privileged) - .field("publish-all-ports", &self.publish_all_ports) - .field("read-only", &self.read_only) - .field("remove-volumes", &self.remove_volumes) - .field("restart", &self.restart) - .field("rm", &self.rm) - .field("runtime", &self.runtime) - .field("security-opts", &self.security_opts) - .field("shm-size", &self.shm_size) - .field("start", &self.start) - .field("stdin-open", &self.stdin_open) - .field("stop-signal", &self.stop_signal) - .field("stop-timeout", &self.stop_timeout) - .field("storage-opts", &self.storage_opts) - .field("sysctls", &self.sysctls) - .field("tmpfs", &self.tmpfs) - .field("tty", &self.tty) - .field("ulimits", &self.ulimits) - .field("uploads", &self.uploads) - .field("user", &self.user) - .field("userns-mode", &self.userns_mode) - .field("volumes", &self.volumes) - .field("wait", &self.wait) - .field("wait-timeout", &self.wait_timeout) - .field("working-dir", &self.working_dir) - .finish() - } - } - #[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; - let handle10; - let handle12; - let handle14; - let handle16; - let handle18; - let handle20; - let handle22; - let handle24; - let handle26; - let handle28; - let handle30; - let handle32; - let handle34; - let handle36; - let handle38; - let handle40; - let handle42; - let handle44; - let handle46; - let handle48; - let handle50; - let handle52; - let handle54; - let handle56; - let handle58; - let handle60; - let handle62; - let handle64; - let handle66; - let handle68; - let handle70; - let handle72; - let handle74; - let handle76; - let handle78; - let handle80; - let handle82; - let handle84; - let handle86; - let handle88; - let handle90; - let handle92; - let handle94; - let handle96; - let handle98; - let handle100; - let handle102; - let handle104; - let handle106; - let handle108; - let handle110; - let handle112; - let handle114; - let handle116; - let handle118; - let handle120; - let handle122; - let handle124; - let handle126; - let l0 = *arg0.add(0).cast::<*mut u8>(); - let l1 = *arg0.add(4).cast::(); - let len2 = l1; - let bytes2 = _rt::Vec::from_raw_parts(l0.cast(), len2, len2); - let l3 = *arg0.add(8).cast::(); - let l5 = *arg0.add(12).cast::(); - let l7 = *arg0.add(16).cast::(); - let l9 = *arg0.add(20).cast::(); - let l11 = *arg0.add(24).cast::(); - let l13 = *arg0.add(28).cast::(); - let l15 = *arg0.add(32).cast::(); - let l17 = *arg0.add(36).cast::(); - let l19 = *arg0.add(40).cast::(); - let l21 = *arg0.add(44).cast::(); - let l23 = *arg0.add(48).cast::(); - let l25 = *arg0.add(52).cast::(); - let l27 = *arg0.add(56).cast::(); - let l29 = *arg0.add(60).cast::(); - let l31 = *arg0.add(64).cast::(); - let l33 = *arg0.add(68).cast::(); - let l35 = *arg0.add(72).cast::(); - let l37 = *arg0.add(76).cast::(); - let l39 = *arg0.add(80).cast::(); - let l41 = *arg0.add(84).cast::(); - let l43 = *arg0.add(88).cast::(); - let l45 = *arg0.add(92).cast::(); - let l47 = *arg0.add(96).cast::(); - let l49 = *arg0.add(100).cast::(); - let l51 = *arg0.add(104).cast::(); - let l53 = *arg0.add(108).cast::(); - let l55 = *arg0.add(112).cast::(); - let l57 = *arg0.add(116).cast::(); - let l59 = *arg0.add(120).cast::(); - let l61 = *arg0.add(124).cast::(); - let l63 = *arg0.add(128).cast::(); - let l65 = *arg0.add(132).cast::(); - let l67 = *arg0.add(136).cast::(); - let l69 = *arg0.add(140).cast::(); - let l71 = *arg0.add(144).cast::(); - let l73 = *arg0.add(148).cast::(); - let l75 = *arg0.add(152).cast::(); - let l77 = *arg0.add(156).cast::(); - let l79 = *arg0.add(160).cast::(); - let l81 = *arg0.add(164).cast::(); - let l83 = *arg0.add(168).cast::(); - let l85 = *arg0.add(172).cast::(); - let l87 = *arg0.add(176).cast::(); - let l89 = *arg0.add(180).cast::(); - let l91 = *arg0.add(184).cast::(); - let l93 = *arg0.add(188).cast::(); - let l95 = *arg0.add(192).cast::(); - let l97 = *arg0.add(196).cast::(); - let l99 = *arg0.add(200).cast::(); - let l101 = *arg0.add(204).cast::(); - let l103 = *arg0.add(208).cast::(); - let l105 = *arg0.add(212).cast::(); - let l107 = *arg0.add(216).cast::(); - let l109 = *arg0.add(220).cast::(); - let l111 = *arg0.add(224).cast::(); - let l113 = *arg0.add(228).cast::(); - let l115 = *arg0.add(232).cast::(); - let l117 = *arg0.add(236).cast::(); - let l119 = *arg0.add(240).cast::(); - let l121 = *arg0.add(244).cast::(); - let l123 = *arg0.add(248).cast::(); - let l125 = *arg0.add(252).cast::(); - let result127 = T::invoke( - _rt::string_lift(bytes2), - Args { - attach: { - handle4 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l3 as u32); - &handle4 - }, - capabilities: { - handle6 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l5 as u32); - &handle6 - }, - cgroupns_mode: { - handle8 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l7 as u32); - &handle8 - }, - command: { - handle10 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l9 as u32); - &handle10 - }, - container_read_refresh_timeout_milliseconds: { - handle12 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l11 as u32); - &handle12 - }, - cpu_set: { - handle14 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l13 as u32); - &handle14 - }, - cpu_shares: { - handle16 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l15 as u32); - &handle16 - }, - destroy_grace_seconds: { - handle18 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l17 as u32); - &handle18 - }, - devices: { - handle20 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l19 as u32); - &handle20 - }, - dns: { - handle22 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l21 as u32); - &handle22 - }, - dns_opts: { - handle24 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l23 as u32); - &handle24 - }, - dns_searches: { - handle26 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l25 as u32); - &handle26 - }, - domainname: { - handle28 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l27 as u32); - &handle28 - }, - entrypoints: { - handle30 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l29 as u32); - &handle30 - }, - envs: { - handle32 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l31 as u32); - &handle32 - }, - gpus: { - handle34 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l33 as u32); - &handle34 - }, - group_adds: { - handle36 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l35 as u32); - &handle36 - }, - healthcheck: { - handle38 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l37 as u32); - &handle38 - }, - hostname: { - handle40 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l39 as u32); - &handle40 - }, - hosts: { - handle42 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l41 as u32); - &handle42 - }, - image: { - handle44 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l43 as u32); - &handle44 - }, - init: { - handle46 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l45 as u32); - &handle46 - }, - ipc_mode: { - handle48 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l47 as u32); - &handle48 - }, - labels: { - handle50 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l49 as u32); - &handle50 - }, - log_driver: { - handle52 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l51 as u32); - &handle52 - }, - log_opts: { - handle54 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l53 as u32); - &handle54 - }, - logs: { - handle56 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l55 as u32); - &handle56 - }, - max_retry_count: { - handle58 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l57 as u32); - &handle58 - }, - memory: { - handle60 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l59 as u32); - &handle60 - }, - memory_swap: { - handle62 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l61 as u32); - &handle62 - }, - mounts: { - handle64 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l63 as u32); - &handle64 - }, - must_run: { - handle66 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l65 as u32); - &handle66 - }, - name: { - handle68 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l67 as u32); - &handle68 - }, - network_mode: { - handle70 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l69 as u32); - &handle70 - }, - networks_advanced: { - handle72 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l71 as u32); - &handle72 - }, - pid_mode: { - handle74 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l73 as u32); - &handle74 - }, - ports: { - handle76 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l75 as u32); - &handle76 - }, - privileged: { - handle78 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l77 as u32); - &handle78 - }, - publish_all_ports: { - handle80 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l79 as u32); - &handle80 - }, - read_only: { - handle82 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l81 as u32); - &handle82 - }, - remove_volumes: { - handle84 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l83 as u32); - &handle84 - }, - restart: { - handle86 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l85 as u32); - &handle86 - }, - rm: { - handle88 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l87 as u32); - &handle88 - }, - runtime: { - handle90 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l89 as u32); - &handle90 - }, - security_opts: { - handle92 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l91 as u32); - &handle92 - }, - shm_size: { - handle94 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l93 as u32); - &handle94 - }, - start: { - handle96 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l95 as u32); - &handle96 - }, - stdin_open: { - handle98 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l97 as u32); - &handle98 - }, - stop_signal: { - handle100 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l99 as u32); - &handle100 - }, - stop_timeout: { - handle102 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l101 as u32); - &handle102 - }, - storage_opts: { - handle104 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l103 as u32); - &handle104 - }, - sysctls: { - handle106 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l105 as u32); - &handle106 - }, - tmpfs: { - handle108 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l107 as u32); - &handle108 - }, - tty: { - handle110 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l109 as u32); - &handle110 - }, - ulimits: { - handle112 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l111 as u32); - &handle112 - }, - uploads: { - handle114 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l113 as u32); - &handle114 - }, - user: { - handle116 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l115 as u32); - &handle116 - }, - userns_mode: { - handle118 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l117 as u32); - &handle118 - }, - volumes: { - handle120 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l119 as u32); - &handle120 - }, - wait: { - handle122 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l121 as u32); - &handle122 - }, - wait_timeout: { - handle124 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l123 as u32); - &handle124 - }, - working_dir: { - handle126 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l125 as u32); - &handle126 - }, - }, - ); - _rt::cabi_dealloc(arg0, 256, 4); - let ptr128 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - attach: attach129, - bridge: bridge129, - capabilities: capabilities129, - cgroupns_mode: cgroupns_mode129, - command: command129, - container_logs: container_logs129, - container_read_refresh_timeout_milliseconds: - container_read_refresh_timeout_milliseconds129, - cpu_set: cpu_set129, - cpu_shares: cpu_shares129, - destroy_grace_seconds: destroy_grace_seconds129, - devices: devices129, - dns: dns129, - dns_opts: dns_opts129, - dns_searches: dns_searches129, - domainname: domainname129, - entrypoints: entrypoints129, - envs: envs129, - exit_code: exit_code129, - gpus: gpus129, - group_adds: group_adds129, - healthcheck: healthcheck129, - hostname: hostname129, - hosts: hosts129, - image: image129, - init: init129, - ipc_mode: ipc_mode129, - labels: labels129, - log_driver: log_driver129, - log_opts: log_opts129, - logs: logs129, - max_retry_count: max_retry_count129, - memory: memory129, - memory_swap: memory_swap129, - mounts: mounts129, - must_run: must_run129, - name: name129, - network_datas: network_datas129, - network_mode: network_mode129, - networks_advanced: networks_advanced129, - pid_mode: pid_mode129, - ports: ports129, - privileged: privileged129, - publish_all_ports: publish_all_ports129, - read_only: read_only129, - remove_volumes: remove_volumes129, - restart: restart129, - rm: rm129, - runtime: runtime129, - security_opts: security_opts129, - shm_size: shm_size129, - start: start129, - stdin_open: stdin_open129, - stop_signal: stop_signal129, - stop_timeout: stop_timeout129, - storage_opts: storage_opts129, - sysctls: sysctls129, - tmpfs: tmpfs129, - tty: tty129, - ulimits: ulimits129, - uploads: uploads129, - user: user129, - userns_mode: userns_mode129, - volumes: volumes129, - wait: wait129, - wait_timeout: wait_timeout129, - working_dir: working_dir129, - } = result127; - *ptr128.add(0).cast::() = (attach129).take_handle() as i32; - *ptr128.add(4).cast::() = (bridge129).take_handle() as i32; - *ptr128.add(8).cast::() = (capabilities129).take_handle() as i32; - *ptr128.add(12).cast::() = (cgroupns_mode129).take_handle() as i32; - *ptr128.add(16).cast::() = (command129).take_handle() as i32; - *ptr128.add(20).cast::() = (container_logs129).take_handle() as i32; - *ptr128.add(24).cast::() = - (container_read_refresh_timeout_milliseconds129).take_handle() as i32; - *ptr128.add(28).cast::() = (cpu_set129).take_handle() as i32; - *ptr128.add(32).cast::() = (cpu_shares129).take_handle() as i32; - *ptr128.add(36).cast::() = (destroy_grace_seconds129).take_handle() as i32; - *ptr128.add(40).cast::() = (devices129).take_handle() as i32; - *ptr128.add(44).cast::() = (dns129).take_handle() as i32; - *ptr128.add(48).cast::() = (dns_opts129).take_handle() as i32; - *ptr128.add(52).cast::() = (dns_searches129).take_handle() as i32; - *ptr128.add(56).cast::() = (domainname129).take_handle() as i32; - *ptr128.add(60).cast::() = (entrypoints129).take_handle() as i32; - *ptr128.add(64).cast::() = (envs129).take_handle() as i32; - *ptr128.add(68).cast::() = (exit_code129).take_handle() as i32; - *ptr128.add(72).cast::() = (gpus129).take_handle() as i32; - *ptr128.add(76).cast::() = (group_adds129).take_handle() as i32; - *ptr128.add(80).cast::() = (healthcheck129).take_handle() as i32; - *ptr128.add(84).cast::() = (hostname129).take_handle() as i32; - *ptr128.add(88).cast::() = (hosts129).take_handle() as i32; - *ptr128.add(92).cast::() = (image129).take_handle() as i32; - *ptr128.add(96).cast::() = (init129).take_handle() as i32; - *ptr128.add(100).cast::() = (ipc_mode129).take_handle() as i32; - *ptr128.add(104).cast::() = (labels129).take_handle() as i32; - *ptr128.add(108).cast::() = (log_driver129).take_handle() as i32; - *ptr128.add(112).cast::() = (log_opts129).take_handle() as i32; - *ptr128.add(116).cast::() = (logs129).take_handle() as i32; - *ptr128.add(120).cast::() = (max_retry_count129).take_handle() as i32; - *ptr128.add(124).cast::() = (memory129).take_handle() as i32; - *ptr128.add(128).cast::() = (memory_swap129).take_handle() as i32; - *ptr128.add(132).cast::() = (mounts129).take_handle() as i32; - *ptr128.add(136).cast::() = (must_run129).take_handle() as i32; - *ptr128.add(140).cast::() = (name129).take_handle() as i32; - *ptr128.add(144).cast::() = (network_datas129).take_handle() as i32; - *ptr128.add(148).cast::() = (network_mode129).take_handle() as i32; - *ptr128.add(152).cast::() = (networks_advanced129).take_handle() as i32; - *ptr128.add(156).cast::() = (pid_mode129).take_handle() as i32; - *ptr128.add(160).cast::() = (ports129).take_handle() as i32; - *ptr128.add(164).cast::() = (privileged129).take_handle() as i32; - *ptr128.add(168).cast::() = (publish_all_ports129).take_handle() as i32; - *ptr128.add(172).cast::() = (read_only129).take_handle() as i32; - *ptr128.add(176).cast::() = (remove_volumes129).take_handle() as i32; - *ptr128.add(180).cast::() = (restart129).take_handle() as i32; - *ptr128.add(184).cast::() = (rm129).take_handle() as i32; - *ptr128.add(188).cast::() = (runtime129).take_handle() as i32; - *ptr128.add(192).cast::() = (security_opts129).take_handle() as i32; - *ptr128.add(196).cast::() = (shm_size129).take_handle() as i32; - *ptr128.add(200).cast::() = (start129).take_handle() as i32; - *ptr128.add(204).cast::() = (stdin_open129).take_handle() as i32; - *ptr128.add(208).cast::() = (stop_signal129).take_handle() as i32; - *ptr128.add(212).cast::() = (stop_timeout129).take_handle() as i32; - *ptr128.add(216).cast::() = (storage_opts129).take_handle() as i32; - *ptr128.add(220).cast::() = (sysctls129).take_handle() as i32; - *ptr128.add(224).cast::() = (tmpfs129).take_handle() as i32; - *ptr128.add(228).cast::() = (tty129).take_handle() as i32; - *ptr128.add(232).cast::() = (ulimits129).take_handle() as i32; - *ptr128.add(236).cast::() = (uploads129).take_handle() as i32; - *ptr128.add(240).cast::() = (user129).take_handle() as i32; - *ptr128.add(244).cast::() = (userns_mode129).take_handle() as i32; - *ptr128.add(248).cast::() = (volumes129).take_handle() as i32; - *ptr128.add(252).cast::() = (wait129).take_handle() as i32; - *ptr128.add(256).cast::() = (wait_timeout129).take_handle() as i32; - *ptr128.add(260).cast::() = (working_dir129).take_handle() as i32; - ptr128 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_docker_container_4_5_3_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:docker/container@4.5.3#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0) - } - };); - } - #[doc(hidden)] - pub(crate) use __export_pulumi_docker_container_4_5_3_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 264]); - static mut _RET_AREA: _RetArea = - _RetArea([::core::mem::MaybeUninit::uninit(); 264]); - } - - #[allow(dead_code, clippy::all)] - pub mod image { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub build: &'a Output, - pub build_on_preview: &'a Output, - pub image_name: &'a Output, - pub registry: &'a Output, - pub skip_push: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("build", &self.build) - .field("build-on-preview", &self.build_on_preview) - .field("image-name", &self.image_name) - .field("registry", &self.registry) - .field("skip-push", &self.skip_push) - .finish() - } - } - pub struct Res { - pub base_image_name: Output, - pub context: Output, - pub dockerfile: Output, - pub image_name: Output, - pub platform: Output, - pub registry_server: Output, - pub repo_digest: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("base-image-name", &self.base_image_name) - .field("context", &self.context) - .field("dockerfile", &self.dockerfile) - .field("image-name", &self.image_name) - .field("platform", &self.platform) - .field("registry-server", &self.registry_server) - .field("repo-digest", &self.repo_digest) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - arg1: usize, - arg2: i32, - arg3: i32, - arg4: i32, - arg5: i32, - arg6: i32, - ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let handle1; - let handle2; - let handle3; - let handle4; - let handle5; - let len0 = arg1; - let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); - let result6 = T::invoke( - _rt::string_lift(bytes0), - Args { - build: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - build_on_preview: { - handle2 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg3 as u32); - &handle2 - }, - image_name: { - handle3 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg4 as u32); - &handle3 - }, - registry: { - handle4 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg5 as u32); - &handle4 - }, - skip_push: { - handle5 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg6 as u32); - &handle5 - }, - }, - ); - let ptr7 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - base_image_name: base_image_name8, - context: context8, - dockerfile: dockerfile8, - image_name: image_name8, - platform: platform8, - registry_server: registry_server8, - repo_digest: repo_digest8, - } = result6; - *ptr7.add(0).cast::() = (base_image_name8).take_handle() as i32; - *ptr7.add(4).cast::() = (context8).take_handle() as i32; - *ptr7.add(8).cast::() = (dockerfile8).take_handle() as i32; - *ptr7.add(12).cast::() = (image_name8).take_handle() as i32; - *ptr7.add(16).cast::() = (platform8).take_handle() as i32; - *ptr7.add(20).cast::() = (registry_server8).take_handle() as i32; - *ptr7.add(24).cast::() = (repo_digest8).take_handle() as i32; - ptr7 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_docker_image_4_5_3_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:docker/image@4.5.3#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,arg3: i32,arg4: i32,arg5: i32,arg6: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2, arg3, arg4, arg5, arg6) - } - };); - } - #[doc(hidden)] - pub(crate) use __export_pulumi_docker_image_4_5_3_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 28]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 28]); - } - - #[allow(dead_code, clippy::all)] - pub mod network { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub attachable: &'a Output, - pub check_duplicate: &'a Output, - pub driver: &'a Output, - pub ingress: &'a Output, - pub internal: &'a Output, - pub ipam_configs: &'a Output, - pub ipam_driver: &'a Output, - pub ipam_options: &'a Output, - pub ipv6: &'a Output, - pub labels: &'a Output, - pub name: &'a Output, - pub options: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("attachable", &self.attachable) - .field("check-duplicate", &self.check_duplicate) - .field("driver", &self.driver) - .field("ingress", &self.ingress) - .field("internal", &self.internal) - .field("ipam-configs", &self.ipam_configs) - .field("ipam-driver", &self.ipam_driver) - .field("ipam-options", &self.ipam_options) - .field("ipv6", &self.ipv6) - .field("labels", &self.labels) - .field("name", &self.name) - .field("options", &self.options) - .finish() - } - } - pub struct Res { - pub attachable: Output, - pub check_duplicate: Output, - pub driver: Output, - pub ingress: Output, - pub internal: Output, - pub ipam_configs: Output, - pub ipam_driver: Output, - pub ipam_options: Output, - pub ipv6: Output, - pub labels: Output, - pub name: Output, - pub options: Output, - pub scope: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("attachable", &self.attachable) - .field("check-duplicate", &self.check_duplicate) - .field("driver", &self.driver) - .field("ingress", &self.ingress) - .field("internal", &self.internal) - .field("ipam-configs", &self.ipam_configs) - .field("ipam-driver", &self.ipam_driver) - .field("ipam-options", &self.ipam_options) - .field("ipv6", &self.ipv6) - .field("labels", &self.labels) - .field("name", &self.name) - .field("options", &self.options) - .field("scope", &self.scope) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - arg1: usize, - arg2: i32, - arg3: i32, - arg4: i32, - arg5: i32, - arg6: i32, - arg7: i32, - arg8: i32, - arg9: i32, - arg10: i32, - arg11: i32, - arg12: i32, - arg13: i32, - ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let handle1; - let handle2; - let handle3; - let handle4; - let handle5; - let handle6; - let handle7; - let handle8; - let handle9; - let handle10; - let handle11; - let handle12; - let len0 = arg1; - let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); - let result13 = T::invoke( - _rt::string_lift(bytes0), - Args { - attachable: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - check_duplicate: { - handle2 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg3 as u32); - &handle2 - }, - driver: { - handle3 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg4 as u32); - &handle3 - }, - ingress: { - handle4 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg5 as u32); - &handle4 - }, - internal: { - handle5 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg6 as u32); - &handle5 - }, - ipam_configs: { - handle6 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg7 as u32); - &handle6 - }, - ipam_driver: { - handle7 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg8 as u32); - &handle7 - }, - ipam_options: { - handle8 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg9 as u32); - &handle8 - }, - ipv6: { - handle9 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg10 as u32); - &handle9 - }, - labels: { - handle10 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg11 as u32); - &handle10 - }, - name: { - handle11 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg12 as u32); - &handle11 - }, - options: { - handle12 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg13 as u32); - &handle12 - }, - }, - ); - let ptr14 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - attachable: attachable15, - check_duplicate: check_duplicate15, - driver: driver15, - ingress: ingress15, - internal: internal15, - ipam_configs: ipam_configs15, - ipam_driver: ipam_driver15, - ipam_options: ipam_options15, - ipv6: ipv615, - labels: labels15, - name: name15, - options: options15, - scope: scope15, - } = result13; - *ptr14.add(0).cast::() = (attachable15).take_handle() as i32; - *ptr14.add(4).cast::() = (check_duplicate15).take_handle() as i32; - *ptr14.add(8).cast::() = (driver15).take_handle() as i32; - *ptr14.add(12).cast::() = (ingress15).take_handle() as i32; - *ptr14.add(16).cast::() = (internal15).take_handle() as i32; - *ptr14.add(20).cast::() = (ipam_configs15).take_handle() as i32; - *ptr14.add(24).cast::() = (ipam_driver15).take_handle() as i32; - *ptr14.add(28).cast::() = (ipam_options15).take_handle() as i32; - *ptr14.add(32).cast::() = (ipv615).take_handle() as i32; - *ptr14.add(36).cast::() = (labels15).take_handle() as i32; - *ptr14.add(40).cast::() = (name15).take_handle() as i32; - *ptr14.add(44).cast::() = (options15).take_handle() as i32; - *ptr14.add(48).cast::() = (scope15).take_handle() as i32; - ptr14 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_docker_network_4_5_3_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:docker/network@4.5.3#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,arg3: i32,arg4: i32,arg5: i32,arg6: i32,arg7: i32,arg8: i32,arg9: i32,arg10: i32,arg11: i32,arg12: i32,arg13: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) - } - };); - } - #[doc(hidden)] - pub(crate) use __export_pulumi_docker_network_4_5_3_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 52]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 52]); - } - - #[allow(dead_code, clippy::all)] - pub mod plugin { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub alias: &'a Output, - pub enable_timeout: &'a Output, - pub enabled: &'a Output, - pub envs: &'a Output, - pub force_destroy: &'a Output, - pub force_disable: &'a Output, - pub grant_all_permissions: &'a Output, - pub grant_permissions: &'a Output, - pub name: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("alias", &self.alias) - .field("enable-timeout", &self.enable_timeout) - .field("enabled", &self.enabled) - .field("envs", &self.envs) - .field("force-destroy", &self.force_destroy) - .field("force-disable", &self.force_disable) - .field("grant-all-permissions", &self.grant_all_permissions) - .field("grant-permissions", &self.grant_permissions) - .field("name", &self.name) - .finish() - } - } - pub struct Res { - pub alias: Output, - pub enable_timeout: Output, - pub enabled: Output, - pub envs: Output, - pub force_destroy: Output, - pub force_disable: Output, - pub grant_all_permissions: Output, - pub grant_permissions: Output, - pub name: Output, - pub plugin_reference: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("alias", &self.alias) - .field("enable-timeout", &self.enable_timeout) - .field("enabled", &self.enabled) - .field("envs", &self.envs) - .field("force-destroy", &self.force_destroy) - .field("force-disable", &self.force_disable) - .field("grant-all-permissions", &self.grant_all_permissions) - .field("grant-permissions", &self.grant_permissions) - .field("name", &self.name) - .field("plugin-reference", &self.plugin_reference) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - arg1: usize, - arg2: i32, - arg3: i32, - arg4: i32, - arg5: i32, - arg6: i32, - arg7: i32, - arg8: i32, - arg9: i32, - arg10: i32, - ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let handle1; - let handle2; - let handle3; - let handle4; - let handle5; - let handle6; - let handle7; - let handle8; - let handle9; - let len0 = arg1; - let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); - let result10 = T::invoke( - _rt::string_lift(bytes0), - Args { - alias: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - enable_timeout: { - handle2 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg3 as u32); - &handle2 - }, - enabled: { - handle3 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg4 as u32); - &handle3 - }, - envs: { - handle4 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg5 as u32); - &handle4 - }, - force_destroy: { - handle5 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg6 as u32); - &handle5 - }, - force_disable: { - handle6 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg7 as u32); - &handle6 - }, - grant_all_permissions: { - handle7 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg8 as u32); - &handle7 - }, - grant_permissions: { - handle8 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg9 as u32); - &handle8 - }, - name: { - handle9 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg10 as u32); - &handle9 - }, - }, - ); - let ptr11 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - alias: alias12, - enable_timeout: enable_timeout12, - enabled: enabled12, - envs: envs12, - force_destroy: force_destroy12, - force_disable: force_disable12, - grant_all_permissions: grant_all_permissions12, - grant_permissions: grant_permissions12, - name: name12, - plugin_reference: plugin_reference12, - } = result10; - *ptr11.add(0).cast::() = (alias12).take_handle() as i32; - *ptr11.add(4).cast::() = (enable_timeout12).take_handle() as i32; - *ptr11.add(8).cast::() = (enabled12).take_handle() as i32; - *ptr11.add(12).cast::() = (envs12).take_handle() as i32; - *ptr11.add(16).cast::() = (force_destroy12).take_handle() as i32; - *ptr11.add(20).cast::() = (force_disable12).take_handle() as i32; - *ptr11.add(24).cast::() = (grant_all_permissions12).take_handle() as i32; - *ptr11.add(28).cast::() = (grant_permissions12).take_handle() as i32; - *ptr11.add(32).cast::() = (name12).take_handle() as i32; - *ptr11.add(36).cast::() = (plugin_reference12).take_handle() as i32; - ptr11 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_docker_plugin_4_5_3_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:docker/plugin@4.5.3#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,arg3: i32,arg4: i32,arg5: i32,arg6: i32,arg7: i32,arg8: i32,arg9: i32,arg10: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) - } - };); -} - #[doc(hidden)] - pub(crate) use __export_pulumi_docker_plugin_4_5_3_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 40]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 40]); - } - - #[allow(dead_code, clippy::all)] - pub mod registry_image { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub insecure_skip_verify: &'a Output, - pub keep_remotely: &'a Output, - pub name: &'a Output, - pub triggers: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("insecure-skip-verify", &self.insecure_skip_verify) - .field("keep-remotely", &self.keep_remotely) - .field("name", &self.name) - .field("triggers", &self.triggers) - .finish() - } - } - pub struct Res { - pub insecure_skip_verify: Output, - pub keep_remotely: Output, - pub name: Output, - pub sha256_digest: Output, - pub triggers: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("insecure-skip-verify", &self.insecure_skip_verify) - .field("keep-remotely", &self.keep_remotely) - .field("name", &self.name) - .field("sha256-digest", &self.sha256_digest) - .field("triggers", &self.triggers) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - arg1: usize, - arg2: i32, - arg3: i32, - arg4: i32, - arg5: i32, - ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let handle1; - let handle2; - let handle3; - let handle4; - let len0 = arg1; - let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); - let result5 = T::invoke( - _rt::string_lift(bytes0), - Args { - insecure_skip_verify: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - keep_remotely: { - handle2 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg3 as u32); - &handle2 - }, - name: { - handle3 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg4 as u32); - &handle3 - }, - triggers: { - handle4 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg5 as u32); - &handle4 - }, - }, - ); - let ptr6 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - insecure_skip_verify: insecure_skip_verify7, - keep_remotely: keep_remotely7, - name: name7, - sha256_digest: sha256_digest7, - triggers: triggers7, - } = result5; - *ptr6.add(0).cast::() = (insecure_skip_verify7).take_handle() as i32; - *ptr6.add(4).cast::() = (keep_remotely7).take_handle() as i32; - *ptr6.add(8).cast::() = (name7).take_handle() as i32; - *ptr6.add(12).cast::() = (sha256_digest7).take_handle() as i32; - *ptr6.add(16).cast::() = (triggers7).take_handle() as i32; - ptr6 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_docker_registry_image_4_5_3_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:docker/registry-image@4.5.3#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,arg3: i32,arg4: i32,arg5: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2, arg3, arg4, arg5) - } - };); -} - #[doc(hidden)] - pub(crate) use __export_pulumi_docker_registry_image_4_5_3_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 20]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 20]); - } - - #[allow(dead_code, clippy::all)] - pub mod remote_image { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub build: &'a Output, - pub force_remove: &'a Output, - pub keep_locally: &'a Output, - pub name: &'a Output, - pub platform: &'a Output, - pub pull_triggers: &'a Output, - pub triggers: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("build", &self.build) - .field("force-remove", &self.force_remove) - .field("keep-locally", &self.keep_locally) - .field("name", &self.name) - .field("platform", &self.platform) - .field("pull-triggers", &self.pull_triggers) - .field("triggers", &self.triggers) - .finish() - } - } - pub struct Res { - pub build: Output, - pub force_remove: Output, - pub image_id: Output, - pub keep_locally: Output, - pub name: Output, - pub platform: Output, - pub pull_triggers: Output, - pub repo_digest: Output, - pub triggers: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("build", &self.build) - .field("force-remove", &self.force_remove) - .field("image-id", &self.image_id) - .field("keep-locally", &self.keep_locally) - .field("name", &self.name) - .field("platform", &self.platform) - .field("pull-triggers", &self.pull_triggers) - .field("repo-digest", &self.repo_digest) - .field("triggers", &self.triggers) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - arg1: usize, - arg2: i32, - arg3: i32, - arg4: i32, - arg5: i32, - arg6: i32, - arg7: i32, - arg8: i32, - ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let handle1; - let handle2; - let handle3; - let handle4; - let handle5; - let handle6; - let handle7; - let len0 = arg1; - let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); - let result8 = T::invoke( - _rt::string_lift(bytes0), - Args { - build: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - force_remove: { - handle2 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg3 as u32); - &handle2 - }, - keep_locally: { - handle3 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg4 as u32); - &handle3 - }, - name: { - handle4 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg5 as u32); - &handle4 - }, - platform: { - handle5 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg6 as u32); - &handle5 - }, - pull_triggers: { - handle6 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg7 as u32); - &handle6 - }, - triggers: { - handle7 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg8 as u32); - &handle7 - }, - }, - ); - let ptr9 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - build: build10, - force_remove: force_remove10, - image_id: image_id10, - keep_locally: keep_locally10, - name: name10, - platform: platform10, - pull_triggers: pull_triggers10, - repo_digest: repo_digest10, - triggers: triggers10, - } = result8; - *ptr9.add(0).cast::() = (build10).take_handle() as i32; - *ptr9.add(4).cast::() = (force_remove10).take_handle() as i32; - *ptr9.add(8).cast::() = (image_id10).take_handle() as i32; - *ptr9.add(12).cast::() = (keep_locally10).take_handle() as i32; - *ptr9.add(16).cast::() = (name10).take_handle() as i32; - *ptr9.add(20).cast::() = (platform10).take_handle() as i32; - *ptr9.add(24).cast::() = (pull_triggers10).take_handle() as i32; - *ptr9.add(28).cast::() = (repo_digest10).take_handle() as i32; - *ptr9.add(32).cast::() = (triggers10).take_handle() as i32; - ptr9 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_docker_remote_image_4_5_3_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:docker/remote-image@4.5.3#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,arg3: i32,arg4: i32,arg5: i32,arg6: i32,arg7: i32,arg8: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) - } - };); -} - #[doc(hidden)] - pub(crate) use __export_pulumi_docker_remote_image_4_5_3_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 36]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 36]); - } - - #[allow(dead_code, clippy::all)] - pub mod secret { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub data: &'a Output, - pub labels: &'a Output, - pub name: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("data", &self.data) - .field("labels", &self.labels) - .field("name", &self.name) - .finish() - } - } - pub struct Res { - pub data: Output, - pub labels: Output, - pub name: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("data", &self.data) - .field("labels", &self.labels) - .field("name", &self.name) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - arg1: usize, - arg2: i32, - arg3: i32, - arg4: i32, - ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let handle1; - let handle2; - let handle3; - let len0 = arg1; - let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); - let result4 = T::invoke( - _rt::string_lift(bytes0), - Args { - data: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - labels: { - handle2 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg3 as u32); - &handle2 - }, - name: { - handle3 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg4 as u32); - &handle3 - }, - }, - ); - let ptr5 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - data: data6, - labels: labels6, - name: name6, - } = result4; - *ptr5.add(0).cast::() = (data6).take_handle() as i32; - *ptr5.add(4).cast::() = (labels6).take_handle() as i32; - *ptr5.add(8).cast::() = (name6).take_handle() as i32; - ptr5 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_docker_secret_4_5_3_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:docker/secret@4.5.3#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,arg3: i32,arg4: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2, arg3, arg4) - } - };); -} - #[doc(hidden)] - pub(crate) use __export_pulumi_docker_secret_4_5_3_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 12]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 12]); - } - - #[allow(dead_code, clippy::all)] - pub mod service { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub auth: &'a Output, - pub converge_config: &'a Output, - pub endpoint_spec: &'a Output, - pub labels: &'a Output, - pub mode: &'a Output, - pub name: &'a Output, - pub rollback_config: &'a Output, - pub task_spec: &'a Output, - pub update_config: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("auth", &self.auth) - .field("converge-config", &self.converge_config) - .field("endpoint-spec", &self.endpoint_spec) - .field("labels", &self.labels) - .field("mode", &self.mode) - .field("name", &self.name) - .field("rollback-config", &self.rollback_config) - .field("task-spec", &self.task_spec) - .field("update-config", &self.update_config) - .finish() - } - } - pub struct Res { - pub auth: Output, - pub converge_config: Output, - pub endpoint_spec: Output, - pub labels: Output, - pub mode: Output, - pub name: Output, - pub rollback_config: Output, - pub task_spec: Output, - pub update_config: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("auth", &self.auth) - .field("converge-config", &self.converge_config) - .field("endpoint-spec", &self.endpoint_spec) - .field("labels", &self.labels) - .field("mode", &self.mode) - .field("name", &self.name) - .field("rollback-config", &self.rollback_config) - .field("task-spec", &self.task_spec) - .field("update-config", &self.update_config) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - arg1: usize, - arg2: i32, - arg3: i32, - arg4: i32, - arg5: i32, - arg6: i32, - arg7: i32, - arg8: i32, - arg9: i32, - arg10: i32, - ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let handle1; - let handle2; - let handle3; - let handle4; - let handle5; - let handle6; - let handle7; - let handle8; - let handle9; - let len0 = arg1; - let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); - let result10 = T::invoke( - _rt::string_lift(bytes0), - Args { - auth: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - converge_config: { - handle2 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg3 as u32); - &handle2 - }, - endpoint_spec: { - handle3 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg4 as u32); - &handle3 - }, - labels: { - handle4 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg5 as u32); - &handle4 - }, - mode: { - handle5 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg6 as u32); - &handle5 - }, - name: { - handle6 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg7 as u32); - &handle6 - }, - rollback_config: { - handle7 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg8 as u32); - &handle7 - }, - task_spec: { - handle8 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg9 as u32); - &handle8 - }, - update_config: { - handle9 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg10 as u32); - &handle9 - }, - }, - ); - let ptr11 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - auth: auth12, - converge_config: converge_config12, - endpoint_spec: endpoint_spec12, - labels: labels12, - mode: mode12, - name: name12, - rollback_config: rollback_config12, - task_spec: task_spec12, - update_config: update_config12, - } = result10; - *ptr11.add(0).cast::() = (auth12).take_handle() as i32; - *ptr11.add(4).cast::() = (converge_config12).take_handle() as i32; - *ptr11.add(8).cast::() = (endpoint_spec12).take_handle() as i32; - *ptr11.add(12).cast::() = (labels12).take_handle() as i32; - *ptr11.add(16).cast::() = (mode12).take_handle() as i32; - *ptr11.add(20).cast::() = (name12).take_handle() as i32; - *ptr11.add(24).cast::() = (rollback_config12).take_handle() as i32; - *ptr11.add(28).cast::() = (task_spec12).take_handle() as i32; - *ptr11.add(32).cast::() = (update_config12).take_handle() as i32; - ptr11 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_docker_service_4_5_3_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:docker/service@4.5.3#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,arg3: i32,arg4: i32,arg5: i32,arg6: i32,arg7: i32,arg8: i32,arg9: i32,arg10: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) - } - };); -} - #[doc(hidden)] - pub(crate) use __export_pulumi_docker_service_4_5_3_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 36]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 36]); - } - - #[allow(dead_code, clippy::all)] - pub mod service_config { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub data: &'a Output, - pub name: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("data", &self.data) - .field("name", &self.name) - .finish() - } - } - pub struct Res { - pub data: Output, - pub name: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("data", &self.data) - .field("name", &self.name) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - arg1: usize, - arg2: i32, - arg3: i32, - ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let handle1; - let handle2; - let len0 = arg1; - let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); - let result3 = T::invoke( - _rt::string_lift(bytes0), - Args { - data: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - name: { - handle2 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg3 as u32); - &handle2 - }, - }, - ); - let ptr4 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - data: data5, - name: name5, - } = result3; - *ptr4.add(0).cast::() = (data5).take_handle() as i32; - *ptr4.add(4).cast::() = (name5).take_handle() as i32; - ptr4 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_docker_service_config_4_5_3_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:docker/service-config@4.5.3#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,arg3: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2, arg3) - } - };); -} - #[doc(hidden)] - pub(crate) use __export_pulumi_docker_service_config_4_5_3_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 8]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 8]); - } - - #[allow(dead_code, clippy::all)] - pub mod tag { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub source_image: &'a Output, - pub target_image: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("source-image", &self.source_image) - .field("target-image", &self.target_image) - .finish() - } - } - pub struct Res { - pub source_image: Output, - pub source_image_id: Output, - pub target_image: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("source-image", &self.source_image) - .field("source-image-id", &self.source_image_id) - .field("target-image", &self.target_image) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - arg1: usize, - arg2: i32, - arg3: i32, - ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let handle1; - let handle2; - let len0 = arg1; - let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); - let result3 = T::invoke( - _rt::string_lift(bytes0), - Args { - source_image: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - target_image: { - handle2 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg3 as u32); - &handle2 - }, - }, - ); - let ptr4 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - source_image: source_image5, - source_image_id: source_image_id5, - target_image: target_image5, - } = result3; - *ptr4.add(0).cast::() = (source_image5).take_handle() as i32; - *ptr4.add(4).cast::() = (source_image_id5).take_handle() as i32; - *ptr4.add(8).cast::() = (target_image5).take_handle() as i32; - ptr4 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_docker_tag_4_5_3_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:docker/tag@4.5.3#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,arg3: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2, arg3) - } - };); -} - #[doc(hidden)] - pub(crate) use __export_pulumi_docker_tag_4_5_3_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 12]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 12]); - } - - #[allow(dead_code, clippy::all)] - pub mod volume { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub driver: &'a Output, - pub driver_opts: &'a Output, - pub labels: &'a Output, - pub name: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("driver", &self.driver) - .field("driver-opts", &self.driver_opts) - .field("labels", &self.labels) - .field("name", &self.name) - .finish() - } - } - pub struct Res { - pub driver: Output, - pub driver_opts: Output, - pub labels: Output, - pub mountpoint: Output, - pub name: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("driver", &self.driver) - .field("driver-opts", &self.driver_opts) - .field("labels", &self.labels) - .field("mountpoint", &self.mountpoint) - .field("name", &self.name) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - arg1: usize, - arg2: i32, - arg3: i32, - arg4: i32, - arg5: i32, - ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let handle1; - let handle2; - let handle3; - let handle4; - let len0 = arg1; - let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); - let result5 = T::invoke( - _rt::string_lift(bytes0), - Args { - driver: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - driver_opts: { - handle2 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg3 as u32); - &handle2 - }, - labels: { - handle3 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg4 as u32); - &handle3 - }, - name: { - handle4 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg5 as u32); - &handle4 - }, - }, - ); - let ptr6 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - driver: driver7, - driver_opts: driver_opts7, - labels: labels7, - mountpoint: mountpoint7, - name: name7, - } = result5; - *ptr6.add(0).cast::() = (driver7).take_handle() as i32; - *ptr6.add(4).cast::() = (driver_opts7).take_handle() as i32; - *ptr6.add(8).cast::() = (labels7).take_handle() as i32; - *ptr6.add(12).cast::() = (mountpoint7).take_handle() as i32; - *ptr6.add(16).cast::() = (name7).take_handle() as i32; - ptr6 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_docker_volume_4_5_3_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:docker/volume@4.5.3#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,arg3: i32,arg4: i32,arg5: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2, arg3, arg4, arg5) - } - };); -} - #[doc(hidden)] - pub(crate) use __export_pulumi_docker_volume_4_5_3_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 20]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 20]); - } - } - } -} -mod _rt { - - use core::fmt; - use core::marker; - use core::sync::atomic::{AtomicU32, Ordering::Relaxed}; - - /// A type which represents a component model resource, either imported or - /// exported into this component. - /// - /// This is a low-level wrapper which handles the lifetime of the resource - /// (namely this has a destructor). The `T` provided defines the component model - /// intrinsics that this wrapper uses. - /// - /// One of the chief purposes of this type is to provide `Deref` implementations - /// to access the underlying data when it is owned. - /// - /// This type is primarily used in generated code for exported and imported - /// resources. - #[repr(transparent)] - pub struct Resource { - // NB: This would ideally be `u32` but it is not. The fact that this has - // interior mutability is not exposed in the API of this type except for the - // `take_handle` method which is supposed to in theory be private. - // - // This represents, almost all the time, a valid handle value. When it's - // invalid it's stored as `u32::MAX`. - handle: AtomicU32, - _marker: marker::PhantomData, - } - - /// A trait which all wasm resources implement, namely providing the ability to - /// 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); - } - - impl Resource { - #[doc(hidden)] - pub unsafe fn from_handle(handle: u32) -> Self { - debug_assert!(handle != u32::MAX); - Self { - handle: AtomicU32::new(handle), - _marker: marker::PhantomData, - } - } - - /// Takes ownership of the handle owned by `resource`. - /// - /// Note that this ideally would be `into_handle` taking `Resource` by - /// ownership. The code generator does not enable that in all situations, - /// unfortunately, so this is provided instead. - /// - /// Also note that `take_handle` is in theory only ever called on values - /// owned by a generated function. For example a generated function might - /// take `Resource` as an argument but then call `take_handle` on a - /// reference to that argument. In that sense the dynamic nature of - /// `take_handle` should only be exposed internally to generated code, not - /// to user code. - #[doc(hidden)] - pub fn take_handle(resource: &Resource) -> u32 { - resource.handle.swap(u32::MAX, Relaxed) - } - - #[doc(hidden)] - pub fn handle(resource: &Resource) -> u32 { - resource.handle.load(Relaxed) - } - } - - impl fmt::Debug for Resource { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource") - .field("handle", &self.handle) - .finish() - } - } - - impl Drop for Resource { - fn drop(&mut self) { - unsafe { - match self.handle.load(Relaxed) { - // If this handle was "taken" then don't do anything in the - // destructor. - u32::MAX => {} - - // ... but otherwise do actually destroy it with the imported - // component model intrinsic as defined through `T`. - other => T::drop(other), - } - } - } - } - pub use alloc_crate::alloc; - pub use alloc_crate::string::String; - pub use alloc_crate::vec::Vec; - pub unsafe fn string_lift(bytes: Vec) -> String { - if cfg!(debug_assertions) { - String::from_utf8(bytes).unwrap() - } else { - String::from_utf8_unchecked(bytes) - } - } - pub unsafe fn cabi_dealloc(ptr: *mut u8, size: usize, align: usize) { - if size == 0 { - return; - } - let layout = alloc::Layout::from_size_align_unchecked(size, align); - alloc::dealloc(ptr as *mut u8, layout); - } - - #[cfg(target_arch = "wasm32")] - pub fn run_ctors_once() { - wit_bindgen_rt::run_ctors_once(); - } - extern crate alloc as alloc_crate; -} - -/// Generates `#[no_mangle]` functions to export the specified type as the -/// root implementation of all generated traits. -/// -/// For more information see the documentation of `wit_bindgen::generate!`. -/// -/// ```rust -/// # macro_rules! export{ ($($t:tt)*) => (); } -/// # trait Guest {} -/// struct MyType; -/// -/// impl Guest for MyType { -/// // ... -/// } -/// -/// export!(MyType); -/// ``` -#[allow(unused_macros)] -#[doc(hidden)] - -macro_rules! __export_docker_pulumi_impl { - ($ty:ident) => (self::export!($ty with_types_in self);); - ($ty:ident with_types_in $($path_to_types_root:tt)*) => ( - $($path_to_types_root)*::exports::pulumi::docker::container::__export_pulumi_docker_container_4_5_3_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::docker::container); - $($path_to_types_root)*::exports::pulumi::docker::image::__export_pulumi_docker_image_4_5_3_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::docker::image); - $($path_to_types_root)*::exports::pulumi::docker::network::__export_pulumi_docker_network_4_5_3_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::docker::network); - $($path_to_types_root)*::exports::pulumi::docker::plugin::__export_pulumi_docker_plugin_4_5_3_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::docker::plugin); - $($path_to_types_root)*::exports::pulumi::docker::registry_image::__export_pulumi_docker_registry_image_4_5_3_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::docker::registry_image); - $($path_to_types_root)*::exports::pulumi::docker::remote_image::__export_pulumi_docker_remote_image_4_5_3_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::docker::remote_image); - $($path_to_types_root)*::exports::pulumi::docker::secret::__export_pulumi_docker_secret_4_5_3_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::docker::secret); - $($path_to_types_root)*::exports::pulumi::docker::service::__export_pulumi_docker_service_4_5_3_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::docker::service); - $($path_to_types_root)*::exports::pulumi::docker::service_config::__export_pulumi_docker_service_config_4_5_3_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::docker::service_config); - $($path_to_types_root)*::exports::pulumi::docker::tag::__export_pulumi_docker_tag_4_5_3_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::docker::tag); - $($path_to_types_root)*::exports::pulumi::docker::volume::__export_pulumi_docker_volume_4_5_3_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::docker::volume); - ) -} -#[doc(inline)] -pub(crate) use __export_docker_pulumi_impl as export; - -#[cfg(target_arch = "wasm32")] -#[link_section = "component-type:wit-bindgen:0.25.0:docker-pulumi:encoded world"] -#[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 4745] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x85$\x01A\x02\x01A\x1b\ -\x01B\x09\x04\0\x06output\x03\x01\x01i\0\x01@\x01\x05values\0\x01\x04\0\x13[cons\ -tructor]output\x01\x02\x01h\0\x01@\x02\x04self\x03\x0dfunction-names\0\x01\x04\0\ -\x12[method]output.map\x01\x04\x01@\x01\x04self\x03\0\x01\x04\0\x18[method]outpu\ -t.duplicate\x01\x05\x03\x01,component:pulumi-wasm/output-interface@0.1.0\x05\0\x02\ -\x03\0\0\x06output\x01B\x13\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\ -\x01r\x02\x04names\x05value\x02\x04\0\x0cobject-field\x03\0\x03\x01r\x01\x04name\ -s\x04\0\x0cresult-field\x03\0\x05\x01i\x01\x01r\x02\x04names\x06output\x07\x04\0\ -\x1eregister-resource-result-field\x03\0\x08\x01p\x04\x01p\x06\x01r\x04\x04types\ -\x04names\x06object\x0a\x07results\x0b\x04\0\x19register-resource-request\x03\0\x0c\ -\x01p\x09\x01r\x01\x06fields\x0e\x04\0\x18register-resource-result\x03\0\x0f\x01\ -@\x01\x07request\x0d\0\x10\x04\0\x08register\x01\x11\x03\x01.component:pulumi-wa\ -sm/register-interface@0.1.0\x05\x02\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\ -\x03\0\0\x01h\x01\x01r>\x06attach\x02\x0ccapabilities\x02\x0dcgroupns-mode\x02\x07\ -command\x02+container-read-refresh-timeout-milliseconds\x02\x07cpu-set\x02\x0acp\ -u-shares\x02\x15destroy-grace-seconds\x02\x07devices\x02\x03dns\x02\x08dns-opts\x02\ -\x0cdns-searches\x02\x0adomainname\x02\x0bentrypoints\x02\x04envs\x02\x04gpus\x02\ -\x0agroup-adds\x02\x0bhealthcheck\x02\x08hostname\x02\x05hosts\x02\x05image\x02\x04\ -init\x02\x08ipc-mode\x02\x06labels\x02\x0alog-driver\x02\x08log-opts\x02\x04logs\ -\x02\x0fmax-retry-count\x02\x06memory\x02\x0bmemory-swap\x02\x06mounts\x02\x08mu\ -st-run\x02\x04name\x02\x0cnetwork-mode\x02\x11networks-advanced\x02\x08pid-mode\x02\ -\x05ports\x02\x0aprivileged\x02\x11publish-all-ports\x02\x09read-only\x02\x0erem\ -ove-volumes\x02\x07restart\x02\x02rm\x02\x07runtime\x02\x0dsecurity-opts\x02\x08\ -shm-size\x02\x05start\x02\x0astdin-open\x02\x0bstop-signal\x02\x0cstop-timeout\x02\ -\x0cstorage-opts\x02\x07sysctls\x02\x05tmpfs\x02\x03tty\x02\x07ulimits\x02\x07up\ -loads\x02\x04user\x02\x0buserns-mode\x02\x07volumes\x02\x04wait\x02\x0cwait-time\ -out\x02\x0bworking-dir\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01rB\x06attach\x05\x06\ -bridge\x05\x0ccapabilities\x05\x0dcgroupns-mode\x05\x07command\x05\x0econtainer-\ -logs\x05+container-read-refresh-timeout-milliseconds\x05\x07cpu-set\x05\x0acpu-s\ -hares\x05\x15destroy-grace-seconds\x05\x07devices\x05\x03dns\x05\x08dns-opts\x05\ -\x0cdns-searches\x05\x0adomainname\x05\x0bentrypoints\x05\x04envs\x05\x09exit-co\ -de\x05\x04gpus\x05\x0agroup-adds\x05\x0bhealthcheck\x05\x08hostname\x05\x05hosts\ -\x05\x05image\x05\x04init\x05\x08ipc-mode\x05\x06labels\x05\x0alog-driver\x05\x08\ -log-opts\x05\x04logs\x05\x0fmax-retry-count\x05\x06memory\x05\x0bmemory-swap\x05\ -\x06mounts\x05\x08must-run\x05\x04name\x05\x0dnetwork-datas\x05\x0cnetwork-mode\x05\ -\x11networks-advanced\x05\x08pid-mode\x05\x05ports\x05\x0aprivileged\x05\x11publ\ -ish-all-ports\x05\x09read-only\x05\x0eremove-volumes\x05\x07restart\x05\x02rm\x05\ -\x07runtime\x05\x0dsecurity-opts\x05\x08shm-size\x05\x05start\x05\x0astdin-open\x05\ -\x0bstop-signal\x05\x0cstop-timeout\x05\x0cstorage-opts\x05\x07sysctls\x05\x05tm\ -pfs\x05\x03tty\x05\x07ulimits\x05\x07uploads\x05\x04user\x05\x0buserns-mode\x05\x07\ -volumes\x05\x04wait\x05\x0cwait-timeout\x05\x0bworking-dir\x05\x04\0\x03res\x03\0\ -\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01\x1dpulu\ -mi:docker/container@4.5.3\x05\x03\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\ -\0\0\x01h\x01\x01r\x05\x05build\x02\x10build-on-preview\x02\x0aimage-name\x02\x08\ -registry\x02\x09skip-push\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01r\x07\x0fbase-\ -image-name\x05\x07context\x05\x0adockerfile\x05\x0aimage-name\x05\x08platform\x05\ -\x0fregistry-server\x05\x0brepo-digest\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04na\ -mes\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01\x19pulumi:docker/image@4.5\ -.3\x05\x04\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x0c\ -\x0aattachable\x02\x0fcheck-duplicate\x02\x06driver\x02\x07ingress\x02\x08intern\ -al\x02\x0cipam-configs\x02\x0bipam-driver\x02\x0cipam-options\x02\x04ipv6\x02\x06\ -labels\x02\x04name\x02\x07options\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01r\x0d\x0a\ -attachable\x05\x0fcheck-duplicate\x05\x06driver\x05\x07ingress\x05\x08internal\x05\ -\x0cipam-configs\x05\x0bipam-driver\x05\x0cipam-options\x05\x04ipv6\x05\x06label\ -s\x05\x04name\x05\x07options\x05\x05scope\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04\ -names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01\x1bpulumi:docker/network\ -@4.5.3\x05\x05\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01\ -r\x09\x05alias\x02\x0eenable-timeout\x02\x07enabled\x02\x04envs\x02\x0dforce-des\ -troy\x02\x0dforce-disable\x02\x15grant-all-permissions\x02\x11grant-permissions\x02\ -\x04name\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01r\x0a\x05alias\x05\x0eenable-ti\ -meout\x05\x07enabled\x05\x04envs\x05\x0dforce-destroy\x05\x0dforce-disable\x05\x15\ -grant-all-permissions\x05\x11grant-permissions\x05\x04name\x05\x10plugin-referen\ -ce\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invok\ -e\x01\x08\x04\x01\x1apulumi:docker/plugin@4.5.3\x05\x06\x01B\x0a\x02\x03\x02\x01\ -\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x04\x14insecure-skip-verify\x02\x0dke\ -ep-remotely\x02\x04name\x02\x08triggers\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01\ -r\x05\x14insecure-skip-verify\x05\x0dkeep-remotely\x05\x04name\x05\x0dsha256-dig\ -est\x05\x08triggers\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\ -\x04\0\x06invoke\x01\x08\x04\x01\"pulumi:docker/registry-image@4.5.3\x05\x07\x01\ -B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x07\x05build\x02\ -\x0cforce-remove\x02\x0ckeep-locally\x02\x04name\x02\x08platform\x02\x0dpull-tri\ -ggers\x02\x08triggers\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01r\x09\x05build\x05\ -\x0cforce-remove\x05\x08image-id\x05\x0ckeep-locally\x05\x04name\x05\x08platform\ -\x05\x0dpull-triggers\x05\x0brepo-digest\x05\x08triggers\x05\x04\0\x03res\x03\0\x06\ -\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01\x20pulumi:d\ -ocker/remote-image@4.5.3\x05\x08\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\ -\0\0\x01h\x01\x01r\x03\x04data\x02\x06labels\x02\x04name\x02\x04\0\x04args\x03\0\ -\x03\x01i\x01\x01r\x03\x04data\x05\x06labels\x05\x04name\x05\x04\0\x03res\x03\0\x06\ -\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01\x1apulumi:d\ -ocker/secret@4.5.3\x05\x09\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01\ -h\x01\x01r\x09\x04auth\x02\x0fconverge-config\x02\x0dendpoint-spec\x02\x06labels\ -\x02\x04mode\x02\x04name\x02\x0frollback-config\x02\x09task-spec\x02\x0dupdate-c\ -onfig\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01r\x09\x04auth\x05\x0fconverge-conf\ -ig\x05\x0dendpoint-spec\x05\x06labels\x05\x04mode\x05\x04name\x05\x0frollback-co\ -nfig\x05\x09task-spec\x05\x0dupdate-config\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04\ -names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01\x1bpulumi:docker/service\ -@4.5.3\x05\x0a\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01\ -r\x02\x04data\x02\x04name\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01r\x02\x04data\x05\ -\x04name\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06\ -invoke\x01\x08\x04\x01\"pulumi:docker/service-config@4.5.3\x05\x0b\x01B\x0a\x02\x03\ -\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x02\x0csource-image\x02\x0cta\ -rget-image\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01r\x03\x0csource-image\x05\x0f\ -source-image-id\x05\x0ctarget-image\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\ -\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01\x17pulumi:docker/tag@4.5.3\x05\ -\x0c\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x04\x06d\ -river\x02\x0bdriver-opts\x02\x06labels\x02\x04name\x02\x04\0\x04args\x03\0\x03\x01\ -i\x01\x01r\x05\x06driver\x05\x0bdriver-opts\x05\x06labels\x05\x0amountpoint\x05\x04\ -name\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06inv\ -oke\x01\x08\x04\x01\x1apulumi:docker/volume@4.5.3\x05\x0d\x04\x01!pulumi:docker/\ -docker-pulumi@4.5.3\x04\0\x0b\x13\x01\0\x0ddocker-pulumi\x03\0\0\0G\x09producers\ -\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10wit-bindgen-rust\x060.25\ -.0"; - -#[inline(never)] -#[doc(hidden)] -#[cfg(target_arch = "wasm32")] -pub fn __link_custom_section_describing_imports() { - wit_bindgen_rt::maybe_link_cabi_realloc(); -} diff --git a/providers/pulumi_wasm_provider_random/src/bindings.rs b/providers/pulumi_wasm_provider_random/src/bindings.rs deleted file mode 100644 index 3c7a6e98d..000000000 --- a/providers/pulumi_wasm_provider_random/src/bindings.rs +++ /dev/null @@ -1,1669 +0,0 @@ -// 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(dead_code, clippy::all)] - pub mod output_interface { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::__link_custom_section_describing_imports; - use super::super::super::_rt; - - #[derive(Debug)] - #[repr(transparent)] - pub struct Output { - handle: _rt::Resource, - } - - impl Output { - #[doc(hidden)] - pub unsafe fn from_handle(handle: u32) -> Self { - Self { - handle: _rt::Resource::from_handle(handle), - } - } - - #[doc(hidden)] - pub fn take_handle(&self) -> u32 { - _rt::Resource::take_handle(&self.handle) - } - - #[doc(hidden)] - pub fn handle(&self) -> u32 { - _rt::Resource::handle(&self.handle) - } - } - - unsafe impl _rt::WasmResource for Output { - #[inline] - unsafe fn drop(_handle: u32) { - #[cfg(not(target_arch = "wasm32"))] - unreachable!(); - - #[cfg(target_arch = "wasm32")] - { - #[link(wasm_import_module = "component:pulumi-wasm/output-interface@0.1.0")] - extern "C" { - #[link_name = "[resource-drop]output"] - fn drop(_: u32); - } - - drop(_handle); - } - } - } - - impl Output { - #[allow(unused_unsafe, clippy::all)] - pub fn new(value: &str) -> Self { - unsafe { - let vec0 = value; - let ptr0 = vec0.as_ptr().cast::(); - let len0 = vec0.len(); - - #[cfg(target_arch = "wasm32")] - #[link(wasm_import_module = "component:pulumi-wasm/output-interface@0.1.0")] - extern "C" { - #[link_name = "[constructor]output"] - fn wit_import(_: *mut u8, _: usize) -> i32; - } - - #[cfg(not(target_arch = "wasm32"))] - fn wit_import(_: *mut u8, _: usize) -> i32 { - unreachable!() - } - let ret = wit_import(ptr0.cast_mut(), len0); - Output::from_handle(ret as u32) - } - } - } - impl Output { - #[allow(unused_unsafe, clippy::all)] - pub fn map(&self, function_name: &str) -> Output { - unsafe { - let vec0 = function_name; - let ptr0 = vec0.as_ptr().cast::(); - let len0 = vec0.len(); - - #[cfg(target_arch = "wasm32")] - #[link(wasm_import_module = "component:pulumi-wasm/output-interface@0.1.0")] - extern "C" { - #[link_name = "[method]output.map"] - fn wit_import(_: i32, _: *mut u8, _: usize) -> i32; - } - - #[cfg(not(target_arch = "wasm32"))] - fn wit_import(_: i32, _: *mut u8, _: usize) -> i32 { - unreachable!() - } - let ret = wit_import((self).handle() as i32, ptr0.cast_mut(), len0); - Output::from_handle(ret as u32) - } - } - } - impl Output { - #[allow(unused_unsafe, clippy::all)] - pub fn duplicate(&self) -> Output { - unsafe { - #[cfg(target_arch = "wasm32")] - #[link(wasm_import_module = "component:pulumi-wasm/output-interface@0.1.0")] - extern "C" { - #[link_name = "[method]output.duplicate"] - fn wit_import(_: i32) -> i32; - } - - #[cfg(not(target_arch = "wasm32"))] - fn wit_import(_: i32) -> i32 { - unreachable!() - } - let ret = wit_import((self).handle() as i32); - Output::from_handle(ret as u32) - } - } - } - } - - #[allow(dead_code, clippy::all)] - pub mod register_interface { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::__link_custom_section_describing_imports; - use super::super::super::_rt; - pub type Output = super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct ObjectField<'a> { - pub name: _rt::String, - pub value: &'a Output, - } - impl<'a> ::core::fmt::Debug for ObjectField<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ObjectField") - .field("name", &self.name) - .field("value", &self.value) - .finish() - } - } - #[derive(Clone)] - pub struct ResultField { - pub name: _rt::String, - } - impl ::core::fmt::Debug for ResultField { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ResultField") - .field("name", &self.name) - .finish() - } - } - pub struct RegisterResourceResultField { - pub name: _rt::String, - pub output: Output, - } - impl ::core::fmt::Debug for RegisterResourceResultField { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("RegisterResourceResultField") - .field("name", &self.name) - .field("output", &self.output) - .finish() - } - } - pub struct RegisterResourceRequest<'a> { - pub type_: _rt::String, - pub name: _rt::String, - pub object: _rt::Vec>, - pub results: _rt::Vec, - } - impl<'a> ::core::fmt::Debug for RegisterResourceRequest<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("RegisterResourceRequest") - .field("type", &self.type_) - .field("name", &self.name) - .field("object", &self.object) - .field("results", &self.results) - .finish() - } - } - pub struct RegisterResourceResult { - pub fields: _rt::Vec, - } - impl ::core::fmt::Debug for RegisterResourceResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("RegisterResourceResult") - .field("fields", &self.fields) - .finish() - } - } - #[allow(unused_unsafe, clippy::all)] - pub fn register(request: &RegisterResourceRequest<'_>) -> RegisterResourceResult { - unsafe { - #[repr(align(4))] - struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); - let RegisterResourceRequest { - type_: type_0, - name: name0, - object: object0, - results: results0, - } = request; - let vec1 = type_0; - let ptr1 = vec1.as_ptr().cast::(); - let len1 = vec1.len(); - let vec2 = name0; - let ptr2 = vec2.as_ptr().cast::(); - let len2 = vec2.len(); - let vec5 = object0; - let len5 = vec5.len(); - let layout5 = _rt::alloc::Layout::from_size_align_unchecked(vec5.len() * 12, 4); - let result5 = if layout5.size() != 0 { - let ptr = _rt::alloc::alloc(layout5).cast::(); - if ptr.is_null() { - _rt::alloc::handle_alloc_error(layout5); - } - ptr - } else { - { - ::core::ptr::null_mut() - } - }; - for (i, e) in vec5.into_iter().enumerate() { - let base = result5.add(i * 12); - { - let ObjectField { - name: name3, - value: value3, - } = e; - let vec4 = name3; - let ptr4 = vec4.as_ptr().cast::(); - let len4 = vec4.len(); - *base.add(4).cast::() = len4; - *base.add(0).cast::<*mut u8>() = ptr4.cast_mut(); - *base.add(8).cast::() = (value3).handle() as i32; - } - } - let vec8 = results0; - let len8 = vec8.len(); - let layout8 = _rt::alloc::Layout::from_size_align_unchecked(vec8.len() * 8, 4); - let result8 = if layout8.size() != 0 { - let ptr = _rt::alloc::alloc(layout8).cast::(); - if ptr.is_null() { - _rt::alloc::handle_alloc_error(layout8); - } - ptr - } else { - { - ::core::ptr::null_mut() - } - }; - for (i, e) in vec8.into_iter().enumerate() { - let base = result8.add(i * 8); - { - let ResultField { name: name6 } = e; - let vec7 = name6; - let ptr7 = vec7.as_ptr().cast::(); - let len7 = vec7.len(); - *base.add(4).cast::() = len7; - *base.add(0).cast::<*mut u8>() = ptr7.cast_mut(); - } - } - let ptr9 = ret_area.0.as_mut_ptr().cast::(); - #[cfg(target_arch = "wasm32")] - #[link(wasm_import_module = "component:pulumi-wasm/register-interface@0.1.0")] - extern "C" { - #[link_name = "register"] - fn wit_import( - _: *mut u8, - _: usize, - _: *mut u8, - _: usize, - _: *mut u8, - _: usize, - _: *mut u8, - _: usize, - _: *mut u8, - ); - } - - #[cfg(not(target_arch = "wasm32"))] - fn wit_import( - _: *mut u8, - _: usize, - _: *mut u8, - _: usize, - _: *mut u8, - _: usize, - _: *mut u8, - _: usize, - _: *mut u8, - ) { - unreachable!() - } - wit_import( - ptr1.cast_mut(), - len1, - ptr2.cast_mut(), - len2, - result5, - len5, - result8, - len8, - ptr9, - ); - let l10 = *ptr9.add(0).cast::<*mut u8>(); - let l11 = *ptr9.add(4).cast::(); - let base16 = l10; - let len16 = l11; - let mut result16 = _rt::Vec::with_capacity(len16); - for i in 0..len16 { - let base = base16.add(i * 12); - let e16 = { - let l12 = *base.add(0).cast::<*mut u8>(); - let l13 = *base.add(4).cast::(); - let len14 = l13; - let bytes14 = _rt::Vec::from_raw_parts(l12.cast(), len14, len14); - let l15 = *base.add(8).cast::(); - - RegisterResourceResultField{ - name: _rt::string_lift(bytes14), - output: super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(l15 as u32), - } - }; - result16.push(e16); - } - _rt::cabi_dealloc(base16, len16 * 12, 4); - if layout5.size() != 0 { - _rt::alloc::dealloc(result5.cast(), layout5); - } - if layout8.size() != 0 { - _rt::alloc::dealloc(result8.cast(), layout8); - } - RegisterResourceResult { fields: result16 } - } - } - } - } -} -#[allow(dead_code)] -pub mod exports { - #[allow(dead_code)] - pub mod pulumi { - #[allow(dead_code)] - pub mod random { - #[allow(dead_code, clippy::all)] - pub mod random_bytes { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub keepers: &'a Output, - pub length: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("keepers", &self.keepers) - .field("length", &self.length) - .finish() - } - } - pub struct Res { - pub base64: Output, - pub hex: Output, - pub keepers: Output, - pub length: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("base64", &self.base64) - .field("hex", &self.hex) - .field("keepers", &self.keepers) - .field("length", &self.length) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - arg1: usize, - arg2: i32, - arg3: i32, - ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let handle1; - let handle2; - let len0 = arg1; - let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); - let result3 = T::invoke( - _rt::string_lift(bytes0), - Args { - keepers: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - length: { - handle2 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg3 as u32); - &handle2 - }, - }, - ); - let ptr4 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - base64: base645, - hex: hex5, - keepers: keepers5, - length: length5, - } = result3; - *ptr4.add(0).cast::() = (base645).take_handle() as i32; - *ptr4.add(4).cast::() = (hex5).take_handle() as i32; - *ptr4.add(8).cast::() = (keepers5).take_handle() as i32; - *ptr4.add(12).cast::() = (length5).take_handle() as i32; - ptr4 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_random_random_bytes_4_15_0_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:random/random-bytes@4.15.0#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,arg3: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2, arg3) - } - };); - } - #[doc(hidden)] - pub(crate) use __export_pulumi_random_random_bytes_4_15_0_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 16]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 16]); - } - - #[allow(dead_code, clippy::all)] - pub mod random_id { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub byte_length: &'a Output, - pub keepers: &'a Output, - pub prefix: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("byte-length", &self.byte_length) - .field("keepers", &self.keepers) - .field("prefix", &self.prefix) - .finish() - } - } - pub struct Res { - pub b64_std: Output, - pub b64_url: Output, - pub byte_length: Output, - pub dec: Output, - pub hex: Output, - pub keepers: Output, - pub prefix: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("b64-std", &self.b64_std) - .field("b64-url", &self.b64_url) - .field("byte-length", &self.byte_length) - .field("dec", &self.dec) - .field("hex", &self.hex) - .field("keepers", &self.keepers) - .field("prefix", &self.prefix) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - arg1: usize, - arg2: i32, - arg3: i32, - arg4: i32, - ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let handle1; - let handle2; - let handle3; - let len0 = arg1; - let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); - let result4 = T::invoke( - _rt::string_lift(bytes0), - Args { - byte_length: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - keepers: { - handle2 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg3 as u32); - &handle2 - }, - prefix: { - handle3 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg4 as u32); - &handle3 - }, - }, - ); - let ptr5 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - b64_std: b64_std6, - b64_url: b64_url6, - byte_length: byte_length6, - dec: dec6, - hex: hex6, - keepers: keepers6, - prefix: prefix6, - } = result4; - *ptr5.add(0).cast::() = (b64_std6).take_handle() as i32; - *ptr5.add(4).cast::() = (b64_url6).take_handle() as i32; - *ptr5.add(8).cast::() = (byte_length6).take_handle() as i32; - *ptr5.add(12).cast::() = (dec6).take_handle() as i32; - *ptr5.add(16).cast::() = (hex6).take_handle() as i32; - *ptr5.add(20).cast::() = (keepers6).take_handle() as i32; - *ptr5.add(24).cast::() = (prefix6).take_handle() as i32; - ptr5 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_random_random_id_4_15_0_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:random/random-id@4.15.0#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,arg3: i32,arg4: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2, arg3, arg4) - } - };); - } - #[doc(hidden)] - pub(crate) use __export_pulumi_random_random_id_4_15_0_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 28]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 28]); - } - - #[allow(dead_code, clippy::all)] - pub mod random_integer { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub keepers: &'a Output, - pub max: &'a Output, - pub min: &'a Output, - pub seed: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("keepers", &self.keepers) - .field("max", &self.max) - .field("min", &self.min) - .field("seed", &self.seed) - .finish() - } - } - pub struct Res { - pub keepers: Output, - pub max: Output, - pub min: Output, - pub result: Output, - pub seed: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("keepers", &self.keepers) - .field("max", &self.max) - .field("min", &self.min) - .field("result", &self.result) - .field("seed", &self.seed) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - arg1: usize, - arg2: i32, - arg3: i32, - arg4: i32, - arg5: i32, - ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let handle1; - let handle2; - let handle3; - let handle4; - let len0 = arg1; - let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); - let result5 = T::invoke( - _rt::string_lift(bytes0), - Args { - keepers: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - max: { - handle2 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg3 as u32); - &handle2 - }, - min: { - handle3 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg4 as u32); - &handle3 - }, - seed: { - handle4 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg5 as u32); - &handle4 - }, - }, - ); - let ptr6 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - keepers: keepers7, - max: max7, - min: min7, - result: result7, - seed: seed7, - } = result5; - *ptr6.add(0).cast::() = (keepers7).take_handle() as i32; - *ptr6.add(4).cast::() = (max7).take_handle() as i32; - *ptr6.add(8).cast::() = (min7).take_handle() as i32; - *ptr6.add(12).cast::() = (result7).take_handle() as i32; - *ptr6.add(16).cast::() = (seed7).take_handle() as i32; - ptr6 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_random_random_integer_4_15_0_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:random/random-integer@4.15.0#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,arg3: i32,arg4: i32,arg5: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2, arg3, arg4, arg5) - } - };); - } - #[doc(hidden)] - pub(crate) use __export_pulumi_random_random_integer_4_15_0_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 20]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 20]); - } - - #[allow(dead_code, clippy::all)] - pub mod random_password { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub keepers: &'a Output, - pub length: &'a Output, - pub lower: &'a Output, - pub min_lower: &'a Output, - pub min_numeric: &'a Output, - pub min_special: &'a Output, - pub min_upper: &'a Output, - pub number: &'a Output, - pub numeric: &'a Output, - pub override_special: &'a Output, - pub special: &'a Output, - pub upper: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("keepers", &self.keepers) - .field("length", &self.length) - .field("lower", &self.lower) - .field("min-lower", &self.min_lower) - .field("min-numeric", &self.min_numeric) - .field("min-special", &self.min_special) - .field("min-upper", &self.min_upper) - .field("number", &self.number) - .field("numeric", &self.numeric) - .field("override-special", &self.override_special) - .field("special", &self.special) - .field("upper", &self.upper) - .finish() - } - } - pub struct Res { - pub bcrypt_hash: Output, - pub keepers: Output, - pub length: Output, - pub lower: Output, - pub min_lower: Output, - pub min_numeric: Output, - pub min_special: Output, - pub min_upper: Output, - pub number: Output, - pub numeric: Output, - pub override_special: Output, - pub result: Output, - pub special: Output, - pub upper: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("bcrypt-hash", &self.bcrypt_hash) - .field("keepers", &self.keepers) - .field("length", &self.length) - .field("lower", &self.lower) - .field("min-lower", &self.min_lower) - .field("min-numeric", &self.min_numeric) - .field("min-special", &self.min_special) - .field("min-upper", &self.min_upper) - .field("number", &self.number) - .field("numeric", &self.numeric) - .field("override-special", &self.override_special) - .field("result", &self.result) - .field("special", &self.special) - .field("upper", &self.upper) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - arg1: usize, - arg2: i32, - arg3: i32, - arg4: i32, - arg5: i32, - arg6: i32, - arg7: i32, - arg8: i32, - arg9: i32, - arg10: i32, - arg11: i32, - arg12: i32, - arg13: i32, - ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let handle1; - let handle2; - let handle3; - let handle4; - let handle5; - let handle6; - let handle7; - let handle8; - let handle9; - let handle10; - let handle11; - let handle12; - let len0 = arg1; - let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); - let result13 = T::invoke( - _rt::string_lift(bytes0), - Args { - keepers: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - length: { - handle2 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg3 as u32); - &handle2 - }, - lower: { - handle3 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg4 as u32); - &handle3 - }, - min_lower: { - handle4 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg5 as u32); - &handle4 - }, - min_numeric: { - handle5 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg6 as u32); - &handle5 - }, - min_special: { - handle6 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg7 as u32); - &handle6 - }, - min_upper: { - handle7 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg8 as u32); - &handle7 - }, - number: { - handle8 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg9 as u32); - &handle8 - }, - numeric: { - handle9 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg10 as u32); - &handle9 - }, - override_special: { - handle10 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg11 as u32); - &handle10 - }, - special: { - handle11 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg12 as u32); - &handle11 - }, - upper: { - handle12 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg13 as u32); - &handle12 - }, - }, - ); - let ptr14 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - bcrypt_hash: bcrypt_hash15, - keepers: keepers15, - length: length15, - lower: lower15, - min_lower: min_lower15, - min_numeric: min_numeric15, - min_special: min_special15, - min_upper: min_upper15, - number: number15, - numeric: numeric15, - override_special: override_special15, - result: result15, - special: special15, - upper: upper15, - } = result13; - *ptr14.add(0).cast::() = (bcrypt_hash15).take_handle() as i32; - *ptr14.add(4).cast::() = (keepers15).take_handle() as i32; - *ptr14.add(8).cast::() = (length15).take_handle() as i32; - *ptr14.add(12).cast::() = (lower15).take_handle() as i32; - *ptr14.add(16).cast::() = (min_lower15).take_handle() as i32; - *ptr14.add(20).cast::() = (min_numeric15).take_handle() as i32; - *ptr14.add(24).cast::() = (min_special15).take_handle() as i32; - *ptr14.add(28).cast::() = (min_upper15).take_handle() as i32; - *ptr14.add(32).cast::() = (number15).take_handle() as i32; - *ptr14.add(36).cast::() = (numeric15).take_handle() as i32; - *ptr14.add(40).cast::() = (override_special15).take_handle() as i32; - *ptr14.add(44).cast::() = (result15).take_handle() as i32; - *ptr14.add(48).cast::() = (special15).take_handle() as i32; - *ptr14.add(52).cast::() = (upper15).take_handle() as i32; - ptr14 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_random_random_password_4_15_0_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:random/random-password@4.15.0#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,arg3: i32,arg4: i32,arg5: i32,arg6: i32,arg7: i32,arg8: i32,arg9: i32,arg10: i32,arg11: i32,arg12: i32,arg13: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) - } - };); -} - #[doc(hidden)] - pub(crate) use __export_pulumi_random_random_password_4_15_0_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 56]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 56]); - } - - #[allow(dead_code, clippy::all)] - pub mod random_pet { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub keepers: &'a Output, - pub length: &'a Output, - pub prefix: &'a Output, - pub separator: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("keepers", &self.keepers) - .field("length", &self.length) - .field("prefix", &self.prefix) - .field("separator", &self.separator) - .finish() - } - } - pub struct Res { - pub keepers: Output, - pub length: Output, - pub prefix: Output, - pub separator: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("keepers", &self.keepers) - .field("length", &self.length) - .field("prefix", &self.prefix) - .field("separator", &self.separator) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - arg1: usize, - arg2: i32, - arg3: i32, - arg4: i32, - arg5: i32, - ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let handle1; - let handle2; - let handle3; - let handle4; - let len0 = arg1; - let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); - let result5 = T::invoke( - _rt::string_lift(bytes0), - Args { - keepers: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - length: { - handle2 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg3 as u32); - &handle2 - }, - prefix: { - handle3 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg4 as u32); - &handle3 - }, - separator: { - handle4 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg5 as u32); - &handle4 - }, - }, - ); - let ptr6 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - keepers: keepers7, - length: length7, - prefix: prefix7, - separator: separator7, - } = result5; - *ptr6.add(0).cast::() = (keepers7).take_handle() as i32; - *ptr6.add(4).cast::() = (length7).take_handle() as i32; - *ptr6.add(8).cast::() = (prefix7).take_handle() as i32; - *ptr6.add(12).cast::() = (separator7).take_handle() as i32; - ptr6 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_random_random_pet_4_15_0_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:random/random-pet@4.15.0#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,arg3: i32,arg4: i32,arg5: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2, arg3, arg4, arg5) - } - };); -} - #[doc(hidden)] - pub(crate) use __export_pulumi_random_random_pet_4_15_0_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 16]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 16]); - } - - #[allow(dead_code, clippy::all)] - pub mod random_shuffle { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub inputs: &'a Output, - pub keepers: &'a Output, - pub result_count: &'a Output, - pub seed: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("inputs", &self.inputs) - .field("keepers", &self.keepers) - .field("result-count", &self.result_count) - .field("seed", &self.seed) - .finish() - } - } - pub struct Res { - pub inputs: Output, - pub keepers: Output, - pub result_count: Output, - pub results: Output, - pub seed: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("inputs", &self.inputs) - .field("keepers", &self.keepers) - .field("result-count", &self.result_count) - .field("results", &self.results) - .field("seed", &self.seed) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - arg1: usize, - arg2: i32, - arg3: i32, - arg4: i32, - arg5: i32, - ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let handle1; - let handle2; - let handle3; - let handle4; - let len0 = arg1; - let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); - let result5 = T::invoke( - _rt::string_lift(bytes0), - Args { - inputs: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - keepers: { - handle2 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg3 as u32); - &handle2 - }, - result_count: { - handle3 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg4 as u32); - &handle3 - }, - seed: { - handle4 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg5 as u32); - &handle4 - }, - }, - ); - let ptr6 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - inputs: inputs7, - keepers: keepers7, - result_count: result_count7, - results: results7, - seed: seed7, - } = result5; - *ptr6.add(0).cast::() = (inputs7).take_handle() as i32; - *ptr6.add(4).cast::() = (keepers7).take_handle() as i32; - *ptr6.add(8).cast::() = (result_count7).take_handle() as i32; - *ptr6.add(12).cast::() = (results7).take_handle() as i32; - *ptr6.add(16).cast::() = (seed7).take_handle() as i32; - ptr6 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_random_random_shuffle_4_15_0_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:random/random-shuffle@4.15.0#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,arg3: i32,arg4: i32,arg5: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2, arg3, arg4, arg5) - } - };); -} - #[doc(hidden)] - pub(crate) use __export_pulumi_random_random_shuffle_4_15_0_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 20]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 20]); - } - - #[allow(dead_code, clippy::all)] - pub mod random_string { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub keepers: &'a Output, - pub length: &'a Output, - pub lower: &'a Output, - pub min_lower: &'a Output, - pub min_numeric: &'a Output, - pub min_special: &'a Output, - pub min_upper: &'a Output, - pub number: &'a Output, - pub numeric: &'a Output, - pub override_special: &'a Output, - pub special: &'a Output, - pub upper: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("keepers", &self.keepers) - .field("length", &self.length) - .field("lower", &self.lower) - .field("min-lower", &self.min_lower) - .field("min-numeric", &self.min_numeric) - .field("min-special", &self.min_special) - .field("min-upper", &self.min_upper) - .field("number", &self.number) - .field("numeric", &self.numeric) - .field("override-special", &self.override_special) - .field("special", &self.special) - .field("upper", &self.upper) - .finish() - } - } - pub struct Res { - pub keepers: Output, - pub length: Output, - pub lower: Output, - pub min_lower: Output, - pub min_numeric: Output, - pub min_special: Output, - pub min_upper: Output, - pub number: Output, - pub numeric: Output, - pub override_special: Output, - pub result: Output, - pub special: Output, - pub upper: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("keepers", &self.keepers) - .field("length", &self.length) - .field("lower", &self.lower) - .field("min-lower", &self.min_lower) - .field("min-numeric", &self.min_numeric) - .field("min-special", &self.min_special) - .field("min-upper", &self.min_upper) - .field("number", &self.number) - .field("numeric", &self.numeric) - .field("override-special", &self.override_special) - .field("result", &self.result) - .field("special", &self.special) - .field("upper", &self.upper) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - arg1: usize, - arg2: i32, - arg3: i32, - arg4: i32, - arg5: i32, - arg6: i32, - arg7: i32, - arg8: i32, - arg9: i32, - arg10: i32, - arg11: i32, - arg12: i32, - arg13: i32, - ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let handle1; - let handle2; - let handle3; - let handle4; - let handle5; - let handle6; - let handle7; - let handle8; - let handle9; - let handle10; - let handle11; - let handle12; - let len0 = arg1; - let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); - let result13 = T::invoke( - _rt::string_lift(bytes0), - Args { - keepers: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - length: { - handle2 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg3 as u32); - &handle2 - }, - lower: { - handle3 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg4 as u32); - &handle3 - }, - min_lower: { - handle4 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg5 as u32); - &handle4 - }, - min_numeric: { - handle5 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg6 as u32); - &handle5 - }, - min_special: { - handle6 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg7 as u32); - &handle6 - }, - min_upper: { - handle7 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg8 as u32); - &handle7 - }, - number: { - handle8 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg9 as u32); - &handle8 - }, - numeric: { - handle9 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg10 as u32); - &handle9 - }, - override_special: { - handle10 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg11 as u32); - &handle10 - }, - special: { - handle11 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg12 as u32); - &handle11 - }, - upper: { - handle12 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg13 as u32); - &handle12 - }, - }, - ); - let ptr14 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - keepers: keepers15, - length: length15, - lower: lower15, - min_lower: min_lower15, - min_numeric: min_numeric15, - min_special: min_special15, - min_upper: min_upper15, - number: number15, - numeric: numeric15, - override_special: override_special15, - result: result15, - special: special15, - upper: upper15, - } = result13; - *ptr14.add(0).cast::() = (keepers15).take_handle() as i32; - *ptr14.add(4).cast::() = (length15).take_handle() as i32; - *ptr14.add(8).cast::() = (lower15).take_handle() as i32; - *ptr14.add(12).cast::() = (min_lower15).take_handle() as i32; - *ptr14.add(16).cast::() = (min_numeric15).take_handle() as i32; - *ptr14.add(20).cast::() = (min_special15).take_handle() as i32; - *ptr14.add(24).cast::() = (min_upper15).take_handle() as i32; - *ptr14.add(28).cast::() = (number15).take_handle() as i32; - *ptr14.add(32).cast::() = (numeric15).take_handle() as i32; - *ptr14.add(36).cast::() = (override_special15).take_handle() as i32; - *ptr14.add(40).cast::() = (result15).take_handle() as i32; - *ptr14.add(44).cast::() = (special15).take_handle() as i32; - *ptr14.add(48).cast::() = (upper15).take_handle() as i32; - ptr14 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_random_random_string_4_15_0_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:random/random-string@4.15.0#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,arg3: i32,arg4: i32,arg5: i32,arg6: i32,arg7: i32,arg8: i32,arg9: i32,arg10: i32,arg11: i32,arg12: i32,arg13: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13) - } - };); -} - #[doc(hidden)] - pub(crate) use __export_pulumi_random_random_string_4_15_0_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 52]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 52]); - } - - #[allow(dead_code, clippy::all)] - pub mod random_uuid { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = - super::super::super::super::component::pulumi_wasm::output_interface::Output; - pub struct Args<'a> { - pub keepers: &'a Output, - } - impl<'a> ::core::fmt::Debug for Args<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Args") - .field("keepers", &self.keepers) - .finish() - } - } - pub struct Res { - pub keepers: Output, - pub result: Output, - } - impl ::core::fmt::Debug for Res { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Res") - .field("keepers", &self.keepers) - .field("result", &self.result) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_invoke_cabi( - arg0: *mut u8, - 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); - let result2 = T::invoke( - _rt::string_lift(bytes0), - Args { - keepers: { - handle1 = super::super::super::super::component::pulumi_wasm::output_interface::Output::from_handle(arg2 as u32); - &handle1 - }, - }, - ); - let ptr3 = _RET_AREA.0.as_mut_ptr().cast::(); - let Res { - keepers: keepers4, - result: result4, - } = result2; - *ptr3.add(0).cast::() = (keepers4).take_handle() as i32; - *ptr3.add(4).cast::() = (result4).take_handle() as i32; - ptr3 - } - pub trait Guest { - fn invoke(name: _rt::String, args: Args<'_>) -> Res; - } - #[doc(hidden)] - - macro_rules! __export_pulumi_random_random_uuid_4_15_0_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "pulumi:random/random-uuid@4.15.0#invoke"] - unsafe extern "C" fn export_invoke(arg0: *mut u8,arg1: usize,arg2: i32,) -> *mut u8 { - $($path_to_types)*::_export_invoke_cabi::<$ty>(arg0, arg1, arg2) - } - };); -} - #[doc(hidden)] - pub(crate) use __export_pulumi_random_random_uuid_4_15_0_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 8]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 8]); - } - } - } -} -mod _rt { - - use core::fmt; - use core::marker; - use core::sync::atomic::{AtomicU32, Ordering::Relaxed}; - - /// A type which represents a component model resource, either imported or - /// exported into this component. - /// - /// This is a low-level wrapper which handles the lifetime of the resource - /// (namely this has a destructor). The `T` provided defines the component model - /// intrinsics that this wrapper uses. - /// - /// One of the chief purposes of this type is to provide `Deref` implementations - /// to access the underlying data when it is owned. - /// - /// This type is primarily used in generated code for exported and imported - /// resources. - #[repr(transparent)] - pub struct Resource { - // NB: This would ideally be `u32` but it is not. The fact that this has - // interior mutability is not exposed in the API of this type except for the - // `take_handle` method which is supposed to in theory be private. - // - // This represents, almost all the time, a valid handle value. When it's - // invalid it's stored as `u32::MAX`. - handle: AtomicU32, - _marker: marker::PhantomData, - } - - /// A trait which all wasm resources implement, namely providing the ability to - /// 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); - } - - impl Resource { - #[doc(hidden)] - pub unsafe fn from_handle(handle: u32) -> Self { - debug_assert!(handle != u32::MAX); - Self { - handle: AtomicU32::new(handle), - _marker: marker::PhantomData, - } - } - - /// Takes ownership of the handle owned by `resource`. - /// - /// Note that this ideally would be `into_handle` taking `Resource` by - /// ownership. The code generator does not enable that in all situations, - /// unfortunately, so this is provided instead. - /// - /// Also note that `take_handle` is in theory only ever called on values - /// owned by a generated function. For example a generated function might - /// take `Resource` as an argument but then call `take_handle` on a - /// reference to that argument. In that sense the dynamic nature of - /// `take_handle` should only be exposed internally to generated code, not - /// to user code. - #[doc(hidden)] - pub fn take_handle(resource: &Resource) -> u32 { - resource.handle.swap(u32::MAX, Relaxed) - } - - #[doc(hidden)] - pub fn handle(resource: &Resource) -> u32 { - resource.handle.load(Relaxed) - } - } - - impl fmt::Debug for Resource { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource") - .field("handle", &self.handle) - .finish() - } - } - - impl Drop for Resource { - fn drop(&mut self) { - unsafe { - match self.handle.load(Relaxed) { - // If this handle was "taken" then don't do anything in the - // destructor. - u32::MAX => {} - - // ... but otherwise do actually destroy it with the imported - // component model intrinsic as defined through `T`. - other => T::drop(other), - } - } - } - } - pub use alloc_crate::alloc; - pub use alloc_crate::string::String; - pub use alloc_crate::vec::Vec; - pub unsafe fn string_lift(bytes: Vec) -> String { - if cfg!(debug_assertions) { - String::from_utf8(bytes).unwrap() - } else { - String::from_utf8_unchecked(bytes) - } - } - pub unsafe fn cabi_dealloc(ptr: *mut u8, size: usize, align: usize) { - if size == 0 { - return; - } - let layout = alloc::Layout::from_size_align_unchecked(size, align); - alloc::dealloc(ptr as *mut u8, layout); - } - - #[cfg(target_arch = "wasm32")] - pub fn run_ctors_once() { - wit_bindgen_rt::run_ctors_once(); - } - extern crate alloc as alloc_crate; -} - -/// Generates `#[no_mangle]` functions to export the specified type as the -/// root implementation of all generated traits. -/// -/// For more information see the documentation of `wit_bindgen::generate!`. -/// -/// ```rust -/// # macro_rules! export{ ($($t:tt)*) => (); } -/// # trait Guest {} -/// struct MyType; -/// -/// impl Guest for MyType { -/// // ... -/// } -/// -/// export!(MyType); -/// ``` -#[allow(unused_macros)] -#[doc(hidden)] - -macro_rules! __export_random_pulumi_impl { - ($ty:ident) => (self::export!($ty with_types_in self);); - ($ty:ident with_types_in $($path_to_types_root:tt)*) => ( - $($path_to_types_root)*::exports::pulumi::random::random_bytes::__export_pulumi_random_random_bytes_4_15_0_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::random::random_bytes); - $($path_to_types_root)*::exports::pulumi::random::random_id::__export_pulumi_random_random_id_4_15_0_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::random::random_id); - $($path_to_types_root)*::exports::pulumi::random::random_integer::__export_pulumi_random_random_integer_4_15_0_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::random::random_integer); - $($path_to_types_root)*::exports::pulumi::random::random_password::__export_pulumi_random_random_password_4_15_0_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::random::random_password); - $($path_to_types_root)*::exports::pulumi::random::random_pet::__export_pulumi_random_random_pet_4_15_0_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::random::random_pet); - $($path_to_types_root)*::exports::pulumi::random::random_shuffle::__export_pulumi_random_random_shuffle_4_15_0_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::random::random_shuffle); - $($path_to_types_root)*::exports::pulumi::random::random_string::__export_pulumi_random_random_string_4_15_0_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::random::random_string); - $($path_to_types_root)*::exports::pulumi::random::random_uuid::__export_pulumi_random_random_uuid_4_15_0_cabi!($ty with_types_in $($path_to_types_root)*::exports::pulumi::random::random_uuid); - ) -} -#[doc(inline)] -pub(crate) use __export_random_pulumi_impl as export; - -#[cfg(target_arch = "wasm32")] -#[link_section = "component-type:wit-bindgen:0.25.0:random-pulumi:encoded world"] -#[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 2546] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xee\x12\x01A\x02\x01\ -A\x15\x01B\x09\x04\0\x06output\x03\x01\x01i\0\x01@\x01\x05values\0\x01\x04\0\x13\ -[constructor]output\x01\x02\x01h\0\x01@\x02\x04self\x03\x0dfunction-names\0\x01\x04\ -\0\x12[method]output.map\x01\x04\x01@\x01\x04self\x03\0\x01\x04\0\x18[method]out\ -put.duplicate\x01\x05\x03\x01,component:pulumi-wasm/output-interface@0.1.0\x05\0\ -\x02\x03\0\0\x06output\x01B\x13\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\ -\x01\x01r\x02\x04names\x05value\x02\x04\0\x0cobject-field\x03\0\x03\x01r\x01\x04\ -names\x04\0\x0cresult-field\x03\0\x05\x01i\x01\x01r\x02\x04names\x06output\x07\x04\ -\0\x1eregister-resource-result-field\x03\0\x08\x01p\x04\x01p\x06\x01r\x04\x04typ\ -es\x04names\x06object\x0a\x07results\x0b\x04\0\x19register-resource-request\x03\0\ -\x0c\x01p\x09\x01r\x01\x06fields\x0e\x04\0\x18register-resource-result\x03\0\x0f\ -\x01@\x01\x07request\x0d\0\x10\x04\0\x08register\x01\x11\x03\x01.component:pulum\ -i-wasm/register-interface@0.1.0\x05\x02\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06ou\ -tput\x03\0\0\x01h\x01\x01r\x02\x07keepers\x02\x06length\x02\x04\0\x04args\x03\0\x03\ -\x01i\x01\x01r\x04\x06base64\x05\x03hex\x05\x07keepers\x05\x06length\x05\x04\0\x03\ -res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01\ -!pulumi:random/random-bytes@4.15.0\x05\x03\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06\ -output\x03\0\0\x01h\x01\x01r\x03\x0bbyte-length\x02\x07keepers\x02\x06prefix\x02\ -\x04\0\x04args\x03\0\x03\x01i\x01\x01r\x07\x07b64-std\x05\x07b64-url\x05\x0bbyte\ --length\x05\x03dec\x05\x03hex\x05\x07keepers\x05\x06prefix\x05\x04\0\x03res\x03\0\ -\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01\x1epulu\ -mi:random/random-id@4.15.0\x05\x04\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\ -\0\0\x01h\x01\x01r\x04\x07keepers\x02\x03max\x02\x03min\x02\x04seed\x02\x04\0\x04\ -args\x03\0\x03\x01i\x01\x01r\x05\x07keepers\x05\x03max\x05\x03min\x05\x06result\x05\ -\x04seed\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06\ -invoke\x01\x08\x04\x01#pulumi:random/random-integer@4.15.0\x05\x05\x01B\x0a\x02\x03\ -\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x0c\x07keepers\x02\x06length\x02\ -\x05lower\x02\x09min-lower\x02\x0bmin-numeric\x02\x0bmin-special\x02\x09min-uppe\ -r\x02\x06number\x02\x07numeric\x02\x10override-special\x02\x07special\x02\x05upp\ -er\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01r\x0e\x0bbcrypt-hash\x05\x07keepers\x05\ -\x06length\x05\x05lower\x05\x09min-lower\x05\x0bmin-numeric\x05\x0bmin-special\x05\ -\x09min-upper\x05\x06number\x05\x07numeric\x05\x10override-special\x05\x06result\ -\x05\x07special\x05\x05upper\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04arg\ -s\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01$pulumi:random/random-password@4.15.0\ -\x05\x06\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x04\x07\ -keepers\x02\x06length\x02\x06prefix\x02\x09separator\x02\x04\0\x04args\x03\0\x03\ -\x01i\x01\x01r\x04\x07keepers\x05\x06length\x05\x06prefix\x05\x09separator\x05\x04\ -\0\x03res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\ -\x01\x1fpulumi:random/random-pet@4.15.0\x05\x07\x01B\x0a\x02\x03\x02\x01\x01\x04\ -\0\x06output\x03\0\0\x01h\x01\x01r\x04\x06inputs\x02\x07keepers\x02\x0cresult-co\ -unt\x02\x04seed\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01r\x05\x06inputs\x05\x07k\ -eepers\x05\x0cresult-count\x05\x07results\x05\x04seed\x05\x04\0\x03res\x03\0\x06\ -\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01#pulumi:rand\ -om/random-shuffle@4.15.0\x05\x08\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\ -\0\0\x01h\x01\x01r\x0c\x07keepers\x02\x06length\x02\x05lower\x02\x09min-lower\x02\ -\x0bmin-numeric\x02\x0bmin-special\x02\x09min-upper\x02\x06number\x02\x07numeric\ -\x02\x10override-special\x02\x07special\x02\x05upper\x02\x04\0\x04args\x03\0\x03\ -\x01i\x01\x01r\x0d\x07keepers\x05\x06length\x05\x05lower\x05\x09min-lower\x05\x0b\ -min-numeric\x05\x0bmin-special\x05\x09min-upper\x05\x06number\x05\x07numeric\x05\ -\x10override-special\x05\x06result\x05\x07special\x05\x05upper\x05\x04\0\x03res\x03\ -\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01\"pulu\ -mi:random/random-string@4.15.0\x05\x09\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06out\ -put\x03\0\0\x01h\x01\x01r\x01\x07keepers\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01\ -r\x02\x07keepers\x05\x06result\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04a\ -rgs\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01\x20pulumi:random/random-uuid@4.15.\ -0\x05\x0a\x04\x01\"pulumi:random/random-pulumi@4.15.0\x04\0\x0b\x13\x01\0\x0dran\ -dom-pulumi\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070\ -.208.1\x10wit-bindgen-rust\x060.25.0"; - -#[inline(never)] -#[doc(hidden)] -#[cfg(target_arch = "wasm32")] -pub fn __link_custom_section_describing_imports() { - wit_bindgen_rt::maybe_link_cabi_realloc(); -} diff --git a/pulumi_wasm/src/bindings.rs b/pulumi_wasm/src/bindings.rs deleted file mode 100644 index f5952e980..000000000 --- a/pulumi_wasm/src/bindings.rs +++ /dev/null @@ -1,1351 +0,0 @@ -// 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(dead_code, clippy::all)] - pub mod log { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::__link_custom_section_describing_imports; - use super::super::super::_rt; - #[repr(u8)] - #[derive(Clone, Copy, Eq, PartialEq)] - pub enum Level { - Trace, - Debug, - Info, - Warn, - Error, - } - impl ::core::fmt::Debug for Level { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Level::Trace => f.debug_tuple("Level::Trace").finish(), - Level::Debug => f.debug_tuple("Level::Debug").finish(), - Level::Info => f.debug_tuple("Level::Info").finish(), - Level::Warn => f.debug_tuple("Level::Warn").finish(), - Level::Error => f.debug_tuple("Level::Error").finish(), - } - } - } - - impl Level { - #[doc(hidden)] - pub unsafe fn _lift(val: u8) -> Level { - if !cfg!(debug_assertions) { - return ::core::mem::transmute(val); - } - - match val { - 0 => Level::Trace, - 1 => Level::Debug, - 2 => Level::Info, - 3 => Level::Warn, - 4 => Level::Error, - - _ => panic!("invalid enum discriminant"), - } - } - } - - #[derive(Clone)] - pub struct Content { - pub level: Level, - pub target: _rt::String, - pub args: _rt::String, - pub module_path: Option<_rt::String>, - pub file: Option<_rt::String>, - pub line: Option, - pub key_values: _rt::Vec<(_rt::String, _rt::String)>, - } - impl ::core::fmt::Debug for Content { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("Content") - .field("level", &self.level) - .field("target", &self.target) - .field("args", &self.args) - .field("module-path", &self.module_path) - .field("file", &self.file) - .field("line", &self.line) - .field("key-values", &self.key_values) - .finish() - } - } - #[allow(unused_unsafe, clippy::all)] - pub fn log(content: &Content) { - unsafe { - let Content { - level: level0, - target: target0, - args: args0, - module_path: module_path0, - file: file0, - line: line0, - key_values: key_values0, - } = content; - let vec1 = target0; - let ptr1 = vec1.as_ptr().cast::(); - let len1 = vec1.len(); - let vec2 = args0; - let ptr2 = vec2.as_ptr().cast::(); - let len2 = vec2.len(); - let (result4_0, result4_1, result4_2) = match module_path0 { - Some(e) => { - let vec3 = e; - let ptr3 = vec3.as_ptr().cast::(); - let len3 = vec3.len(); - - (1i32, ptr3.cast_mut(), len3) - } - None => (0i32, ::core::ptr::null_mut(), 0usize), - }; - let (result6_0, result6_1, result6_2) = match file0 { - Some(e) => { - let vec5 = e; - let ptr5 = vec5.as_ptr().cast::(); - let len5 = vec5.len(); - - (1i32, ptr5.cast_mut(), len5) - } - None => (0i32, ::core::ptr::null_mut(), 0usize), - }; - let (result7_0, result7_1) = match line0 { - Some(e) => (1i32, _rt::as_i32(e)), - None => (0i32, 0i32), - }; - let vec11 = key_values0; - let len11 = vec11.len(); - let layout11 = - _rt::alloc::Layout::from_size_align_unchecked(vec11.len() * 16, 4); - let result11 = if layout11.size() != 0 { - let ptr = _rt::alloc::alloc(layout11).cast::(); - if ptr.is_null() { - _rt::alloc::handle_alloc_error(layout11); - } - ptr - } else { - { - ::core::ptr::null_mut() - } - }; - for (i, e) in vec11.into_iter().enumerate() { - let base = result11.add(i * 16); - { - let (t8_0, t8_1) = e; - let vec9 = t8_0; - let ptr9 = vec9.as_ptr().cast::(); - let len9 = vec9.len(); - *base.add(4).cast::() = len9; - *base.add(0).cast::<*mut u8>() = ptr9.cast_mut(); - let vec10 = t8_1; - let ptr10 = vec10.as_ptr().cast::(); - let len10 = vec10.len(); - *base.add(12).cast::() = len10; - *base.add(8).cast::<*mut u8>() = ptr10.cast_mut(); - } - } - - #[cfg(target_arch = "wasm32")] - #[link(wasm_import_module = "component:pulumi-wasm/log@0.1.0")] - extern "C" { - #[link_name = "log"] - fn wit_import( - _: i32, - _: *mut u8, - _: usize, - _: *mut u8, - _: usize, - _: i32, - _: *mut u8, - _: usize, - _: i32, - _: *mut u8, - _: usize, - _: i32, - _: i32, - _: *mut u8, - _: usize, - ); - } - - #[cfg(not(target_arch = "wasm32"))] - fn wit_import( - _: i32, - _: *mut u8, - _: usize, - _: *mut u8, - _: usize, - _: i32, - _: *mut u8, - _: usize, - _: i32, - _: *mut u8, - _: usize, - _: i32, - _: i32, - _: *mut u8, - _: usize, - ) { - unreachable!() - } - wit_import( - level0.clone() as i32, - ptr1.cast_mut(), - len1, - ptr2.cast_mut(), - len2, - result4_0, - result4_1, - result4_2, - result6_0, - result6_1, - result6_2, - result7_0, - result7_1, - result11, - len11, - ); - if layout11.size() != 0 { - _rt::alloc::dealloc(result11.cast(), layout11); - } - } - } - } - - #[allow(dead_code, clippy::all)] - pub mod external_world { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::__link_custom_section_describing_imports; - use super::super::super::_rt; - #[derive(Clone)] - pub struct RegisterResourceRequest { - pub output_id: _rt::String, - pub body: _rt::Vec, - } - impl ::core::fmt::Debug for RegisterResourceRequest { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("RegisterResourceRequest") - .field("output-id", &self.output_id) - .field("body", &self.body) - .finish() - } - } - #[derive(Clone)] - pub struct RegisteredResource { - pub output_id: _rt::String, - pub body: _rt::Vec, - } - impl ::core::fmt::Debug for RegisteredResource { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("RegisteredResource") - .field("output-id", &self.output_id) - .field("body", &self.body) - .finish() - } - } - #[allow(unused_unsafe, clippy::all)] - pub fn is_in_preview() -> bool { - unsafe { - #[cfg(target_arch = "wasm32")] - #[link(wasm_import_module = "component:pulumi-wasm/external-world@0.1.0")] - extern "C" { - #[link_name = "is-in-preview"] - fn wit_import() -> i32; - } - - #[cfg(not(target_arch = "wasm32"))] - fn wit_import() -> i32 { - unreachable!() - } - let ret = wit_import(); - _rt::bool_lift(ret as u8) - } - } - #[allow(unused_unsafe, clippy::all)] - pub fn get_root_resource() -> _rt::String { - unsafe { - #[repr(align(4))] - struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); - let ptr0 = ret_area.0.as_mut_ptr().cast::(); - #[cfg(target_arch = "wasm32")] - #[link(wasm_import_module = "component:pulumi-wasm/external-world@0.1.0")] - extern "C" { - #[link_name = "get-root-resource"] - fn wit_import(_: *mut u8); - } - - #[cfg(not(target_arch = "wasm32"))] - fn wit_import(_: *mut u8) { - unreachable!() - } - wit_import(ptr0); - let l1 = *ptr0.add(0).cast::<*mut u8>(); - let l2 = *ptr0.add(4).cast::(); - let len3 = l2; - let bytes3 = _rt::Vec::from_raw_parts(l1.cast(), len3, len3); - _rt::string_lift(bytes3) - } - } - #[allow(unused_unsafe, clippy::all)] - pub fn register_resource_outputs(request: &[u8]) -> _rt::Vec { - unsafe { - #[repr(align(4))] - struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); - let vec0 = request; - let ptr0 = vec0.as_ptr().cast::(); - let len0 = vec0.len(); - let ptr1 = ret_area.0.as_mut_ptr().cast::(); - #[cfg(target_arch = "wasm32")] - #[link(wasm_import_module = "component:pulumi-wasm/external-world@0.1.0")] - extern "C" { - #[link_name = "register-resource-outputs"] - fn wit_import(_: *mut u8, _: usize, _: *mut u8); - } - - #[cfg(not(target_arch = "wasm32"))] - fn wit_import(_: *mut u8, _: usize, _: *mut u8) { - unreachable!() - } - wit_import(ptr0.cast_mut(), len0, ptr1); - let l2 = *ptr1.add(0).cast::<*mut u8>(); - let l3 = *ptr1.add(4).cast::(); - let len4 = l3; - _rt::Vec::from_raw_parts(l2.cast(), len4, len4) - } - } - #[allow(unused_unsafe, clippy::all)] - pub fn register_resource(request: &RegisterResourceRequest) { - unsafe { - let RegisterResourceRequest { - output_id: output_id0, - body: body0, - } = request; - let vec1 = output_id0; - let ptr1 = vec1.as_ptr().cast::(); - let len1 = vec1.len(); - let vec2 = body0; - let ptr2 = vec2.as_ptr().cast::(); - let len2 = vec2.len(); - - #[cfg(target_arch = "wasm32")] - #[link(wasm_import_module = "component:pulumi-wasm/external-world@0.1.0")] - extern "C" { - #[link_name = "register-resource"] - fn wit_import(_: *mut u8, _: usize, _: *mut u8, _: usize); - } - - #[cfg(not(target_arch = "wasm32"))] - fn wit_import(_: *mut u8, _: usize, _: *mut u8, _: usize) { - unreachable!() - } - wit_import(ptr1.cast_mut(), len1, ptr2.cast_mut(), len2); - } - } - #[allow(unused_unsafe, clippy::all)] - pub fn wait_for_registered_resources() -> _rt::Vec { - unsafe { - #[repr(align(4))] - struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); - let ptr0 = ret_area.0.as_mut_ptr().cast::(); - #[cfg(target_arch = "wasm32")] - #[link(wasm_import_module = "component:pulumi-wasm/external-world@0.1.0")] - extern "C" { - #[link_name = "wait-for-registered-resources"] - fn wit_import(_: *mut u8); - } - - #[cfg(not(target_arch = "wasm32"))] - fn wit_import(_: *mut u8) { - unreachable!() - } - wit_import(ptr0); - let l1 = *ptr0.add(0).cast::<*mut u8>(); - let l2 = *ptr0.add(4).cast::(); - let base9 = l1; - let len9 = l2; - let mut result9 = _rt::Vec::with_capacity(len9); - for i in 0..len9 { - let base = base9.add(i * 16); - let e9 = { - let l3 = *base.add(0).cast::<*mut u8>(); - let l4 = *base.add(4).cast::(); - let len5 = l4; - let bytes5 = _rt::Vec::from_raw_parts(l3.cast(), len5, len5); - let l6 = *base.add(8).cast::<*mut u8>(); - let l7 = *base.add(12).cast::(); - let len8 = l7; - - RegisteredResource { - output_id: _rt::string_lift(bytes5), - body: _rt::Vec::from_raw_parts(l6.cast(), len8, len8), - } - }; - result9.push(e9); - } - _rt::cabi_dealloc(base9, len9 * 16, 4); - result9 - } - } - } - } -} -#[allow(dead_code)] -pub mod exports { - #[allow(dead_code)] - pub mod component { - #[allow(dead_code)] - pub mod pulumi_wasm { - #[allow(dead_code, clippy::all)] - pub mod output_interface { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - - #[derive(Debug)] - #[repr(transparent)] - pub struct Output { - handle: _rt::Resource, - } - - type _OutputRep = Option; - - impl Output { - /// Creates a new resource from the specified representation. - /// - /// This function will create a new resource handle by moving `val` onto - /// the heap and then passing that heap pointer to the component model to - /// create a handle. The owned handle is then returned as `Output`. - pub fn new(val: T) -> Self { - Self::type_guard::(); - let val: _OutputRep = Some(val); - let ptr: *mut _OutputRep = _rt::Box::into_raw(_rt::Box::new(val)); - unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } - } - - /// Gets access to the underlying `T` which represents this resource. - pub fn get(&self) -> &T { - let ptr = unsafe { &*self.as_ptr::() }; - ptr.as_ref().unwrap() - } - - /// Gets mutable access to the underlying `T` which represents this - /// resource. - pub fn get_mut(&mut self) -> &mut T { - let ptr = unsafe { &mut *self.as_ptr::() }; - ptr.as_mut().unwrap() - } - - /// Consumes this resource and returns the underlying `T`. - pub fn into_inner(self) -> T { - let ptr = unsafe { &mut *self.as_ptr::() }; - ptr.take().unwrap() - } - - #[doc(hidden)] - pub unsafe fn from_handle(handle: u32) -> Self { - Self { - handle: _rt::Resource::from_handle(handle), - } - } - - #[doc(hidden)] - pub fn take_handle(&self) -> u32 { - _rt::Resource::take_handle(&self.handle) - } - - #[doc(hidden)] - pub fn handle(&self) -> u32 { - _rt::Resource::handle(&self.handle) - } - - // It's theoretically possible to implement the `GuestOutput` trait twice - // so guard against using it with two different types here. - #[doc(hidden)] - fn type_guard() { - use core::any::TypeId; - static mut LAST_TYPE: Option = None; - unsafe { - assert!(!cfg!(target_feature = "threads")); - let id = TypeId::of::(); - match LAST_TYPE { - Some(ty) => assert!( - ty == id, - "cannot use two types with this resource type" - ), - None => LAST_TYPE = Some(id), - } - } - } - - #[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::(); - T::_resource_rep(self.handle()).cast() - } - } - - /// A borrowed version of [`Output`] which represents a borrowed value - /// with the lifetime `'a`. - #[derive(Debug)] - #[repr(transparent)] - pub struct OutputBorrow<'a> { - rep: *mut u8, - _marker: core::marker::PhantomData<&'a Output>, - } - - impl<'a> OutputBorrow<'a> { - #[doc(hidden)] - pub unsafe fn lift(rep: usize) -> Self { - Self { - rep: rep as *mut u8, - _marker: core::marker::PhantomData, - } - } - - /// Gets access to the underlying `T` in this resource. - pub fn get(&self) -> &T { - let ptr = unsafe { &mut *self.as_ptr::() }; - ptr.as_ref().unwrap() - } - - // NB: mutable access is not allowed due to the component model allowing - // multiple borrows of the same resource. - - fn as_ptr(&self) -> *mut _OutputRep { - Output::type_guard::(); - self.rep.cast() - } - } - - unsafe impl _rt::WasmResource for Output { - #[inline] - unsafe fn drop(_handle: u32) { - #[cfg(not(target_arch = "wasm32"))] - unreachable!(); - - #[cfg(target_arch = "wasm32")] - { - #[link( - wasm_import_module = "[export]component:pulumi-wasm/output-interface@0.1.0" - )] - extern "C" { - #[link_name = "[resource-drop]output"] - fn drop(_: u32); - } - - drop(_handle); - } - } - } - - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_constructor_output_cabi( - arg0: *mut u8, - arg1: 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 result1 = Output::new(T::new(_rt::string_lift(bytes0))); - (result1).take_handle() as i32 - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_method_output_map_cabi( - 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( - OutputBorrow::lift(arg0 as u32 as usize).get(), - _rt::string_lift(bytes0), - ); - (result1).take_handle() as i32 - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_method_output_duplicate_cabi( - 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 - } - pub trait Guest { - type Output: GuestOutput; - } - pub trait GuestOutput: 'static { - #[doc(hidden)] - unsafe fn _resource_new(val: *mut u8) -> u32 - where - Self: Sized, - { - #[cfg(not(target_arch = "wasm32"))] - { - let _ = val; - unreachable!(); - } - - #[cfg(target_arch = "wasm32")] - { - #[link( - wasm_import_module = "[export]component:pulumi-wasm/output-interface@0.1.0" - )] - extern "C" { - #[link_name = "[resource-new]output"] - fn new(_: *mut u8) -> u32; - } - new(val) - } - } - - #[doc(hidden)] - fn _resource_rep(handle: u32) -> *mut u8 - where - Self: Sized, - { - #[cfg(not(target_arch = "wasm32"))] - { - let _ = handle; - unreachable!(); - } - - #[cfg(target_arch = "wasm32")] - { - #[link( - wasm_import_module = "[export]component:pulumi-wasm/output-interface@0.1.0" - )] - extern "C" { - #[link_name = "[resource-rep]output"] - fn rep(_: u32) -> *mut u8; - } - unsafe { rep(handle) } - } - } - - fn new(value: _rt::String) -> Self; - fn map(&self, function_name: _rt::String) -> Output; - fn duplicate(&self) -> Output; - } - #[doc(hidden)] - - macro_rules! __export_component_pulumi_wasm_output_interface_0_1_0_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "component:pulumi-wasm/output-interface@0.1.0#[constructor]output"] - unsafe extern "C" fn export_constructor_output(arg0: *mut u8,arg1: usize,) -> i32 { - $($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: *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.duplicate"] - 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)] - pub(crate) use __export_component_pulumi_wasm_output_interface_0_1_0_cabi; - } - - #[allow(dead_code, clippy::all)] - pub mod register_interface { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = super::super::super::super::exports::component::pulumi_wasm::output_interface::Output; - pub type OutputBorrow<'a> = super::super::super::super::exports::component::pulumi_wasm::output_interface::OutputBorrow<'a>; - pub struct ObjectField<'a> { - pub name: _rt::String, - pub value: OutputBorrow<'a>, - } - impl<'a> ::core::fmt::Debug for ObjectField<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ObjectField") - .field("name", &self.name) - .field("value", &self.value) - .finish() - } - } - #[derive(Clone)] - pub struct ResultField { - pub name: _rt::String, - } - impl ::core::fmt::Debug for ResultField { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("ResultField") - .field("name", &self.name) - .finish() - } - } - pub struct RegisterResourceResultField { - pub name: _rt::String, - pub output: Output, - } - impl ::core::fmt::Debug for RegisterResourceResultField { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("RegisterResourceResultField") - .field("name", &self.name) - .field("output", &self.output) - .finish() - } - } - pub struct RegisterResourceRequest<'a> { - pub type_: _rt::String, - pub name: _rt::String, - pub object: _rt::Vec>, - pub results: _rt::Vec, - } - impl<'a> ::core::fmt::Debug for RegisterResourceRequest<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("RegisterResourceRequest") - .field("type", &self.type_) - .field("name", &self.name) - .field("object", &self.object) - .field("results", &self.results) - .finish() - } - } - pub struct RegisterResourceResult { - pub fields: _rt::Vec, - } - impl ::core::fmt::Debug for RegisterResourceResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("RegisterResourceResult") - .field("fields", &self.fields) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_register_cabi( - arg0: *mut u8, - arg1: usize, - arg2: *mut u8, - arg3: usize, - arg4: *mut u8, - arg5: usize, - arg6: *mut u8, - arg7: 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 len1 = arg3; - let bytes1 = _rt::Vec::from_raw_parts(arg2.cast(), len1, len1); - let base6 = arg4; - let len6 = arg5; - let mut result6 = _rt::Vec::with_capacity(len6); - for i in 0..len6 { - let base = base6.add(i * 12); - let e6 = { - let l2 = *base.add(0).cast::<*mut u8>(); - let l3 = *base.add(4).cast::(); - let len4 = l3; - let bytes4 = _rt::Vec::from_raw_parts(l2.cast(), len4, len4); - let l5 = *base.add(8).cast::(); - - ObjectField { - name: _rt::string_lift(bytes4), - value: OutputBorrow::lift(l5 as u32 as usize), - } - }; - result6.push(e6); - } - _rt::cabi_dealloc(base6, len6 * 12, 4); - let base10 = arg6; - let len10 = arg7; - let mut result10 = _rt::Vec::with_capacity(len10); - for i in 0..len10 { - let base = base10.add(i * 8); - let e10 = { - let l7 = *base.add(0).cast::<*mut u8>(); - let l8 = *base.add(4).cast::(); - let len9 = l8; - let bytes9 = _rt::Vec::from_raw_parts(l7.cast(), len9, len9); - - ResultField { - name: _rt::string_lift(bytes9), - } - }; - result10.push(e10); - } - _rt::cabi_dealloc(base10, len10 * 8, 4); - let result11 = T::register(RegisterResourceRequest { - type_: _rt::string_lift(bytes0), - name: _rt::string_lift(bytes1), - object: result6, - results: result10, - }); - let ptr12 = _RET_AREA.0.as_mut_ptr().cast::(); - let RegisterResourceResult { fields: fields13 } = result11; - let vec16 = fields13; - let len16 = vec16.len(); - let layout16 = - _rt::alloc::Layout::from_size_align_unchecked(vec16.len() * 12, 4); - let result16 = if layout16.size() != 0 { - let ptr = _rt::alloc::alloc(layout16).cast::(); - if ptr.is_null() { - _rt::alloc::handle_alloc_error(layout16); - } - ptr - } else { - { - ::core::ptr::null_mut() - } - }; - for (i, e) in vec16.into_iter().enumerate() { - let base = result16.add(i * 12); - { - let RegisterResourceResultField { - name: name14, - output: output14, - } = e; - let vec15 = (name14.into_bytes()).into_boxed_slice(); - let ptr15 = vec15.as_ptr().cast::(); - let len15 = vec15.len(); - ::core::mem::forget(vec15); - *base.add(4).cast::() = len15; - *base.add(0).cast::<*mut u8>() = ptr15.cast_mut(); - *base.add(8).cast::() = (output14).take_handle() as i32; - } - } - *ptr12.add(4).cast::() = len16; - *ptr12.add(0).cast::<*mut u8>() = result16; - ptr12 - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn __post_return_register(arg0: *mut u8) { - let l2 = *arg0.add(0).cast::<*mut u8>(); - let l3 = *arg0.add(4).cast::(); - let base4 = l2; - let len4 = l3; - for i in 0..len4 { - let base = base4.add(i * 12); - { - let l0 = *base.add(0).cast::<*mut u8>(); - let l1 = *base.add(4).cast::(); - _rt::cabi_dealloc(l0, l1, 1); - } - } - _rt::cabi_dealloc(base4, len4 * 12, 4); - } - pub trait Guest { - fn register(request: RegisterResourceRequest<'_>) -> RegisterResourceResult; - } - #[doc(hidden)] - - macro_rules! __export_component_pulumi_wasm_register_interface_0_1_0_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "component:pulumi-wasm/register-interface@0.1.0#register"] - unsafe extern "C" fn export_register(arg0: *mut u8,arg1: usize,arg2: *mut u8,arg3: usize,arg4: *mut u8,arg5: usize,arg6: *mut u8,arg7: usize,) -> *mut u8 { - $($path_to_types)*::_export_register_cabi::<$ty>(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) - } - #[export_name = "cabi_post_component:pulumi-wasm/register-interface@0.1.0#register"] - unsafe extern "C" fn _post_return_register(arg0: *mut u8,) { - $($path_to_types)*::__post_return_register::<$ty>(arg0) - } - };); -} - #[doc(hidden)] - pub(crate) use __export_component_pulumi_wasm_register_interface_0_1_0_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 8]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 8]); - } - - #[allow(dead_code, clippy::all)] - pub mod stack_interface { - #[used] - #[doc(hidden)] - #[cfg(target_arch = "wasm32")] - static __FORCE_SECTION_REF: fn() = - super::super::super::super::__link_custom_section_describing_imports; - use super::super::super::super::_rt; - pub type Output = super::super::super::super::exports::component::pulumi_wasm::output_interface::Output; - pub type OutputBorrow<'a> = super::super::super::super::exports::component::pulumi_wasm::output_interface::OutputBorrow<'a>; - pub struct FunctionInvocationRequest { - pub id: Output, - pub function_id: _rt::String, - pub value: _rt::String, - } - impl ::core::fmt::Debug for FunctionInvocationRequest { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FunctionInvocationRequest") - .field("id", &self.id) - .field("function-id", &self.function_id) - .field("value", &self.value) - .finish() - } - } - pub struct FunctionInvocationResult<'a> { - pub id: OutputBorrow<'a>, - pub value: _rt::String, - } - impl<'a> ::core::fmt::Debug for FunctionInvocationResult<'a> { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FunctionInvocationResult") - .field("id", &self.id) - .field("value", &self.value) - .finish() - } - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_add_export_cabi( - arg0: *mut u8, - 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( - _rt::string_lift(bytes0), - OutputBorrow::lift(arg2 as u32 as usize), - ); - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn _export_finish_cabi(arg0: *mut u8, arg1: usize) -> *mut u8 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let base4 = arg0; - let len4 = arg1; - let mut result4 = _rt::Vec::with_capacity(len4); - for i in 0..len4 { - let base = base4.add(i * 12); - let e4 = { - let l0 = *base.add(0).cast::(); - let l1 = *base.add(4).cast::<*mut u8>(); - let l2 = *base.add(8).cast::(); - let len3 = l2; - let bytes3 = _rt::Vec::from_raw_parts(l1.cast(), len3, len3); - - FunctionInvocationResult { - id: OutputBorrow::lift(l0 as u32 as usize), - value: _rt::string_lift(bytes3), - } - }; - result4.push(e4); - } - _rt::cabi_dealloc(base4, len4 * 12, 4); - let result5 = T::finish(result4); - let ptr6 = _RET_AREA.0.as_mut_ptr().cast::(); - let vec10 = result5; - let len10 = vec10.len(); - let layout10 = - _rt::alloc::Layout::from_size_align_unchecked(vec10.len() * 20, 4); - let result10 = if layout10.size() != 0 { - let ptr = _rt::alloc::alloc(layout10).cast::(); - if ptr.is_null() { - _rt::alloc::handle_alloc_error(layout10); - } - ptr - } else { - { - ::core::ptr::null_mut() - } - }; - for (i, e) in vec10.into_iter().enumerate() { - let base = result10.add(i * 20); - { - let FunctionInvocationRequest { - id: id7, - function_id: function_id7, - value: value7, - } = e; - *base.add(0).cast::() = (id7).take_handle() as i32; - let vec8 = (function_id7.into_bytes()).into_boxed_slice(); - let ptr8 = vec8.as_ptr().cast::(); - let len8 = vec8.len(); - ::core::mem::forget(vec8); - *base.add(8).cast::() = len8; - *base.add(4).cast::<*mut u8>() = ptr8.cast_mut(); - let vec9 = (value7.into_bytes()).into_boxed_slice(); - let ptr9 = vec9.as_ptr().cast::(); - let len9 = vec9.len(); - ::core::mem::forget(vec9); - *base.add(16).cast::() = len9; - *base.add(12).cast::<*mut u8>() = ptr9.cast_mut(); - } - } - *ptr6.add(4).cast::() = len10; - *ptr6.add(0).cast::<*mut u8>() = result10; - ptr6 - } - #[doc(hidden)] - #[allow(non_snake_case)] - pub unsafe fn __post_return_finish(arg0: *mut u8) { - let l4 = *arg0.add(0).cast::<*mut u8>(); - let l5 = *arg0.add(4).cast::(); - let base6 = l4; - let len6 = l5; - for i in 0..len6 { - let base = base6.add(i * 20); - { - let l0 = *base.add(4).cast::<*mut u8>(); - let l1 = *base.add(8).cast::(); - _rt::cabi_dealloc(l0, l1, 1); - let l2 = *base.add(12).cast::<*mut u8>(); - let l3 = *base.add(16).cast::(); - _rt::cabi_dealloc(l2, l3, 1); - } - } - _rt::cabi_dealloc(base6, len6 * 20, 4); - } - pub trait Guest { - fn add_export(name: _rt::String, value: OutputBorrow<'_>); - fn finish( - functions: _rt::Vec>, - ) -> _rt::Vec; - } - #[doc(hidden)] - - macro_rules! __export_component_pulumi_wasm_stack_interface_0_1_0_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "component:pulumi-wasm/stack-interface@0.1.0#add-export"] - unsafe extern "C" fn export_add_export(arg0: *mut u8,arg1: usize,arg2: i32,) { - $($path_to_types)*::_export_add_export_cabi::<$ty>(arg0, arg1, arg2) - } - #[export_name = "component:pulumi-wasm/stack-interface@0.1.0#finish"] - unsafe extern "C" fn export_finish(arg0: *mut u8,arg1: usize,) -> *mut u8 { - $($path_to_types)*::_export_finish_cabi::<$ty>(arg0, arg1) - } - #[export_name = "cabi_post_component:pulumi-wasm/stack-interface@0.1.0#finish"] - unsafe extern "C" fn _post_return_finish(arg0: *mut u8,) { - $($path_to_types)*::__post_return_finish::<$ty>(arg0) - } - };); -} - #[doc(hidden)] - pub(crate) use __export_component_pulumi_wasm_stack_interface_0_1_0_cabi; - #[repr(align(4))] - struct _RetArea([::core::mem::MaybeUninit; 8]); - static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 8]); - } - } - } -} -mod _rt { - pub use alloc_crate::string::String; - pub use alloc_crate::vec::Vec; - - pub fn as_i32(t: T) -> i32 { - t.as_i32() - } - - pub trait AsI32 { - fn as_i32(self) -> i32; - } - - impl<'a, T: Copy + AsI32> AsI32 for &'a T { - fn as_i32(self) -> i32 { - (*self).as_i32() - } - } - - impl AsI32 for i32 { - #[inline] - fn as_i32(self) -> i32 { - self as i32 - } - } - - impl AsI32 for u32 { - #[inline] - fn as_i32(self) -> i32 { - self as i32 - } - } - - impl AsI32 for i16 { - #[inline] - fn as_i32(self) -> i32 { - self as i32 - } - } - - impl AsI32 for u16 { - #[inline] - fn as_i32(self) -> i32 { - self as i32 - } - } - - impl AsI32 for i8 { - #[inline] - fn as_i32(self) -> i32 { - self as i32 - } - } - - impl AsI32 for u8 { - #[inline] - fn as_i32(self) -> i32 { - self as i32 - } - } - - impl AsI32 for char { - #[inline] - fn as_i32(self) -> i32 { - self as i32 - } - } - - impl AsI32 for usize { - #[inline] - fn as_i32(self) -> i32 { - self as i32 - } - } - pub use alloc_crate::alloc; - pub unsafe fn bool_lift(val: u8) -> bool { - if cfg!(debug_assertions) { - match val { - 0 => false, - 1 => true, - _ => panic!("invalid bool discriminant"), - } - } else { - val != 0 - } - } - pub unsafe fn string_lift(bytes: Vec) -> String { - if cfg!(debug_assertions) { - String::from_utf8(bytes).unwrap() - } else { - String::from_utf8_unchecked(bytes) - } - } - pub unsafe fn cabi_dealloc(ptr: *mut u8, size: usize, align: usize) { - if size == 0 { - return; - } - let layout = alloc::Layout::from_size_align_unchecked(size, align); - alloc::dealloc(ptr as *mut u8, layout); - } - - use core::fmt; - use core::marker; - use core::sync::atomic::{AtomicU32, Ordering::Relaxed}; - - /// A type which represents a component model resource, either imported or - /// exported into this component. - /// - /// This is a low-level wrapper which handles the lifetime of the resource - /// (namely this has a destructor). The `T` provided defines the component model - /// intrinsics that this wrapper uses. - /// - /// One of the chief purposes of this type is to provide `Deref` implementations - /// to access the underlying data when it is owned. - /// - /// This type is primarily used in generated code for exported and imported - /// resources. - #[repr(transparent)] - pub struct Resource { - // NB: This would ideally be `u32` but it is not. The fact that this has - // interior mutability is not exposed in the API of this type except for the - // `take_handle` method which is supposed to in theory be private. - // - // This represents, almost all the time, a valid handle value. When it's - // invalid it's stored as `u32::MAX`. - handle: AtomicU32, - _marker: marker::PhantomData, - } - - /// A trait which all wasm resources implement, namely providing the ability to - /// 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); - } - - impl Resource { - #[doc(hidden)] - pub unsafe fn from_handle(handle: u32) -> Self { - debug_assert!(handle != u32::MAX); - Self { - handle: AtomicU32::new(handle), - _marker: marker::PhantomData, - } - } - - /// Takes ownership of the handle owned by `resource`. - /// - /// Note that this ideally would be `into_handle` taking `Resource` by - /// ownership. The code generator does not enable that in all situations, - /// unfortunately, so this is provided instead. - /// - /// Also note that `take_handle` is in theory only ever called on values - /// owned by a generated function. For example a generated function might - /// take `Resource` as an argument but then call `take_handle` on a - /// reference to that argument. In that sense the dynamic nature of - /// `take_handle` should only be exposed internally to generated code, not - /// to user code. - #[doc(hidden)] - pub fn take_handle(resource: &Resource) -> u32 { - resource.handle.swap(u32::MAX, Relaxed) - } - - #[doc(hidden)] - pub fn handle(resource: &Resource) -> u32 { - resource.handle.load(Relaxed) - } - } - - impl fmt::Debug for Resource { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource") - .field("handle", &self.handle) - .finish() - } - } - - impl Drop for Resource { - fn drop(&mut self) { - unsafe { - match self.handle.load(Relaxed) { - // If this handle was "taken" then don't do anything in the - // destructor. - u32::MAX => {} - - // ... but otherwise do actually destroy it with the imported - // component model intrinsic as defined through `T`. - other => T::drop(other), - } - } - } - } - pub use alloc_crate::boxed::Box; - - #[cfg(target_arch = "wasm32")] - pub fn run_ctors_once() { - wit_bindgen_rt::run_ctors_once(); - } - extern crate alloc as alloc_crate; -} - -/// Generates `#[no_mangle]` functions to export the specified type as the -/// root implementation of all generated traits. -/// -/// For more information see the documentation of `wit_bindgen::generate!`. -/// -/// ```rust -/// # macro_rules! export{ ($($t:tt)*) => (); } -/// # trait Guest {} -/// struct MyType; -/// -/// impl Guest for MyType { -/// // ... -/// } -/// -/// export!(MyType); -/// ``` -#[allow(unused_macros)] -#[doc(hidden)] - -macro_rules! __export_pulumi_wasm_impl { - ($ty:ident) => (self::export!($ty with_types_in self);); - ($ty:ident with_types_in $($path_to_types_root:tt)*) => ( - $($path_to_types_root)*::exports::component::pulumi_wasm::output_interface::__export_component_pulumi_wasm_output_interface_0_1_0_cabi!($ty with_types_in $($path_to_types_root)*::exports::component::pulumi_wasm::output_interface); - $($path_to_types_root)*::exports::component::pulumi_wasm::register_interface::__export_component_pulumi_wasm_register_interface_0_1_0_cabi!($ty with_types_in $($path_to_types_root)*::exports::component::pulumi_wasm::register_interface); - $($path_to_types_root)*::exports::component::pulumi_wasm::stack_interface::__export_component_pulumi_wasm_stack_interface_0_1_0_cabi!($ty with_types_in $($path_to_types_root)*::exports::component::pulumi_wasm::stack_interface); - ) -} -#[doc(inline)] -pub(crate) use __export_pulumi_wasm_impl as export; - -#[cfg(target_arch = "wasm32")] -#[link_section = "component-type:wit-bindgen:0.25.0:pulumi-wasm:encoded world"] -#[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 1474] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xc0\x0a\x01A\x02\x01\ -A\x0b\x01B\x0a\x01m\x05\x05TRACE\x05DEBUG\x04INFO\x04WARN\x05ERROR\x04\0\x05leve\ -l\x03\0\0\x01ks\x01ky\x01o\x02ss\x01p\x04\x01r\x07\x05level\x01\x06targets\x04ar\ -gss\x0bmodule-path\x02\x04file\x02\x04line\x03\x0akey-values\x05\x04\0\x07conten\ -t\x03\0\x06\x01@\x01\x07content\x07\x01\0\x04\0\x03log\x01\x08\x03\x01\x1fcompon\ -ent:pulumi-wasm/log@0.1.0\x05\0\x01B\x10\x01p}\x01r\x02\x09output-ids\x04body\0\x04\ -\0\x19register-resource-request\x03\0\x01\x01r\x02\x09output-ids\x04body\0\x04\0\ -\x13registered-resource\x03\0\x03\x01@\0\0\x7f\x04\0\x0dis-in-preview\x01\x05\x01\ -@\0\0s\x04\0\x11get-root-resource\x01\x06\x01@\x01\x07request\0\0\0\x04\0\x19reg\ -ister-resource-outputs\x01\x07\x01@\x01\x07request\x02\x01\0\x04\0\x11register-r\ -esource\x01\x08\x01p\x04\x01@\0\0\x09\x04\0\x1dwait-for-registered-resources\x01\ -\x0a\x03\x01*component:pulumi-wasm/external-world@0.1.0\x05\x01\x01B\x09\x04\0\x06\ -output\x03\x01\x01i\0\x01@\x01\x05values\0\x01\x04\0\x13[constructor]output\x01\x02\ -\x01h\0\x01@\x02\x04self\x03\x0dfunction-names\0\x01\x04\0\x12[method]output.map\ -\x01\x04\x01@\x01\x04self\x03\0\x01\x04\0\x18[method]output.duplicate\x01\x05\x04\ -\x01,component:pulumi-wasm/output-interface@0.1.0\x05\x02\x02\x03\0\x02\x06outpu\ -t\x01B\x13\x02\x03\x02\x01\x03\x04\0\x06output\x03\0\0\x01h\x01\x01r\x02\x04name\ -s\x05value\x02\x04\0\x0cobject-field\x03\0\x03\x01r\x01\x04names\x04\0\x0cresult\ --field\x03\0\x05\x01i\x01\x01r\x02\x04names\x06output\x07\x04\0\x1eregister-reso\ -urce-result-field\x03\0\x08\x01p\x04\x01p\x06\x01r\x04\x04types\x04names\x06obje\ -ct\x0a\x07results\x0b\x04\0\x19register-resource-request\x03\0\x0c\x01p\x09\x01r\ -\x01\x06fields\x0e\x04\0\x18register-resource-result\x03\0\x0f\x01@\x01\x07reque\ -st\x0d\0\x10\x04\0\x08register\x01\x11\x04\x01.component:pulumi-wasm/register-in\ -terface@0.1.0\x05\x04\x01B\x0e\x02\x03\x02\x01\x03\x04\0\x06output\x03\0\0\x01i\x01\ -\x01r\x03\x02id\x02\x0bfunction-ids\x05values\x04\0\x1bfunction-invocation-reque\ -st\x03\0\x03\x01h\x01\x01r\x02\x02id\x05\x05values\x04\0\x1afunction-invocation-\ -result\x03\0\x06\x01@\x02\x04names\x05value\x05\x01\0\x04\0\x0aadd-export\x01\x08\ -\x01p\x07\x01p\x04\x01@\x01\x09functions\x09\0\x0a\x04\0\x06finish\x01\x0b\x04\x01\ -+component:pulumi-wasm/stack-interface@0.1.0\x05\x05\x04\x01'component:pulumi-wa\ -sm/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.208.1\x10wit-bindgen-rust\x060.25.0"; - -#[inline(never)] -#[doc(hidden)] -#[cfg(target_arch = "wasm32")] -pub fn __link_custom_section_describing_imports() { - wit_bindgen_rt::maybe_link_cabi_realloc(); -}