rust-xdr icon indicating copy to clipboard operation
rust-xdr copied to clipboard

Rust XDR interoperability library and codegen

Results 11 rust-xdr issues
Sort by recently updated
recently updated
newest added

Also includes a pass through `cargo fmt` as to reduce noise of the update patch.

I'm interested in using this library to autogen bindings for the NFS protocol (https://tools.ietf.org/html/rfc5662). Unfortunately, the spec has revealed several parsing issues. In no particular order: 1) Unsigned 64-bit (hyper)...

Right now the tests in xdr_nom.rs are just in test functions. However, this means the functions are compiled into the resulting library. It's better to wrap them in module blocks...

This may be known behavior but it appears that un-named union types fail: ``` struct SomeStruct { union switch (int v) { case 1: void; } value; }; ``` outputs:...

I'm getting an EOF error when trying to parse the stellar x files: ``` $ xdrgen xdr/Stellar-SCP.x Failed: parse error: Eof: namespace stellar { ``` https://github.com/stellar/stellar-core/tree/master/src/xdr Any idea what might...

The generated code for fixed size arrays is currently: ``` let mut buf: [#ty; #value as usize] = unsafe { ::std::mem::uninitialized() }; let sz = xdr_codec::unpack_array(input, &mut buf[..], #value as...

I'm using this crate for my libvirt-rpc project. Works great so far! Are there any plans to implement #[derive(Pack)] or serde integration?

enhancement

Such as seen in https://gist.github.com/cholcombe973/d7a83647ae51cdcc1fcb2d390c27ee4c The proper way to work around this is to manually implement the traits for arrays of the given size, but the simple thing to do...

**Context** `rust-xdr v0.4.4` has a dependency `env_logger v0.4.3` which in turn has a sub-dependency `regex v0.2.11`. However, `regex v0.2.11` has a high sev vulnerability linked [here](https://github.com/advisories/GHSA-m5pq-gvj9-9vr8). We use `rust-xdr v0.4.4`...