Skip to content

Test FFI safety #2

@dtolnay

Description

@dtolnay

Given the name of the crate I would expect to have something to verify that the generated data structure is considered FFI-safe by rustc. I've seen rustc periodically introduce regressions in what is considered to be FFI-safe.

Something like:

#[deny(improper_ctypes, warnings)]
extern "C" {
    pub fn f(_: *const leveldb_t);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions