Re:Migrating from Go to Rust
by pas on Monday May 25, 2026 @06:56AM
(#48265456)
it depends, if the functionality represented by the library is known to require a lot of memory (or simply allocation failures are an expected part of its operation), then it should be pretty much part of the API, probably with some tracing/diagnostics interface to get the required visibility into how much memory goes and where.
but for most libraries I on allocation failure I don't expect any fancy logging system. maybe even panic is fine.
but for most libraries I on allocation failure I don't expect any fancy logging system. maybe even panic is fine.