Skip to content

Commit

Permalink
fix(corpus): rename 00-component-instr-{reactor → command}
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdickinson committed Oct 10, 2023
1 parent 77f2ed2 commit a54cd51
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.

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

Original file line number Diff line number Diff line change
@@ -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" }
Expand Down
6 changes: 6 additions & 0 deletions corpus/00-component-instr-command/wit/example.wit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package example:component-instr-command

world component-instr-command {
import dylibso:observe/api
export hello-world: func() -> u32
}
6 changes: 0 additions & 6 deletions corpus/00-component-instr-reactor/wit/example.wit

This file was deleted.

4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a54cd51

Please sign in to comment.