Skip to content

Commit bfafd0c

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 bfafd0c

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
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/..."

0 commit comments

Comments
 (0)