anvil_zksync_common

Module shell

Source
Expand description

Utility functions for writing to stdout and stderr.

Simplified adaptation from https://github.com/foundry-rs/foundry/blob/master/crates/common/src/io/macros.rs.

Structs§

  • A shell abstraction that tracks verbosity level, an output mode, and a color choice. It uses anstream’s AutoStream for stdout and stderr.

Enums§

  • Choices for whether to use colored output.
  • The output mode: either normal output or completely quiet.

Constants§

  • Default styles for WARNING and ERROR messages.

Functions§

  • Get a lock to the global shell.
  • (Optional) Set the global shell with a custom configuration.