when functions that require an allocator are not usable, hide them from the public API altogether this means: - when no allocator feature is enabled - when internals is disabled we should just make the functions private, not compile them away credits to @bolshoytoster and @pedrodesu for uncovering this
Activity
alejandro-vaz commentedon Oct 4, 2026
by the way, we would really benefit from a macro like that in
add-syntaxin crates.ioso we can tweak visibility much easily with a cfg attribute instead of having to duplicate things
cooronx commentedon Oct 8, 2026
Hi, can I work on this issue?
alejandro-vaz commentedon Oct 8, 2026
yeah, I've assigned you