Skip to content

Commit

Permalink
fix: new versions of WIT require semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdickinson committed Jan 24, 2024
1 parent 0b43202 commit 0652bfe
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions corpus/00-component-instr-command/wit/component.wit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package example:component-instr-command
package example:component-instr-command;

world component-instr-command {
import dylibso:observe/api
import dylibso:observe/api;
}
6 changes: 3 additions & 3 deletions corpus/01-component-instr-component/wit/world.wit
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package component:component-instr-component
package component:component-instr-component;

/// An example world for the component to target.
world example {
import dylibso:observe/api
export hello-world: func() -> string
import dylibso:observe/api;
export hello-world: func() -> string;
}
18 changes: 9 additions & 9 deletions wit/observe.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dylibso:observe
package dylibso:observe;

interface api {
enum log-level {
Expand All @@ -13,15 +13,15 @@ interface api {
statsd,
}

metric: func(format: metric-format, name: list<u8>)
log: func(level: log-level, msg: list<u8>)
span-enter: func(name: string)
span-tags: func(tags: string)
span-exit: func()
metric: func(format: metric-format, name: list<u8>);
log: func(level: log-level, msg: list<u8>);
span-enter: func(name: string);
span-tags: func(tags: string);
span-exit: func();
}

interface instrument {
memory-grow: func(amount-in-pages: u32)
enter: func(func-id: u32)
exit: func(func-id: u32)
memory-grow: func(amount-in-pages: u32);
enter: func(func-id: u32);
exit: func(func-id: u32);
}

0 comments on commit 0652bfe

Please sign in to comment.