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

Add mechanism for cloning examples into their own crates #244

Merged
merged 1 commit into from
Mar 21, 2022
Merged

Conversation

lulf
Copy link
Member

@lulf lulf commented Mar 21, 2022

No description provided.

@lulf
Copy link
Member Author

lulf commented Mar 21, 2022

@ctron With this, you can run

cargo xtask clone examples/stm32l0/lora-discovery /path/to/new/project

For all the examples to generate one that has the git dependencies setup correctly. The reason for not using cargo-generate is that I couldn't use it with existing examples, so this way is easier to maintain.

@lulf
Copy link
Member Author

lulf commented Mar 21, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 21, 2022

Build succeeded:

@bors bors bot merged commit 7c6a512 into main Mar 21, 2022
@bors bors bot deleted the xtask-clone branch March 21, 2022 12:23
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

Successfully merging this pull request may close these issues.

1 participant