diff --git a/corpus/00-component-instr-reactor/Cargo.lock b/corpus/00-component-instr-command/Cargo.lock similarity index 99% rename from corpus/00-component-instr-reactor/Cargo.lock rename to corpus/00-component-instr-command/Cargo.lock index cd17c93..df13d9b 100644 --- a/corpus/00-component-instr-reactor/Cargo.lock +++ b/corpus/00-component-instr-command/Cargo.lock @@ -45,7 +45,7 @@ dependencies = [ ] [[package]] -name = "component-instr-reactor" +name = "component-instr-command" version = "0.1.0" dependencies = [ "cargo-component-bindings", diff --git a/corpus/00-component-instr-reactor/Cargo.toml b/corpus/00-component-instr-command/Cargo.toml similarity index 81% rename from corpus/00-component-instr-reactor/Cargo.toml rename to corpus/00-component-instr-command/Cargo.toml index aa70fb2..2247628 100644 --- a/corpus/00-component-instr-reactor/Cargo.toml +++ b/corpus/00-component-instr-command/Cargo.toml @@ -1,14 +1,14 @@ [package] -name = "component-instr-reactor" +name = "component-instr-command" version = "0.1.0" edition = "2021" [package.metadata.component] -package = "example:component-instr-reactor" +package = "example:component-instr-command" [package.metadata.component.target] path = "wit" -world = "component-instr-reactor" +world = "component-instr-command" [package.metadata.component.target.dependencies] "dylibso:observe" = { path = "../../wit/observe.wasm" } diff --git a/corpus/00-component-instr-reactor/src/main.rs b/corpus/00-component-instr-command/src/main.rs similarity index 100% rename from corpus/00-component-instr-reactor/src/main.rs rename to corpus/00-component-instr-command/src/main.rs diff --git a/corpus/00-component-instr-command/wit/example.wit b/corpus/00-component-instr-command/wit/example.wit new file mode 100644 index 0000000..47d0299 --- /dev/null +++ b/corpus/00-component-instr-command/wit/example.wit @@ -0,0 +1,6 @@ +package example:component-instr-command + +world component-instr-command { + import dylibso:observe/api + export hello-world: func() -> u32 +} diff --git a/corpus/00-component-instr-reactor/wit/example.wit b/corpus/00-component-instr-reactor/wit/example.wit deleted file mode 100644 index 7ac61ab..0000000 --- a/corpus/00-component-instr-reactor/wit/example.wit +++ /dev/null @@ -1,6 +0,0 @@ -package example:component-instr-reactor - -world component-instr-reactor { - import dylibso:observe/api - export hello-world: func() -> u32 -} diff --git a/justfile b/justfile index 6719279..a996709 100644 --- a/justfile +++ b/justfile @@ -7,8 +7,8 @@ build_wit: component_demo: #!/bin/bash set -eou pipefail - (cd corpus/00-component-instr-reactor; cargo component build) - (cd rust/; cargo run -F component-model --example otel-stdout-components ../corpus/00-component-instr-reactor/target/wasm32-wasi/debug/component-instr-reactor.wasm) + (cd corpus/00-component-instr-command; cargo component build) + (cd rust/; cargo run -F component-model --example otel-stdout-components ../corpus/00-component-instr-command/target/wasm32-wasi/debug/component-instr-command.wasm) local_instr instr_path="../wasm-instr/wasm-instr": for i in test/*.c.wasm; do o=${i%.wasm}; {{ instr_path }} $i > $o.instr.wasm; done