Skip to content

Commit

Permalink
Cleanup, update Rust, speed up tests (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejressel authored Apr 4, 2024
1 parent 2ae2d06 commit 3fb9e6a
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 60 deletions.
15 changes: 0 additions & 15 deletions Cargo.lock

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

17 changes: 1 addition & 16 deletions examples/simple/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,10 @@ crate-type = ["cdylib"]

[dependencies]
anyhow.workspace = true
prost.workspace = true
prost-types.workspace = true
uuid.workspace = true
futures.workspace = true
lazy_static.workspace = true
once_cell.workspace = true
bitflags.workspace = true
wit-bindgen-rt.workspace = true
rmp.workspace = true
rmp-serde.workspace = true
rmpv.workspace = true
serde.workspace = true
tonic.workspace = true
serde_json.workspace = true
pulumi_wasm_rust.workspace = true
log.workspace = true
wasm_common.workspace = true
pulumi_wasm_random.workspace = true

[dev-dependencies]
assert_cmd.workspace = true
predicates.workspace = true
serde_json.workspace = true
2 changes: 1 addition & 1 deletion examples/simple/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ build:
cargo run -p cargo-pulumi

run:
just build
cargo run -p pulumi_wasm_runner -- run --wasm ../../target/wasm32-wasi/debug/composed.wasm

[windows]
local-test:
#!pwsh
cargo run -p cargo-pulumi
$env:PULUMI_CONFIG_PASSPHRASE=" "
pulumi destroy -y
pulumi up -y
18 changes: 0 additions & 18 deletions examples/simple/src/bindings.rs

This file was deleted.

11 changes: 3 additions & 8 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ set windows-shell := ["pwsh.exe", "-c"]

@default: build test

build: build-language-plugin regenerate-providers install-requirements build-wasm-components build-libraries fmt
build: build-language-plugin regenerate-providers install-requirements build-wasm-components fmt

build-language-plugin:
cd pulumi-language-wasm && just
Expand All @@ -11,16 +11,11 @@ install-requirements:
rustup component add rustfmt
cargo install cargo-nextest@0.9.68 --locked || cargo-nextest --version
cargo install cargo-component@0.10.1 --locked || cargo-component --version
cargo install wasm-tools@1.201.0 --locked || wasm-tools --version
cargo install wasm-tools@1.202.0 --locked || wasm-tools --version

build-wasm-components:
cargo component build -p pulumi_wasm -p pulumi_wasm_random_provider -p pulumi_wasm_example_simple

build-libraries:
cargo build -p pulumi_wasm_runner \
-p pulumi_wasm_rust \
-p pulumi_wasm_rust_macro \
-p pulumi_wasm_random
cargo run -p cargo-pulumi -- -p pulumi_wasm_example_simple

check:
cargo fmt --all -- --check
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.77.0"
channel = "1.77.1"
targets = ["wasm32-wasi"]
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.77.0"
channel = "1.77.1"
targets = ["wasm32-wasi"]

0 comments on commit 3fb9e6a

Please sign in to comment.