From a54cd51467c8d7dd1181309d4f7cb47a60114907 Mon Sep 17 00:00:00 2001 From: Chris Dickinson Date: Tue, 10 Oct 2023 13:24:12 -0700 Subject: [PATCH] =?UTF-8?q?fix(corpus):=20rename=2000-component-instr-{rea?= =?UTF-8?q?ctor=20=E2=86=92=20command}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Cargo.lock | 2 +- .../Cargo.toml | 6 +++--- .../src/main.rs | 0 corpus/00-component-instr-command/wit/example.wit | 6 ++++++ corpus/00-component-instr-reactor/wit/example.wit | 6 ------ justfile | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) rename corpus/{00-component-instr-reactor => 00-component-instr-command}/Cargo.lock (99%) rename corpus/{00-component-instr-reactor => 00-component-instr-command}/Cargo.toml (81%) rename corpus/{00-component-instr-reactor => 00-component-instr-command}/src/main.rs (100%) create mode 100644 corpus/00-component-instr-command/wit/example.wit delete mode 100644 corpus/00-component-instr-reactor/wit/example.wit 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