Open dominictarr opened 8 years ago
Not right now, no.
The gist would be:
gcc
module handles linking it to rust already.<lib>_api.rs
file in the form of duk_api.rs
and write the Rust bindings in a relatively similar mannermain.rs
<lib>_functions.rs
file for writing any function linkage<lib>.rs
file for exposing it to the JS context in the same form as nucleus.rs
nucleus.rs
so that it is acessbale via nucleus.<lib>.etc
in JSAt a higher level: it should probably be proposed as a spec on the design repo. not sure if that matters at this point though
I have an open issue for libuv at https://github.com/nucleus-js/rustyduk/issues/10
If you want, I could hop in the irc if that is easier. (nucleus.js
on freenode
) :)
@dominictarr please let me know if I was missing anything or if you have more questions. :)
sorry, I'll take a stab at this and let you know how it goes.
I want to create bindings for libsodium and leveldb, is there any documentation for how to get started writing a binding?