forked from bytecodealliance/wit-bindgen
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Merge with upstream #6
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mainly a few internal changes of `Float32` naming to `F32` for example. Not all guest generators are updated to remove the "float" terminology entirely yet.
[automatically-tag-and-release-this-commit] Co-authored-by: Auto Release Process <auto-release-process@users.noreply.github.com>
…ance#911) * add testcase for when flags have dashes Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * fix(tiny-go): fix generated code in type_flags function Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> --------- Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
* feat(c#): Multi-return support Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * wip * simple lists codegen passing * fix warning * multi return passing * passes ret-areas * passes simple-functions and zero-size-tuple * fixes regression with tcp-interop * integers passing * passes keywords * remove old code * Merge branch 'main' into wip Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * use new tuple work Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * fix up codegen tests Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * fmt and remove debug line Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * Use internal for imports function Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * Fix up test implemetation (not complete yet) Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * handle empyt array Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * Copy data from parameter properly Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * List Exports now work Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * All export tests work Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * Fix up strings with changes to lists Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * Start on list imports Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * Basic list imports work Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * List<string> works Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * more imports work Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * list results work Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * All the tests pass 🚀 Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * Fix up return area code-gen Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * fix up records test Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * Simplify the Return area code Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * fix return area imports Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * clean up allocs Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * Now passes variants and result tests. Still an issue with return pointer alignment and missing cleanup function. * added todo * Debugging issues with variant lower Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * only write the affected bytes and do not extra bytes write to the following memory addresses * Fixed bug wit float conversion and return area alignment * removed trailing space * fixees incorrect type name for results and variants * Converted option to generic * Changes tests to use option generic * Use stack based return area for imports but don't set the generic return area size/alignment Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * uncomment debug statement Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * Add in the new bitcases Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * Remove extra copy Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * Update crates/csharp/src/lib.rs Co-authored-by: yowl <scott.waye@hubse.com> * Update crates/csharp/src/lib.rs Co-authored-by: yowl <scott.waye@hubse.com> * rename and fix ca2018 Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * Update return pointer to match c version on imports Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * Use local return varaible Signed-off-by: James Sturtevant <jsturtevant@gmail.com> * Fix types Signed-off-by: James Sturtevant <jsturtevant@gmail.com> --------- Signed-off-by: James Sturtevant <jsturtevant@gmail.com> Co-authored-by: James Sturtevant <jsturtevant@gmail.com> Co-authored-by: Timmy Silesmo <timmy@raybrowser.com> Co-authored-by: yowl <scott.waye@hubse.com>
…nce#913) * feat(rust): allow generate unused records and variants * fix: empty record * rename: allow_unused -> generate_unused_types * test(rust): make sure unused types are exported
…alliance#915) this commit adds an extra flag on the wit-bindgen tiny-go to be able to rename the package name of the generated Go source code. it also changes the file names from kebab names to snake names which follow the Go file name conventions. Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
…odealliance#916) * Change float32/float64 to f32/f64 in the C bindings generator. Change float32/float64 to f32/f64 in the C bindings generator, in the `Instruction` enum, and in the tests. * Update test names in Go. * Update more tests.
…unction exists that uses that record (bytecodealliance#912) * add world-has-go-keyword testcase Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * add world-has-go-keyword testcase Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * fix(tinygo): fix world-has-go-keyword testcase Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * add enum-has-go-keyword testcase Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * add interface-has-go-keyword testcase Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * add interface-has-go-keyword testcase Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * add record-has-go-keyword-and-used-in-fn testcase Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * fix(tinygo): fix record-has-go-keyword-and-used-in-fn testcase Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * update list of unsupported testcases for csharp Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> * feat(go): add understore as prefix to keyword in go Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com> --------- Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com> Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com> Co-authored-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.