feat: move and compile tinymist crate for wasm32 target (#2027)
Some checks are pending
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::ci / Duplicate Actions Detection (push) Waiting to run
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Waiting to run
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Waiting to run
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / announce (push) Blocked by required conditions
tinymist::ci / build (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run

This commit is contained in:
Myriad-Dreamin 2025-08-11 13:14:26 +08:00 committed by GitHub
parent 79f68dc94d
commit ce5ab81760
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
56 changed files with 1558 additions and 1122 deletions

View file

@ -672,7 +672,7 @@ impl SharedContext {
}
/// Get the local packages and their descriptions.
#[cfg(not(target_arch = "wasm32"))]
#[cfg(feature = "local-registry")]
pub fn local_packages(&self) -> EcoVec<PackageSpec> {
crate::package::list_package_by_namespace(&self.world.registry, eco_format!("local"))
.into_iter()
@ -681,7 +681,7 @@ impl SharedContext {
}
/// Get the local packages and their descriptions.
#[cfg(target_arch = "wasm32")]
#[cfg(not(feature = "local-registry"))]
pub fn local_packages(&self) -> EcoVec<PackageSpec> {
eco_vec![]
}