-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
Wow, what a great idea for a crate! I just used this to massively simplify some neon bindings at work. I especially like the export! macro.
While working on this, I wrote a wishlist for enhancements to the export! macro. And yes, I may be able to find some time to work on some of these if you're interested. :-)
- Optional arguments. It would be great if we could write
Option<Foo>, and have that translate togetrather thanrequire. - Functions which return
Resultvalues. Ideally, I should be able to return any type implementingError, and have it converted to aThrowresult. But this raises the question: Should all exported functions returnResult? - Rust doc comment support. I should be able to document exported methods with
///without getting an error. This is an easy fix. - Automatic
#[allow(non_snake_case)]so that exported functions can be given idiomatic JavaScript names. - A documentation example showing how to use
serde_bytes::ByteBufto handleJsBuffervalues.
Do any of these features interest you? Would you be willing to consider a PR if I prepared one?
Metadata
Metadata
Assignees
Labels
No labels