here's how I adapted another one of my Rust CLIs to print to standard output (just println!)
Think it's a decent solution? Need to test it a bit more though.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!