mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
d755d29577
This PR upgrades the version of `wasmtime` and `wasmtime-wasi` in use to
v21.0.1.
We have to skip v20 because Tree-sitter also skipped it.
Here are the changes that had to be made:
### v19 -> v20
After upgrading the `wasmtime` packages to v20, I also had to run `cargo
update -p mach2` to pull in
[v0.4.2](https://github.com/JohnTitor/mach2/releases/tag/0.4.2) to fix
some compile errors.
There were a few minor API changes in `wasmtime-wasi` from
https://github.com/bytecodealliance/wasmtime/pull/8228 that we needed to
account for.
### v20 -> v21
Since there isn't a Tree-sitter version that depends on `wasmtime@v20`,
we're jumping straight to v21.
The published version of Tree-sitter (v0.22.6) still depends on
`wasmtime@v19`, but there was a commit
(7f4a57817d
)
later that month that upgrades the `wasmtime` dependency to v21.
We're patching Tree-sitter to that commit so we can get the new
`wasmtime` version.
The main change in v21 is that imports generated by `bindgen!` are no
longer automatically trapped
(https://github.com/bytecodealliance/wasmtime/pull/8310), so we need to
add `trappable_imports: true` to our `bindgen!` calls.
Release Notes:
- N/A
69 lines
1.7 KiB
TOML
69 lines
1.7 KiB
TOML
[package]
|
|
name = "extension"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/extension_store.rs"
|
|
doctest = false
|
|
|
|
[features]
|
|
no-webrtc = ["workspace/no-webrtc"]
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
assistant_slash_command.workspace = true
|
|
async-compression.workspace = true
|
|
async-tar.workspace = true
|
|
async-trait.workspace = true
|
|
client.workspace = true
|
|
collections.workspace = true
|
|
fs.workspace = true
|
|
futures.workspace = true
|
|
gpui.workspace = true
|
|
http_client.workspace = true
|
|
indexed_docs.workspace = true
|
|
isahc.workspace = true
|
|
language.workspace = true
|
|
log.workspace = true
|
|
lsp.workspace = true
|
|
node_runtime.workspace = true
|
|
paths.workspace = true
|
|
project.workspace = true
|
|
release_channel.workspace = true
|
|
schemars.workspace = true
|
|
semantic_version.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
settings.workspace = true
|
|
snippet_provider.workspace = true
|
|
theme.workspace = true
|
|
toml.workspace = true
|
|
ui.workspace = true
|
|
url.workspace = true
|
|
util.workspace = true
|
|
wasm-encoder.workspace = true
|
|
wasmtime.workspace = true
|
|
wasmtime-wasi.workspace = true
|
|
wasmparser.workspace = true
|
|
wit-component.workspace = true
|
|
workspace.workspace = true
|
|
task.workspace = true
|
|
serde_json_lenient.workspace = true
|
|
|
|
[dev-dependencies]
|
|
ctor.workspace = true
|
|
env_logger.workspace = true
|
|
parking_lot.workspace = true
|
|
|
|
fs = { workspace = true, features = ["test-support"] }
|
|
gpui = { workspace = true, features = ["test-support"] }
|
|
language = { workspace = true, features = ["test-support"] }
|
|
project = { workspace = true, features = ["test-support"] }
|
|
workspace = { workspace = true, features = ["test-support"] }
|