Skip to content

[Question] Any plan to make API more Rust idiomatic? #2

@oxalica

Description

@oxalica

I found this library from crates.io, but the API seems to be very C-alike. It heavily uses un-typed integer flags, exposes raw errno instead of std::io::Error, and many functions are built around pointers here and there. The example setup is also quite tedious and requires manual memory management.

Is there any plan to make the API of libublk more Rust idiomatic? Or it's intended to be a low-level port of C code base and expects some other high-level library building on top of this one?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions