Releases: GabrielCastro/neon-serde
Releases · GabrielCastro/neon-serde
v0.1.1 - Macro improvments
Macro improvements
- Document how to use
serde_bytes::ByteBufwith nodeBuffers - Allow docs and other attributes on functions in export macro
- add
#[allow(snake_case)]added by default in export macro - Better behaviour for
Option<T>in export macro
...
export! {
/// Adding docs and attributes here now works
fn get_length(name: Option<String>) -> Option<u8> {
name.map(|n| n.len())
}
}nativeModule.get_length() // Works as of v0.1.1
nativeModule.get_length("1") // Always worked
nativeModule.get_length(null) // Always worked
nativeModule.get_length(undefined) // Always workedv0.1.0 - Neon 0.2
Breaking Change
This version requires neon 0.2
- added ci for node 10
- add MIT License file