3 releases (1 stable)
Uses old Rust 2015
1.0.0 | Jan 4, 2023 |
---|---|
0.1.1 | Jun 11, 2015 |
0.1.0 | Apr 27, 2015 |
#2189 in Rust patterns
1,066 downloads per month
Used in 4 crates
(2 directly)
16KB
182 lines
Provides C99 integer types for interfacing with C libraries that use them.
Contains following types and constants, all of which are in the c99
crate:
Types
int16_t
int32_t
int64_t
int8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_fast8_t
int_least16_t
int_least32_t
int_least64_t
int_least8_t
intmax_t
intptr_t
uint16_t
uint32_t
uint64_t
uint8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_fast8_t
uint_least16_t
uint_least32_t
uint_least64_t
uint_least8_t
uintmax_t
uintptr_t
Constants
INT16_MAX
INT16_MIN
INT32_MAX
INT32_MIN
INT64_MAX
INT64_MIN
INT8_MAX
INT8_MIN
INTMAX_MAX
INTMAX_MIN
INTPTR_MAX
INTPTR_MIN
INT_FAST16_MAX
INT_FAST16_MIN
INT_FAST32_MAX
INT_FAST32_MIN
INT_FAST64_MAX
INT_FAST64_MIN
INT_FAST8_MAX
INT_FAST8_MIN
INT_LEAST16_MAX
INT_LEAST16_MIN
INT_LEAST32_MAX
INT_LEAST32_MIN
INT_LEAST64_MAX
INT_LEAST64_MIN
INT_LEAST8_MAX
INT_LEAST8_MIN
UINT16_MAX
UINT32_MAX
UINT64_MAX
UINT8_MAX
UINTMAX_MAX
UINTPTR_MAX
UINT_FAST16_MAX
UINT_FAST32_MAX
UINT_FAST64_MAX
UINT_FAST8_MAX
UINT_LEAST16_MAX
UINT_LEAST32_MAX
UINT_LEAST64_MAX
UINT_LEAST8_MAX
No runtime deps
~0–1.9MB
~38K SLoC