debug_concisely

Crates.iodebug_concisely
lib.rsdebug_concisely
version0.1.0
created_at2025-06-08 09:05:29.771887+00
updated_at2025-06-08 09:05:29.771887+00
descriptionMore concise deriver of std::fmt::Debug
homepage
repositoryhttps://github.com/akouryy/debug_concisely
max_upload_size
id1704731
size8,532
akouryy (akouryy)

documentation

README

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.

Commit count: 4

cargo fmt