debug_concisely 0.1.0

More concise deriver of std::fmt::Debug
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 8.06 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.21 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 16s Average build duration of successful builds.
  • all releases: 16s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • akouryy/debug_concisely
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • akouryy

debug_concisely

Crates.io Version Crates.io License

This crate provides a more concise derive macro of std::fmt::Debug.

Installation

cargo add debug_concisely

Usage

If you have an enum or struct deriving Debug:

#[derive(Debug)]
struct MyStruct {
    field1: i32,
    field2: MyEnum,
}

#[derive(Debug)]
enum MyEnum {
    Variant1(i32),
    Variant2(String),
}

You can replace the derive with DebugConcise:

use debug_concisely::DebugConcise;

#[derive(DebugConcise)]
struct MyStruct {
    field1: i32,
    field2: MyEnum,
}

#[derive(DebugConcise)]
enum MyEnum {
    Variant1(i32),
    Variant2(String),
}

Project Status

This project is in its early stages. Known issues include:

  • Limited support for standard and third-party types you have no control over.
  • Undefined behavior for fields with non-standard types named Option or Vec and non-imbl types named Vector.
  • No tests yet.

Output

To be documented.