Crates.io | alloc-fmt |
lib.rs | alloc-fmt |
version | 0.2.0 |
source | src |
created_at | 2017-10-20 17:58:17.849236 |
updated_at | 2020-04-04 00:00:06.314936 |
description | Formatting utilities safe for use in an allocator. |
homepage | |
repository | https://github.com/ezrosent/allocators-rs/tree/master/alloc-fmt |
max_upload_size | |
id | 36378 |
size | 26,380 |
alloc-fmt
provides formatting and assertion macros similar to println
,
eprintln
, panic
, assert
, debug_assert
, etc which are safe for use in a
global allocator. The standard library's formatting, panic, and assertion macros
can allocate, meaning that if they are used in the implementation of a global
allocator, it can cause infinite recursion. The macros in this crate do not
allocate in order to avoid this problem.