Skip to content

Release wasm-opt as a library - #9435

Open
KKiiim wants to merge 1 commit into
WebAssembly:mainfrom
KKiiim:release-lib-wasmopt
Open

KKiiim wants to merge 1 commit into
WebAssembly:mainfrom
KKiiim:release-lib-wasmopt

Conversation

@KKiiim

@KKiiim KKiiim commented Nov 26, 2026 •

Copy link
Copy Markdown

No description provided.

@github-actions
github-actions Bot requested a review from kripken November 26, 2026 10:01
@KKiiim

KKiiim commented Nov 26, 2026

Copy link
Copy Markdown
Author

Hi, maintainers. Could we release the wasm-opt as lib

Comment thread src/wasm-opt-c.h Outdated
// Generate fuzz code using the module's enabled features and default settings.
// input may be NULL when inputSize is zero.
BINARYEN_API void WasmOptTranslateToFuzz(
BinaryenModuleRef module, const char* input, size_t inputSize);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just add a new C API to binaryen-c.h for this fuzz conversion? That is, I don't think we need to add new files, just a new API to libbinaryen.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for you advice. Fixed it.

@KKiiim
KKiiim force-pushed the release-lib-wasmopt branch from f75af66 to 699f61c Compare December 1, 2026 03:37
@KKiiim
KKiiim requested a review from kripken December 1, 2026 03:38
Comment thread src/binaryen-c.cpp

#ifdef BUILD_TOOLS
#include "tools/fuzzing.h"
#endif

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ifdef this? I think it can always be part of libbinaryen

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants