Rules / TAU-O001

No direct console output outside the edge

decided by Clippy kernel deny core deny edge –
Applies to tests: no Exceptions: #[expect] + reason

Why

Console output is an effect; library code that prints cannot be tested or redirected.

Fix

Return the data, or write to an impl std::io::Write passed in by the caller.

What it checks

Lints: clippy::print_stdout, clippy::print_stderr

Seen in fixtures

rej-print/src/lib.rs core

//! Library code printing. /// Report.pub fn report(x: u64) {    println!("{x}");}

$ cargo tauten check

error[TAU-O001]: use of `println!`  --> rej-print/src/lib.rs:5:5 (core crate `rej-print`)  = rule: No direct console output outside the edge (decided by Clippy)  = fix: Return the data, or write to an `impl std::io::Write` passed in by the caller.
Fixture rej-print (core) expects TAU-O001. Output captured at 0200db3.

In the terminal

cargo tauten explain TAU-O001

$ cargo tauten explain TAU-O001

TAU-O001: No direct console output outside the edge Why: Console output is an effect; library code that prints cannot be tested or redirected. Fix: Return the data, or write to an `impl std::io::Write` passed in by the caller. Decided by: ClippyDecides: No `print!`/`eprint!` outside the edge.Sees: resolved; complete: yesDoes not see: Code expanded from macros defined in other crates (clippy skips it); code disabled by `cfg`; build scripts.Applies to tests: noExceptions allowed: with #[expect(.., reason)]  kernel deny  core deny  edge -Lints: clippy::print_stdout, clippy::print_stderr