Skip to main content

Module codegen_go

Module codegen_go 

Source
Expand description

Go: the cgo wrapper package (the original API over the Rust library), and the driver that calls a package’s functions by name for record, diff and bench.

Functions§

driver
A main package that calls import_path’s functions by name: record, diff and bench.
package_name
results
The result types of a Go function, without the trailing error, and whether it has one.
shadow
A shadow package with the original’s API: each call runs the original and the Rust port (through the wrapper), returns the original’s results and logs mismatches. RUST_ANYTHING_MODE=old runs the original only, new the port only.
typed_rs
The typed extern "C" functions for lib.rs. Status: 0 ok, 1 error (message in err, freed with rust_anything_free), 2 the string result needs *out_len bytes.
unit_sources
The Go sources of the unit (not tests).
used_types
Every named type the exported signatures use.
wire_rs
Rust code of every wire export, for lib.rs.
wrapper
The wrapper package: the original package’s API, each function calling the Rust library.