Skip to content

Commit

Permalink
WIP: Support namespaces (#583)
Browse files Browse the repository at this point in the history
Fixes #578
  • Loading branch information
andrzejressel authored Dec 22, 2024
1 parent e45055e commit ef13e21
Show file tree
Hide file tree
Showing 661 changed files with 7,963 additions and 3,754 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ jobs:
pulumi_wasm_generator_lib/tests/output/output-funcs-edgeorder/
pulumi_wasm_generator_lib/tests/output/unions-inline/
pulumi_wasm_generator_lib/tests/output/unions-inside-arrays/
pulumi_wasm_generator_lib/tests/output/plain-object-defaults/
pulumi_wasm_generator_lib/tests/output/plain-object-disable-defaults/
pulumi_wasm_generator_lib/tests/output/nested-module/
pulumi_wasm_generator_lib/tests/output/nested-module-thirdparty/
# DO NOT EDIT - END 1
- name: Regenerate provider list
run: just regenerate-provider-list
Expand Down Expand Up @@ -222,6 +226,10 @@ jobs:
pulumi_wasm_generator_lib/tests/output/output-funcs-edgeorder/
pulumi_wasm_generator_lib/tests/output/unions-inline/
pulumi_wasm_generator_lib/tests/output/unions-inside-arrays/
pulumi_wasm_generator_lib/tests/output/plain-object-defaults/
pulumi_wasm_generator_lib/tests/output/plain-object-disable-defaults/
pulumi_wasm_generator_lib/tests/output/nested-module/
pulumi_wasm_generator_lib/tests/output/nested-module-thirdparty/
# DO NOT EDIT - END 2
- uses: benjlevesque/[email protected]
id: short-sha
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ jobs:
pulumi_wasm_generator_lib/tests/output/output-funcs-edgeorder/
pulumi_wasm_generator_lib/tests/output/unions-inline/
pulumi_wasm_generator_lib/tests/output/unions-inside-arrays/
pulumi_wasm_generator_lib/tests/output/plain-object-defaults/
pulumi_wasm_generator_lib/tests/output/plain-object-disable-defaults/
pulumi_wasm_generator_lib/tests/output/nested-module/
pulumi_wasm_generator_lib/tests/output/nested-module-thirdparty/
# DO NOT EDIT - END 1
- name: Add target
run: rustup target add ${{ matrix.rust-target }}
Expand Down
92 changes: 92 additions & 0 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,5 @@ reqwest = "0.12.5"
wit-component = "0.222.0"
wit-parser = "0.222.0"
bon = "3.0.0"
proc-macro2 = "1.0.92"
proc-macro2 = "1.0.92"
rinja = "0.3.5"
8 changes: 4 additions & 4 deletions examples/docker/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::Error;

use pulumi_wasm_docker::get_remote_image::GetRemoteImageArgs;
use pulumi_wasm_docker::{container, image, ContainerLabel, DockerBuild};
use pulumi_wasm_docker::function::get_remote_image::GetRemoteImageArgs;
use pulumi_wasm_docker::types::{ContainerLabel, DockerBuild};
use pulumi_wasm_docker::{container, image};
use pulumi_wasm_rust::{add_export, pulumi_main};

#[pulumi_main]
Expand Down Expand Up @@ -34,7 +34,7 @@ fn test_main() -> Result<(), Error> {
.build_struct(),
);

let remote_image = pulumi_wasm_docker::get_remote_image::invoke(
let remote_image = pulumi_wasm_docker::function::get_remote_image::invoke(
GetRemoteImageArgs::builder()
.name("public.ecr.aws/ubuntu/ubuntu:latest")
.build_struct(),
Expand Down
24 changes: 22 additions & 2 deletions examples/typesystem/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@
mod tests {
use pulumi_wasm_provider_common::OneOf2;
use pulumi_wasm_rust::Output;
use pulumi_wasm_typesystem::typesystem_server::TypesystemServerArgs;
use pulumi_wasm_typesystem::{
use pulumi_wasm_typesystem::deep::nested::module::some_resource::SomeResourceArgs;
use pulumi_wasm_typesystem::types::{
IntegerEnum, MyEnum, NumberEnum, UnionCase1, UnionCase2, UnionCaseWithConst1,
UnionCaseWithConst2,
};
use pulumi_wasm_typesystem::typesystem_server::TypesystemServerArgs;
use std::panic::catch_unwind;

#[test]
fn test_compilation() {
let _ = catch_unwind(compilation_test);
let _ = catch_unwind(function_compilation_test);
let _ = catch_unwind(resource_compilation_test);
let _ = catch_unwind(types_compilation_test);
}

#[test]
Expand Down Expand Up @@ -180,4 +184,20 @@ mod tests {
// let _ = TypesystemServerArgs::builder()
// .required_string_input(true);
}

fn resource_compilation_test() {
let _ = pulumi_wasm_typesystem::deep::nested::module::some_resource::create(
"test",
SomeResourceArgs::builder().build_struct(),
);
}

fn function_compilation_test() {
let _ = pulumi_wasm_typesystem::function::deep::nested::module::some_function::invoke();
}

fn types_compilation_test() {
let _ =
pulumi_wasm_typesystem::types::deep::nested::module::SomeType::builder().build_struct();
}
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading

0 comments on commit ef13e21

Please sign in to comment.