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

#2625 in Rust patterns

Download history 279/week @ 2024-06-25 36/week @ 2024-07-02 641/week @ 2024-07-09 738/week @ 2024-07-16 565/week @ 2024-07-23 254/week @ 2024-07-30 503/week @ 2024-08-06 455/week @ 2024-08-13 360/week @ 2024-08-20 131/week @ 2024-08-27 640/week @ 2024-09-03 274/week @ 2024-09-10 400/week @ 2024-09-17 479/week @ 2024-09-24 245/week @ 2024-10-01 202/week @ 2024-10-08

1,372 downloads per month
Used in 4 crates (2 directly)

BSD-2-Clause

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