google / google/zerocopy

Permit configuring the verbosity of error type `Display` impls

Open
#1,457 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
2.6k
Forks
179
Avg merge
1d 19h
Merged PRs (30d)
29

Description

Once #1298 lands, the `Display` impls for error types will have behavior which changes based on `#[cfg(debug_assertions)]`: when it is disabled, error messages will be minimal, and when it is enabled, error messages will contain verbose but potentially-sensitive information.

Some users may want the ability to directly override this behavior (ie, set the verbosity directly rather than based on `#[cfg(debug_assertions)]`).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.