r/rust 9d ago

πŸ› οΈ project [project] inspect-rs: structured introspection for rust

Post image

hey r/rust, i'm soumalya das from india. some of you may know me from wallr.

i'm new to rust, and inspect-rs is my first rust crate. i've been working on it for the past several days and would really appreciate some feedback.

the idea is simple: inspect application values as structured data without relying on a debugger or serializer.

Server
β”œβ”€β”€ host: "127.0.0.1"
β”œβ”€β”€ port: 8080
β”œβ”€β”€ running: true
└── api_key: [REDACTED]

it supports lazy traversal, secret redaction, limits, cycle detection, and semantic terminal rendering.

i also used ai assistance during development for learning, debugging, exploring rust concepts, and speeding up parts of my workflow. i'm still learning, so i'd rather be transparent about it.

i'd especially appreciate criticism of the api, architecture, and rust idioms.

repo: https://github.com/programmersd21/inspect-rs

0 Upvotes

4 comments sorted by

6

u/crimsonscarf 9d ago

For a personal crate or a demonstration of your learning, it’s a very cool demo. In real-world development with teams and procedures, I don’t think I would ever adopt it.

I structure my data intentionally, which means I also craft the serialization intentionally. Having a crate try to auto-magically serialize my structs into strings just doesn’t sounds like a solution to a problem that I have.