Open DmitryAstafyev opened 2 years ago
Hello, Is it possible to define somehow module/namespace on JS level? Let's say I have:
mod features { #[node_bindgen] pub fn feature_a() -> Result<...> { .... } } mod tools { #[node_bindgen] pub fn tool_a() -> Result<...> { .... } }
On js level I would like to see it as:
let rustcore = require('rustcore.node'); rustcore.features.feature_a(); rustcore.tools.tool_a();
Sorry if question is trivial, but didn't find any kind of solution for that.
Sorry, not yet. Would love contribution though
Hello, Is it possible to define somehow module/namespace on JS level? Let's say I have:
On js level I would like to see it as:
Sorry if question is trivial, but didn't find any kind of solution for that.