c-types

Crates.ioc-types
lib.rsc-types
version4.0.0
sourcesrc
created_at2015-11-21 13:17:16.561363
updated_at2024-08-02 22:36:34.108287
descriptionRe-exports of cross-platform types, gathered from libc and winapi
homepage
repositoryhttps://github.com/dimbleby/rust-c-types
max_upload_size
id3467
size8,929
David Hotham (dimbleby)

documentation

https://docs.rs/c-types

README

rust-c-types

Re-exports types defined in both libc and winapi, to reduce the amount of conditional compilation required in your code. Stop having to write code like this:

#[cfg(unix)]
use libc::some_type;

#[cfg(windows)]
use winapi::some_type;

Instead, write code like this:

use c_types::some_type;

Crates.io Build Status

Documentation

API documentation is here.

Contributing

This crate is non-exhaustive - I add types to it as and when I need them for my own projects.

If there's a type that could be included but isn't, there should be no problem adding it. Please open an issue or, even better, send a pull request.

Commit count: 33

cargo fmt