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

#2172 in Rust patterns

Download history 330/week @ 2024-08-21 246/week @ 2024-08-28 582/week @ 2024-09-04 202/week @ 2024-09-11 497/week @ 2024-09-18 412/week @ 2024-09-25 225/week @ 2024-10-02 236/week @ 2024-10-09 227/week @ 2024-10-16 288/week @ 2024-10-23 247/week @ 2024-10-30 257/week @ 2024-11-06 51/week @ 2024-11-13 139/week @ 2024-11-20 199/week @ 2024-11-27 289/week @ 2024-12-04

708 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–2MB
~39K SLoC