Skip to main content

Module codegen_ruby

Module codegen_ruby 

Source
Expand description

Ruby: the Fiddle wrapper (the original module functions over the Rust library), and the driver that calls them by name for record, diff and bench.

Constants§

RBCONV_RS
src/rbconv.rs: Ruby values to serde_json::Value and back, with the markers recorded cases use ($num, $sym, $hash, $int).

Functions§

camel
cargo_toml
driver
lib_rs
src/lib.rs of a Ruby crate: a magnus extension defining RustAnythingNative<Lib> with one module function per port function, positional arguments only (the Ruby wrapper keeps the original defaults and keywords).
shadow
A shadow file: require it after the original. Each module function runs the original and the Rust port, returns the original’s result and counts mismatches. RUST_ANYTHING_MODE=old runs the original only, new the port only.
targets
{ name: [receiver, method] } for the driver.
wrapper
The wrapper: the same modules and module functions, each calling the Rust library.