Skip to content

feat(debug): dump attribute which is local expand (see example) #308

Open

Description

@dzmitry-lahoda

see https://github.com/frozenlib/test-strategy?tab=readme-ov-file#arbitrarydump .

so if I add dump, i can do local expand to see internals, without relaying on expand.

for me expand not always working and sometimes I just need one thing to be expaned.

Activity

  1. Veetaha commented on Jun 25, 2025

    @Veetaha
    Collaborator

    Hi. I assume by "expand" you refer to the cargo-expand CLI tool?

    cargo-expand does lack the ability to do granual expansion of a specific macro - that's why I have never been using it. Instead, I use Rust Analyzer's command "Epand macro recursively" that can be invoked on a specific macro.

    There is a demo of doing this with bon's macros here. Having that feature of Rust Analyzer I never had a need for a special dump attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions