diff --git a/crates/extension_api/Cargo.toml b/crates/extension_api/Cargo.toml index 0b8bcd6007d9999a05a65b8fddb6a37fccd9d205..001df34e7ab23bc2711c7007f29f43d2b92970c0 100644 --- a/crates/extension_api/Cargo.toml +++ b/crates/extension_api/Cargo.toml @@ -6,8 +6,7 @@ repository = "https://github.com/zed-industries/zed" documentation = "https://docs.rs/zed_extension_api" keywords = ["zed", "extension"] edition.workspace = true -# Change back to `true` when we're ready to publish v0.6.0. -publish = false +publish = true license = "Apache-2.0" [lints] diff --git a/crates/extension_api/README.md b/crates/extension_api/README.md index c2a62a4671cddb070f6e670623657c24ef69ad32..89631269e73215ec9bc29fe9325be23e9ff0bab4 100644 --- a/crates/extension_api/README.md +++ b/crates/extension_api/README.md @@ -65,6 +65,7 @@ Here is the compatibility of the `zed_extension_api` with versions of Zed: | Zed version | `zed_extension_api` version | | ----------- | --------------------------- | +| `0.192.x` | `0.0.1` - `0.6.0` | | `0.186.x` | `0.0.1` - `0.5.0` | | `0.184.x` | `0.0.1` - `0.4.0` | | `0.178.x` | `0.0.1` - `0.3.0` | diff --git a/crates/extension_host/src/wasm_host/wit.rs b/crates/extension_host/src/wasm_host/wit.rs index a9962199c4183b3018d38f63e9b9e201609e4e9e..b2b7726a1566dd202f25f52c3ceb8023ff216371 100644 --- a/crates/extension_host/src/wasm_host/wit.rs +++ b/crates/extension_host/src/wasm_host/wit.rs @@ -69,7 +69,7 @@ pub fn wasm_api_version_range(release_channel: ReleaseChannel) -> RangeInclusive let max_version = match release_channel { ReleaseChannel::Dev | ReleaseChannel::Nightly => latest::MAX_VERSION, - ReleaseChannel::Stable | ReleaseChannel::Preview => since_v0_5_0::MAX_VERSION, + ReleaseChannel::Stable | ReleaseChannel::Preview => latest::MAX_VERSION, }; since_v0_0_1::MIN_VERSION..=max_version @@ -121,8 +121,6 @@ impl Extension { let _ = release_channel; if version >= latest::MIN_VERSION { - authorize_access_to_unreleased_wasm_api_version(release_channel)?; - let extension = latest::Extension::instantiate_async(store, component, latest::linker(executor)) .await diff --git a/crates/extension_host/src/wasm_host/wit/since_v0_5_0.rs b/crates/extension_host/src/wasm_host/wit/since_v0_5_0.rs index f2cb59e78914cfbeb7bdecfbcf32b0a9f553ec39..bb73d77f7f0470a0b700e87931be9cac2bb51a86 100644 --- a/crates/extension_host/src/wasm_host/wit/since_v0_5_0.rs +++ b/crates/extension_host/src/wasm_host/wit/since_v0_5_0.rs @@ -9,7 +9,6 @@ use wasmtime::component::{Linker, Resource}; use super::latest; pub const MIN_VERSION: SemanticVersion = SemanticVersion::new(0, 5, 0); -pub const MAX_VERSION: SemanticVersion = SemanticVersion::new(0, 5, 0); wasmtime::component::bindgen!({ async: true,