Registry / utility / debug-stub-derive

debug-stub-derive

JSON →
library0.3.0rscratesunverified

A drop-in replacement for #[derive(Debug)] that supports replacement values for members which do not implement fmt::Debug.

# Cargo.toml [dependencies] debug_stub_derive = "0.3.0"
INSTALL
IMPORT
SIG · DEBUG-STUB-DERIVE
D
debug-stub-derive
utilityrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DebugStub
use debug_stub_derive::DebugStub;

Derives Debug with custom stubs for non-Debug fields.

use debug_stub_derive::DebugStub; #[derive(DebugStub)] struct MyStruct { #[debug_stub = "<hidden>"] secret: String, } fn main() { let s = MyStruct { secret: "password".to_string() }; println!("{:?}", s); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
debug-stub-derive — cargo add debug-stub-derive · libregistry