Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Expand whole project source to the ad hoc project #37

Closed
cheblin opened this issue Jan 15, 2019 · 1 comment
Closed

Proposal: Expand whole project source to the ad hoc project #37

cheblin opened this issue Jan 15, 2019 · 1 comment

Comments

@cheblin
Copy link

cheblin commented Jan 15, 2019

Expand (with preserved comments (?)) whole project source files, and copy, other project related files, to the other project,
So obtained project copy, will contain "pure" source and can be run and debugged as is, without any expansion.

Can be added option - how deep to expand macros. Only located in user code... located in user code and used crates...

@cheblin cheblin changed the title Proposal: Expand whole project source to the other project Proposal: Expand whole project source to the ad hoc project Jan 15, 2019
@dtolnay
Copy link
Owner

dtolnay commented Jan 15, 2019

Thanks! This proposal sounds substantially different from what cargo-expand currently does, so I would prefer to see this use case addressed in a different crate.

The second part, control over how deeply macros are expanded, is tracked in #11.

@dtolnay dtolnay closed this as completed Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants