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

Download history 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 220/week @ 2024-10-08 192/week @ 2024-10-15 359/week @ 2024-10-22 219/week @ 2024-10-29 244/week @ 2024-11-05

1,066 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