Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add support for nested Vector types #1342

Open
IBims1NicerTobi opened this issue Apr 18, 2024 · 1 comment
Open

Feature Request: Add support for nested Vector types #1342

IBims1NicerTobi opened this issue Apr 18, 2024 · 1 comment

Comments

@IBims1NicerTobi
Copy link

IBims1NicerTobi commented Apr 18, 2024

It would be great if there was some way to pass a Vec<Vec> from Rust to C++. This is currently not possible without applying some hack with a struct and a Vec inside that struct which is very annoying and leads to extra boilerplate code on the C++ side.
MWE:

#[cxx::bridge(namespace="test")]
mod ffi {
    extern "Rust" {
        fn test() -> Vec<Vec<f32>>;
    }
}
@mbrobbel
Copy link

#671

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants