Skip to content

Commit 5582834

Browse files
committed
rename example and test crates to avoid cargo warnings
This should address "skipping duplicate package" warnings, e.g. when using the Rust Spin SDK. Signed-off-by: Joel Dice <[email protected]>
1 parent f94e397 commit 5582834

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

examples/http-rust/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "spinhelloworld"
2+
name = "http-rust"
33
version = "0.1.0"
44
edition = "2021"
55

@@ -18,4 +18,4 @@ spin-sdk = { path = "../../sdk/rust" }
1818
# Crate that generates Rust Wasm bindings from a WebAssembly interface.
1919
wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" }
2020

21-
[workspace]
21+
[workspace]

examples/http-rust/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version = "1.0.0"
77

88
[[component]]
99
id = "hello"
10-
source = "target/wasm32-wasi/release/spinhelloworld.wasm"
10+
source = "target/wasm32-wasi/release/http_rust.wasm"
1111
description = "A simple component that returns hello."
1212
[component.trigger]
1313
route = "/hello"

tests/http/simple-spin-rust/Cargo.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/http/simple-spin-rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "spinhelloworld"
2+
name = "simple-spin-rust"
33
version = "0.1.0"
44
edition = "2021"
55

tests/http/simple-spin-rust/spin.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ object = { default = "teapot" }
1010

1111
[[component]]
1212
id = "hello"
13-
source = "target/wasm32-wasi/release/spinhelloworld.wasm"
13+
source = "target/wasm32-wasi/release/simple_spin_rust.wasm"
1414
files = [ { source = "assets", destination = "/" } ]
1515
[component.trigger]
1616
route = "/hello/..."

tests/integration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ mod integration_tests {
244244
.join("target")
245245
.join("wasm32-wasi")
246246
.join("release")
247-
.join("spinhelloworld.wasm");
247+
.join("simple_spin_rust.wasm");
248248
let parcel_sha = file_digest_string(&wasm_path).expect("failed to get sha for parcel");
249249

250250
// start the Bindle registry.

0 commit comments

Comments
 (0)