Ryan Johnson

Results 14 issues of Ryan Johnson

Today, cbindgen has special-case handling for certain well-known standard types. For example: * `NonNull` is erased as `T*` * `Option` is erased as `T*` * `Option i64>` is erased as...

Following https://github.com/mozilla/cbindgen/issues/967, introduce `/// cbindgen:transparent-typedef` annotation that causes cbindgen to replace transparent structs and typedefs with their underlying type. This allows the following: ```rust /// cbindgen:transparent-typedef #[repr(transparent)] struct Foo(NonNull); ///...

When generating FFI bindings for [delta_kernel](https://docs.rs/delta_kernel/latest/delta_kernel/), the following construct: ```rust pub enum PrimitiveType { Long, } pub enum DataType { Primitive(PrimitiveType), } impl DataType { pub const LONG: Self =...

bug
help wanted

The code restructuring work that allows transparent typedefs (see https://github.com/mozilla/cbindgen/pull/966) makes it straightforward to also support rust's transparent enums if we want to do so. Add the support, including accompanying...

Following the ideas discussed in https://github.com/mozilla/cbindgen/issues/402, search the set of referenced types for templates that are function return values and emit them all as fields of a dummy struct. This...

Any enum with a `#[strum(default)]` variant has infallible parsing in practice, but the compiler does not know this because the error type is still `strum::ParseError`. This PR proposes a non-breaking...

Currently, the `EnumString` ignore the `parse_err_ty` attribute for any enum with a `#[strum(default)]` variant. Fix it and add a unit test to validate the behavior. Fixes https://github.com/Peternator7/strum/issues/430

Related to https://github.com/Peternator7/strum/issues/307 In theory, [this new feature of EnumString](https://docs.rs/strum/latest/strum/derive.EnumString.html) should allow infallible parsing of an enum with a default variant: > The default error type is `strum::ParseError`. This can...

### Before submitting a bug report - [X] I updated to the latest version of Multi-Account Container and tested if I can reproduce the issue - [X] I searched for...

bug

While adding support for variant array unshredding to arrow-rs, I discovered that parquet-cli is unable to correctly read the parquet files for cases 86 and 126, both due to the...