-
Notifications
You must be signed in to change notification settings - Fork 11
feat: add official bun binding #9
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 12 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
092e2e9
feat: remove test/bun
twoeths 39e84cd
feat: add bun binding at cwd
twoeths 91b6c77
fix: skip Bun in CI
twoeths 4388a04
fix: init binding in test files
twoeths 57e2d8a
fix: add optimize config
twoeths 5107ffb
fix: bun folder path
twoeths 1f25498
fix: bun-ffi-z dynamic-lib-name
twoeths a0fe350
fix: lazy load binding in shuffle.ts
twoeths 57b3578
feat: use bun-ffi-z github url
twoeths b9f68a8
fix: lint package.json
twoeths 2d00352
fix: add benchmark resource
twoeths 9ce52b7
fix: unset binding in closeBinding()
twoeths 98326e3
feat: upload artifacts in CI
twoeths c23db2f
feat: add test-linux-x64-gnu-downloaded-artifacts on CI
twoeths e864fb6
fix: only run benchmark on linux x86_64
twoeths d6f431f
feat: add test-linux-arm64-gnu-downloaded-artifacts on CI
twoeths 203cc6e
fix: remove blank line in test.yml
twoeths 60b9185
fix: name of download artifact for linux arm64 gnu
twoeths 66db603
Revert "fix: only run benchmark on linux x86_64"
twoeths 69bc587
fix: move benchmark to a separate job
twoeths 8b62d06
refactor: specify zig target tripple
twoeths 4fdefd3
fix: only run bun unit tests on target platforms
twoeths e3c06cf
feat: test bun-linux-x64-musl on CI
twoeths 88f95d0
fix: only test pubkeyIndexMap on x86_64-linux-musl
twoeths a19e76b
fix: run shuffle.test.ts for linux-x64-musl
twoeths 3dbf4b8
fix: only run pubkeyIndexMap.test.ts for linux-x64-musl
twoeths 688a1ad
feat: add bun-linux-arm64-musl test
twoeths 2b85b4c
chore: reorder matrix.settings
twoeths 0090229
feat: add macos tests for x64 and arm64
twoeths e21fc0f
feat: build windows-latest
twoeths 979d75d
fix: skip check binary for windows
twoeths 4376d6f
fix: generalize dynamic lib output file name for windows
twoeths 1b68060
feat: add test for windows-latest platform
twoeths 0408d30
fix: use top level await
twoeths 416ba82
fix: use oven-sh/setup-bun
twoeths 93e6c6d
fix: run bun:lint check once
twoeths 71c27dc
fix: switch to the official bun-ffi-z repo
twoeths e7b7a33
fix: unsupport windows
twoeths 18ea709
fix: simplify binding
twoeths 86ca3e4
fix: remove redundant build cli params
twoeths fe3f0a6
feat: prepublish step in workflow (#11)
twoeths f28257c
feat: add release-please action
twoeths cc279c6
fix: only trigger release-please on a push to main branch
twoeths 9bdc193
fix: add bun/CHANGELOG.md
twoeths fa6da59
fix: set initial version to v0.0.0
twoeths 7a8b7ed
fix: single CI workflow
twoeths d848013
fix: simplify openLibrary bunCwd param
twoeths 880c03c
feat: add publish step
twoeths 9dd10a9
fix: switch to import.meta.dirname
twoeths 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
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # state-transition-utils-bun | ||
| State transition utilities for Bun, which is Bun binding using [state-transition-z](https://github.com/ChainSafe/state-transition-z) | ||
|
|
||
| To consume this libraries, application needs to call these apis: | ||
| - `initBinding()`: at application startup, before calling any apis of this library | ||
| - `closeBinding()`: at application close() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| export * from "./pubkeyIndexMap.js"; | ||
| export * from "./shuffle.js"; | ||
| export * from "./committeeIndices.js"; | ||
| export * from "./binding.js"; |
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.