Repository navigation
One bindgen: replace bindgen v1 and v2, add classes, generate the Rust side #45104
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
Merged
Merged
Changes from 45 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
5088d17
Replace bindgen v1 and v2 with one generator that also does classes
dylan-conway ea1ad16
Include FunctionPrototype.h in ModuleGraph.cpp and make the forged-er…
dylan-conway dedec64
Rename klass, values, .nullable.loose and the string and buffer types…
dylan-conway b561935
Load schemas with import() so the generator runs under Node, and fix …
dylan-conway bb9d2d8
Fix a use-after-free of substring bytes, read buffers and members lat…
dylan-conway 50fe671
Name both .bind.ts files when two of them generate the same header
dylan-conway 81a7bf3
Test that native node:os functions are not constructors and that Glob…
dylan-conway f555dfb
Stop naming Glob in the .classes.ts skill's example
dylan-conway 937eed1
[autofix.ci] apply automated fixes
autofix-ci[bot] d2849b2
Use a cwd over every platform's path limit in the Glob option-order test
dylan-conway 6c64a49
Generate compiling Rust for nullable byte views, assert the exact err…
dylan-conway acbac08
Build string views in place, make small arrays in one call, encode la…
dylan-conway 5482813
Delete the compile-fail tests for bun_jsc::bindgen
dylan-conway 7eaf467
Share one dictionary member read, let a dictionary ignore non-objects…
dylan-conway db99ca2
Describe allowArray and allowNonObject correctly and refuse allowNonO…
dylan-conway 8bde319
Check the size of returned dictionaries at compile time against JSC's…
dylan-conway 69080b7
Leave bindgen_test.bind.ts out of builds without assertions
dylan-conway 669eb2f
Merge main, keeping Glob's shared pattern buffer and prepared matcher…
dylan-conway 511afb8
Describe every schema in Bindgen.d.ts whatever the profile, and run t…
dylan-conway b3bb7e0
Refuse views of shared memory in b.bufferSource.arrayBuffer and keep …
dylan-conway 83a8361
Merge main
dylan-conway 3ab2c90
Merge branch 'main' into claude/bun-jsc-bindgen-unify-348a32
dylan-conway 5d5406a
Merge main
dylan-conway 511f86b
Choose a union's alternative and an overload by the kind of the value…
dylan-conway 670c522
Hold a union as a struct with a member for each alternative instead o…
dylan-conway 6febce3
Remove the rules that the conservative stack scanner is never the cause
dylan-conway ba8ebab
Restore the conservative stack scanner rules in CLAUDE.md and REVIEW.md
dylan-conway 3137a34
Inline the string test of both UTF-8 conversions, make a union's larg…
dylan-conway 15c2e6b
Inline the fast path of every strict conversion, and give a nested op…
dylan-conway ab05686
Always assign a nullable member that does not convert in place
dylan-conway da328db
Delete what the generic union converter left behind, make the UTF-8 v…
dylan-conway 88fa693
Apply the conventions and simplification reviews to the generator, it…
dylan-conway 05362c9
Make the list of a union's alternatives a complete type
dylan-conway 9819231
Give a view's own bytes to b.bufferSource.arrayBuffer, make the array…
dylan-conway 7affdf9
Stop looking at the number of arguments: one that was not passed is u…
dylan-conway 8b7bab6
Give a dictionary that is only returned a lifetime only when it holds…
dylan-conway b433f83
Merge branch 'main' of github.com:oven-sh/bun into claude/bun-jsc-bin…
dylan-conway 68559e5
Rename what the naming review found false or ambiguous, apply the con…
dylan-conway 1129bcf
Declare the buffer converter's throw scope where it throws
dylan-conway b81d83a
Rename JsValue, JsCall, the error makers, $bindgenFn, internalName an…
dylan-conway 994b62d
Move everything only generated bindings use into Bindgen/ and Bun::Bi…
dylan-conway ae57651
[autofix.ci] apply automated fixes
autofix-ci[bot] 8013de7
Merge branch 'main' of github.com:oven-sh/bun into claude/bun-jsc-bin…
dylan-conway 638d42f
Tie every borrowed argument to its call, purify NaN results, use JSC'…
dylan-conway ef741e4
Match the receiver error's message with a matcher that exists
dylan-conway b952b54
Build a returned dictionary with putDirect instead of a prebuilt Stru…
dylan-conway 9af4c09
Use JSC's, WTF's and the tree's own helpers where generated bindings …
dylan-conway afdb6fa
Refuse a type used from another crate and a field named by a C++ keyw…
dylan-conway 52f5c7a
Validate an int32 in range inline, and make a short array with one call
dylan-conway 24567b6
Refuse an array whose elements hold JS values as a result too, not on…
dylan-conway File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.