Skip to content

Support remote types and remote containers #79

@aldanor

Description

@aldanor

There are two separate problems, listing them here in case we decide to implement it later.

First, same as in this example in serde: https://serde.rs/remote-derive.html, would be nice to provide a way to set up remote derives for foreign types.

Another problem is with containers, and the main one is Vec. Would be nice if we could provide a way to use other vec-like types. This could look e.g. like this (note that it would sort-of cover #72):

use fancy_crate::FancyVec;
use std::collections::VecDeque;

#[derive(ArrowField)]
struct Foo {
    #[arrow(vec)]
    vec_custom: Vec<i32, MyAlloc>,
    #[arrow(vec(push = "push_back"))]
    deque: VecDeque<i32>,
    #[arrow(vec)]
    vec_remote: FancyVec<i32>,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions