-
Notifications
You must be signed in to change notification settings - Fork 101
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
refactor!: Use extism:host/env
namespace for extism functions and extism:host/user
for user-defined host functions
#511
Conversation
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511 Co-authored-by: zshipko <zshipko@users.noreply.github.com>
Since the SDKs have mostly been moved to new repos, I'm not going to update the failing SDK tests. Instead, maybe this PR should include the changes to remove the old SDKs from this repo, since we will likely merge this closer to the planned 1.0 release date. |
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511 Co-authored-by: zshipko <zshipko@users.noreply.github.com>
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511 Co-authored-by: zshipko <zshipko@users.noreply.github.com>
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511 Co-authored-by: zshipko <zshipko@users.noreply.github.com>
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511 Co-authored-by: zshipko <zshipko@users.noreply.github.com>
runtime/src/plugin.rs
Outdated
@@ -2,6 +2,9 @@ use std::collections::BTreeMap; | |||
|
|||
use crate::*; | |||
|
|||
pub const EXTISM_ENV_MODULE: &str = "extism:env"; | |||
pub const EXTISM_USER_MODULE: &str = "extism:user"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
winces Ack, sorry sorry. I think we might want to add an interface projection here, too: something like extism:core/env
/ extism:core/user
. Mea culpa here – I ran into this with the observe-api component model support. (The /foo
bit maps to an interface in WIT.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this!!! I think I will go with extism:host/env
and extism:host/user
extism:env
namespace for extism functionsextism:host/env
namespace for extism functions and extism:host/user
for user-defined host functions
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511 Co-authored-by: zshipko <zshipko@users.noreply.github.com>
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511 Co-authored-by: zshipko <zshipko@users.noreply.github.com>
55a052a
to
ed70d53
Compare
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511 Co-authored-by: zshipko <zshipko@users.noreply.github.com>
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511 Co-authored-by: zshipko <zshipko@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511 Co-authored-by: zshipko <zshipko@users.noreply.github.com>
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511 Co-authored-by: zshipko <zshipko@users.noreply.github.com>
…namespace changes
…g after namespace changes" This reverts commit 1c4744d.
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511 Co-authored-by: zshipko <zshipko@users.noreply.github.com>
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511 Co-authored-by: zshipko <zshipko@users.noreply.github.com>
See #504
Removes CI for the in-repo SDKs, we can remove the actual code closer to the 1.0 release.