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§
- BUILD_
RS - RBCONV_
RS src/rbconv.rs: Ruby values toserde_json::Valueand back, with the markers recorded cases use ($num,$sym,$hash,$int).
Functions§
- camel
- cargo_
toml - driver
- lib_rs
src/lib.rsof a Ruby crate: a magnus extension definingRustAnythingNative<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=oldruns the original only,newthe port only. - targets
{ name: [receiver, method] }for the driver.- wrapper
- The wrapper: the same modules and module functions, each calling the Rust library.