-
Notifications
You must be signed in to change notification settings - Fork 1
feat(libdatadog): Add library-config WASM module #44
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 all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
bff6728
feat(library-config): Add library config support
BaptisteFoy 0e14199
switch to wasm
BaptisteFoy e5bcdaf
use nodejs-specific wasm
BaptisteFoy d75b341
right dependency version
BaptisteFoy 8c7fbb4
test(ci): Build wasm differently
BaptisteFoy 28d8a03
bump libdatadog to 15.0.0
BaptisteFoy 8a7c0bb
optimize other crates for smaller size
BaptisteFoy 12e926c
remove unexpected changed files
BaptisteFoy acabe52
fix readme
BaptisteFoy e779538
use composite github action
BaptisteFoy a3d4096
no exclude wasm from test.js
BaptisteFoy adec840
no package.json
BaptisteFoy 7a8bb90
remove superfluous optimisations
BaptisteFoy 0ee74a1
yarn commands
BaptisteFoy 606b1fd
Revert "no exclude wasm from test.js"
BaptisteFoy d9ee1fb
fix build
BaptisteFoy 3a7339b
include wasm search in `load`
BaptisteFoy 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| name: 'Build/Test WASM' | ||
| description: 'A simple composite GitHub Action sets-up WASM; then test & build relevant crates' | ||
| inputs: | ||
| cate: | ||
| description: 'The crate name. Must be in ./crates' | ||
| required: true | ||
| runs: | ||
| using: 'composite' | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/download-artifact@v4 | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| - run: yarn install | ||
| shell: bash | ||
| - name: Install wasm-pack | ||
| run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
| shell: bash | ||
| - name: Build WASM | ||
| run: | | ||
| mkdir -p ./prebuilds/${{ inputs.crate }} | ||
| wasm-pack build --target nodejs ./crates/${{ inputs.crate }} --out-dir ../../prebuilds/${{ inputs.crate }} | ||
| shell: bash | ||
| - name: Test WASM | ||
| run: node test_wasm.js | ||
| shell: bash | ||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: prebuilds-wasm | ||
| if-no-files-found: ignore | ||
| path: ./prebuilds/* |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ default-members = [ | |
| "crates/crashtracker" | ||
| ] | ||
| members = [ | ||
| "crates/*" | ||
| "crates/*", | ||
| ] | ||
|
|
||
| [profile.release] | ||
|
|
||
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.
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.