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

refactor!: Use extism:host/env namespace for extism functions and extism:host/user for user-defined host functions #511

Merged
merged 19 commits into from
Oct 30, 2023

Conversation

zshipko
Copy link
Contributor

@zshipko zshipko commented Oct 13, 2023

See #504

Removes CI for the in-repo SDKs, we can remove the actual code closer to the 1.0 release.

zshipko added a commit that referenced this pull request Oct 13, 2023
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511

Co-authored-by: zshipko <zshipko@users.noreply.github.com>
@zshipko zshipko mentioned this pull request Oct 10, 2023
30 tasks
@zshipko
Copy link
Contributor Author

zshipko commented Oct 13, 2023

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.

zshipko added a commit that referenced this pull request Oct 17, 2023
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511

Co-authored-by: zshipko <zshipko@users.noreply.github.com>
zshipko added a commit that referenced this pull request Oct 17, 2023
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511

Co-authored-by: zshipko <zshipko@users.noreply.github.com>
@bhelx bhelx mentioned this pull request Oct 18, 2023
10 tasks
zshipko added a commit that referenced this pull request Oct 18, 2023
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511

Co-authored-by: zshipko <zshipko@users.noreply.github.com>
zshipko added a commit that referenced this pull request Oct 18, 2023
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511

Co-authored-by: zshipko <zshipko@users.noreply.github.com>
@@ -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";
Copy link
Contributor

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.)

Copy link
Contributor Author

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

@zshipko zshipko changed the title refactor!: Use extism:env namespace for extism functions refactor!: Use extism:host/env namespace for extism functions and extism:host/user for user-defined host functions Oct 19, 2023
zshipko added a commit that referenced this pull request Oct 20, 2023
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511

Co-authored-by: zshipko <zshipko@users.noreply.github.com>
zshipko added a commit that referenced this pull request Oct 24, 2023
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511

Co-authored-by: zshipko <zshipko@users.noreply.github.com>
@zshipko zshipko force-pushed the extism-env branch 2 times, most recently from 55a052a to ed70d53 Compare October 25, 2023 00:53
zshipko added a commit that referenced this pull request Oct 25, 2023
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511

Co-authored-by: zshipko <zshipko@users.noreply.github.com>
@zshipko zshipko marked this pull request as ready for review October 25, 2023 01:04
zshipko added a commit that referenced this pull request Oct 25, 2023
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511

Co-authored-by: zshipko <zshipko@users.noreply.github.com>
chrisdickinson
chrisdickinson previously approved these changes Oct 25, 2023
Copy link
Contributor

@chrisdickinson chrisdickinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

zshipko added a commit that referenced this pull request Oct 26, 2023
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511

Co-authored-by: zshipko <zshipko@users.noreply.github.com>
zshipko added a commit that referenced this pull request Oct 26, 2023
Automated PR to update `runtime/src/extism-runtime.wasm` in PR #511

Co-authored-by: zshipko <zshipko@users.noreply.github.com>
@zshipko zshipko merged commit f3447a5 into main Oct 30, 2023
7 checks passed
@zshipko zshipko deleted the extism-env branch October 30, 2023 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants