Documentation
¶
Overview ¶
Package cocoon supplies tooling for turning trusted Rust libraries into pure Go packages.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
cocoon
command
Command cocoon generates pure Go packages from trusted Rust libraries.
|
Command cocoon generates pure Go packages from trusted Rust libraries. |
|
Package cocoontest provides a reference WebAssembly engine for tests only.
|
Package cocoontest provides a reference WebAssembly engine for tests only. |
|
examples
|
|
|
datadog/go/dd
Code generated by cocoon.
|
Code generated by cocoon. |
|
internal
|
|
|
build
Package build orchestrates the pinned Rust, Binaryen, and wasm2go toolchain.
|
Package build orchestrates the pinned Rust, Binaryen, and wasm2go toolchain. |
|
cli
Package cli implements Cocoon's command-line workflows with testable IO.
|
Package cli implements Cocoon's command-line workflows with testable IO. |
|
fixturegen
command
Command fixturegen regenerates Cocoon's independent translator contract fixtures.
|
Command fixturegen regenerates Cocoon's independent translator contract fixtures. |
|
gen
Package gen writes validated and formatted Cocoon generated artifacts.
|
Package gen writes validated and formatted Cocoon generated artifacts. |
|
gen/gogen
Package gogen generates typed Go facades and adapters over translated guests.
|
Package gogen generates typed Go facades and adapters over translated guests. |
|
gen/rustgen
Package rustgen generates safe traits and the ABI glue surrounding authored Rust.
|
Package rustgen generates safe traits and the ABI glue surrounding authored Rust. |
|
harden
Package harden validates and rewrites pinned wasm2go memory helper ASTs.
|
Package harden validates and rewrites pinned wasm2go memory helper ASTs. |
|
manifest
Package manifest parses and validates Cocoon's declarative API contract.
|
Package manifest parses and validates Cocoon's declarative API contract. |
|
wasmbin
Package wasmbin reads bounded WebAssembly ABI sections without interpreter internals.
|
Package wasmbin reads bounded WebAssembly ABI sections without interpreter internals. |
|
Package rt implements Cocoon's synchronous ABI, isolation, and ownership contracts.
|
Package rt implements Cocoon's synchronous ABI, isolation, and ownership contracts. |
|
internal/trapfix
Package trapfix contains independently authored fixtures for the pinned translator.
|
Package trapfix contains independently authored fixtures for the pinned translator. |
|
tools
|
|
|
licenses
command
Command licenses inventories resolved dependencies using only the Go standard library, go list/mod download, and cargo metadata.
|
Command licenses inventories resolved dependencies using only the Go standard library, go list/mod download, and cargo metadata. |
Click to show internal directories.
Click to hide internal directories.