| Crates.io | debug_concisely |
| lib.rs | debug_concisely |
| version | 0.1.0 |
| created_at | 2025-06-08 09:05:29.771887+00 |
| updated_at | 2025-06-08 09:05:29.771887+00 |
| description | More concise deriver of std::fmt::Debug |
| homepage | |
| repository | https://github.com/akouryy/debug_concisely |
| max_upload_size | |
| id | 1704731 |
| size | 8,532 |
This crate provides a more concise derive macro of std::fmt::Debug.
cargo add debug_concisely
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),
}
This project is in its early stages. Known issues include:
Option or Vec and non-imbl types named Vector.To be documented.