Skip to content

introduce herkos core#20

Merged
arnoox merged 3 commits into
mainfrom
herkos-core-intro
Mar 15, 2026
Merged

introduce herkos core#20
arnoox merged 3 commits into
mainfrom
herkos-core-intro

Conversation

@arnoox

@arnoox arnoox commented Mar 15, 2026

Copy link
Copy Markdown
Owner

This pull request introduces a new core crate, herkos-core, to the workspace and provides a C FFI interface for transpiling WebAssembly binaries to Rust source code. The changes enable usage from C programs and offer examples and documentation for integration.

Addition of new core crate and workspace update:

  • Added crates/herkos-core to the workspace members in Cargo.toml, and excluded its bootstrap example from the workspace.
  • Created crates/herkos-core/Cargo.toml with metadata, dependencies, and crate type configuration for the new core library.

C FFI interface and usage example:

  • Implemented C FFI functions in crates/herkos-core/src/c_ffi.rs for transpiling WASM to Rust, including memory management and error handling.
  • Added crates/herkos-core/herkos.h, a C header defining the interface and result structure for the transpiler.
  • Provided a C example usage in crates/herkos-core/example_c_usage.c, demonstrating how to call the transpiler and handle results.

Comment thread crates/herkos-core/Cargo.toml
@arnoox
arnoox merged commit c1b4911 into main Mar 15, 2026
1 check passed
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.

1 participant