Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(common): Switches default registry to wasi.dev for wasi namespace #92

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions crates/wasm-pkg-common/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ use crate::{label::Label, package::PackageRef, registry::Registry, Error};

mod toml;

const DEFAULT_FALLBACK_NAMESPACE_REGISTRIES: &[(&str, &str)] = &[
// TODO: Switch to wasi.dev once that is ready
("wasi", "bytecodealliance.org"),
("ba", "bytecodealliance.org"),
];
const DEFAULT_FALLBACK_NAMESPACE_REGISTRIES: &[(&str, &str)] =
&[("wasi", "wasi.dev"), ("ba", "bytecodealliance.org")];

/// Wasm Package registry configuration.
///
Expand Down
6 changes: 3 additions & 3 deletions crates/wkg-core/tests/fixtures/cli-example/wit/world.wit
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package test:plugin;

world plugin {
include wasi:cli/imports@0.2.0;
import wasi:http/outgoing-handler@0.2.0;
include wasi:cli/imports@0.2.1;
import wasi:http/outgoing-handler@0.2.1;

export wasi:cli/run@0.2.0;
export wasi:cli/run@0.2.1;
}