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
mainpackage that callsimport_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=oldruns the original only,newthe port only. - typed_
rs - The typed
extern "C"functions forlib.rs. Status: 0 ok, 1 error (message inerr, freed withrust_anything_free), 2 the string result needs*out_lenbytes. - 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.