gannan08 / rdf-canonize-rs

Please see https://github.com/digitalbazaar/rdf-canonize-rs
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Nice! #1

Open mattcollier opened 3 years ago

mattcollier commented 3 years ago

Looks like we just need to wire what you have here into this: https://github.com/mattcollier/rust-node-bindgen-canonize/blob/9aecb5646dfcbc2d633495a5b09fdfa712cece15/src/lib.rs#L79-L80

I've tested this and it will accept the inputs from rdf-canonize tests.

You just need nj-cli to build the bindgen-canonize stuff: https://github.com/infinyon/node-bindgen#cli-installation

// within the rust-node-bindgen-canonize folder
nj-cli build
const rustCanonize = require('../../rust-bindgen-canonize/dist/index.node');

// in the rdf-canonize test suite
result = canonize.canonize.apply(null, clone(jsParams));