Skip to content

Consider using windows-bindgen for Windows API definitions #2565

Closed as not planned
@ChrisDenton

Description

@ChrisDenton

Currently ring directly uses only a single function from the Windows API:

use windows_sys::Win32::System::Threading::{
IsProcessorFeaturePresent, PF_ARM_V8_CRYPTO_INSTRUCTIONS_AVAILABLE,
};

The windows-sys crate is very large so depending on it for a single function is unfortunate. It also typically has a major release each year which means they'll often be multiple versions in a dependency tree.

An alternative to this is to use the windows-bindgen crate to generate the API definitions to a file in the src/ tree that can be committed and used like any other module. This generated code can then be audited as part of the ring crate.

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