Skip to content
This repository was archived by the owner on Apr 12, 2025. It is now read-only.
This repository was archived by the owner on Apr 12, 2025. It is now read-only.

Needs update to allow "unsafe" keyword in "extern" declarations #69

@hedgecrw

Description

@hedgecrw

Newer versions of Rust require that all extern blocks be marked unsafe extern. The bindgen crate already supports and executes this (see this issue).

The problem is that ctest2 crashes if unsafe extern is present (perhaps due to it not recognizing that block as a valid extern block and emitting an empty C file?). Could the library be updated to support both bare extern and unsafe extern blocks? Thanks!

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