-
Notifications
You must be signed in to change notification settings - Fork 11
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
Prep for TinyGo's v0.28 encoding/json Support #9
Conversation
thanks @syke99! we just updated our CI for this repo to use the latest tinygo, so we'll take a look at this and get back to you asap. |
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 this @syke99, looks great! Just a minor change requested (in addition to merge conflicts)
extism_pdk.go
Outdated
type HTTPRequestMeta struct { | ||
Url string `json:"url"` | ||
Method string `json:"method"` | ||
Headers map[string]string `json:"header"` |
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.
technically we support this json field name in the Rust runtime, but for consistency and long-term support I think we should change the JSON struct tag to headers
here.
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.
whoops, yeah. was a copy paste error lol. one sec
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.
there we go 😋
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!
Great update, thanks @syke99 ! |
This PR removes the fastjson dependency in favor of using the stdlib's encoding/json package as it will be fully supported by TinyGo's v0.28 release