auto!() { /* proc-macro */ }
Expand description

Add auto sized buffer functionality wrapping ywrites macros


let world = "World";
#[cfg(any(feature = "bytes-buf", feature = "bytes-buf-tokio2"))]
let buf = auto!(ywrite!(String, "Hello, {{ world }}!"));

#[cfg(any(feature = "bytes-buf", feature = "bytes-buf-tokio2"))]
assert_eq!(buf, "Hello, World!");