Skip to content

Commit

Permalink
Update wit-parser (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffcharles authored Jun 3, 2024
1 parent e126459 commit a72f085
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 7 deletions.
21 changes: 17 additions & 4 deletions Cargo.lock

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

8 changes: 6 additions & 2 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ wasmtime = { workspace = true }
wasmtime-wasi = { workspace = true }
wasi-common = { workspace = true }
walrus = "0.20.3"
swc_core = { version = "0.91.3", features = ["common_sourcemap", "ecma_ast", "ecma_parser"] }
wit-parser = "0.206.0"
swc_core = { version = "0.91.3", features = [
"common_sourcemap",
"ecma_ast",
"ecma_parser",
] }
wit-parser = "0.209.1"
convert_case = "0.6.0"
wasm-opt = "0.116.1"
tempfile = "3.10.1"
Expand Down
4 changes: 3 additions & 1 deletion crates/cli/src/wit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ pub fn parse_exports(wit: impl AsRef<Path>, world: &str) -> Result<Vec<String>>
let mut exported_functions = vec![];
for (_, export) in &world.exports {
match export {
WorldItem::Interface(_) => bail!("Exported interfaces are not supported"),
WorldItem::Interface { .. } => {
bail!("Exported interfaces are not supported")
}
WorldItem::Function(f) => {
if !f.params.is_empty() {
bail!("Exported functions with parameters are not supported")
Expand Down
36 changes: 36 additions & 0 deletions supply-chain/imports.lock
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,12 @@ when = "2024-04-25"
user-id = 73222
user-login = "wasmtime-publish"

[[publisher.wasmparser]]
version = "0.209.1"
when = "2024-05-29"
user-id = 73222
user-login = "wasmtime-publish"

[[publisher.wasmprinter]]
version = "0.201.0"
when = "2024-02-27"
Expand Down Expand Up @@ -1062,6 +1068,12 @@ when = "2024-04-25"
user-id = 73222
user-login = "wasmtime-publish"

[[publisher.wit-parser]]
version = "0.209.1"
when = "2024-05-29"
user-id = 73222
user-login = "wasmtime-publish"

[[publisher.wizer]]
version = "6.0.0"
when = "2024-04-15"
Expand Down Expand Up @@ -1199,6 +1211,18 @@ I am employed by a member of the Bytecode Alliance and plan to continue doing
so and will actively maintain this crate over time.
"""

[[audits.bytecode-alliance.wildcard-audits.wasmparser]]
who = "Alex Crichton <[email protected]>"
criteria = "safe-to-deploy"
user-id = 73222 # wasmtime-publish
start = "2023-01-01"
end = "2025-05-08"
notes = """
The Bytecode Alliance uses the `wasmtime-publish` crates.io account to automate
publication of this crate from CI. This repository requires all PRs are reviewed
by a Bytecode Alliance maintainer and it owned by the Bytecode Alliance itself.
"""

[[audits.bytecode-alliance.wildcard-audits.wasmtime]]
who = "Bobby Holley <[email protected]>"
criteria = "safe-to-deploy"
Expand Down Expand Up @@ -1391,6 +1415,18 @@ start = "2022-11-21"
end = "2024-06-26"
notes = "The Bytecode Alliance is the author of this crate."

[[audits.bytecode-alliance.wildcard-audits.wit-parser]]
who = "Alex Crichton <[email protected]>"
criteria = "safe-to-deploy"
user-id = 73222 # wasmtime-publish
start = "2023-01-01"
end = "2025-05-08"
notes = """
The Bytecode Alliance uses the `wasmtime-publish` crates.io account to automate
publication of this crate from CI. This repository requires all PRs are reviewed
by a Bytecode Alliance maintainer and it owned by the Bytecode Alliance itself.
"""

[[audits.bytecode-alliance.audits.addr2line]]
who = "Alex Crichton <[email protected]>"
criteria = "safe-to-deploy"
Expand Down

0 comments on commit a72f085

Please sign in to comment.