You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it work as alloc::format! with #[uses_alloc] or (whatever that is), or how?
If all that people need to debug are tests, or alloc/core functionality invoked from tests, how about mentioning something like the following (if it works):
/// inside (the body of) a non-test core or alloc function:#[cfg(test)]{use std::format;
...}
Or, could we mention 3rd party #[no_std] (limited) heap-less formatting crates (there is at least one).
The text was updated successfully, but these errors were encountered:
Thank you for this guide (and, of course, for
core, alloc, std
).std-dev-guide.rust-lang.org/development/building-and-debugging.html#println-debugging-alloc-and-core suggests to use
format!
. But format is not available undercore
(at least not asstd::format!
, nor ascore::format!
- and I thought thatformat!
generatesString
, which, of course, requiresalloc
, soformat!
can't be undercore
).Would it work as
alloc::format!
with #[uses_alloc] or (whatever that is), or how?If all that people need to debug are tests, or alloc/core functionality invoked from tests, how about mentioning something like the following (if it works):
Or, could we mention 3rd party
#[no_std]
(limited) heap-less formatting crates (there is at least one).The text was updated successfully, but these errors were encountered: