-
Notifications
You must be signed in to change notification settings - Fork 101
Provide cargo-generate templates #146
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
Comments
I can fix this for cortex-m |
Has kickstart been considered? It seems to have the features we require around custom variables and validation of those variables. If nothing else, it may be relevant for how to implement these features, if use of |
Just saw this thread while looking at the cargo-generate issues and thank you @jamesmunns for mentionning kickstart. I believe kickstart would fit the bill, except the validation of overlapping of memory as validation in kickstart is currently only regex based. |
I was talking to a colleague of mine, and one thing that came up as missing is the extra help with MCU selection (initial setup), and weeding out all the chip crates.
Where it could be used as, and give the following help:
Okey, lets improve (I know there is an
I think a guiding feature like this could really help new users a lot and solve a real pain within embedded, and specifically setting up new project therein. Most of it would come from good suggestions. Any comments/further ideas/thoughts? |
@korken89 seems like an excellent idea! I don't know how much control over cargo generate we have, but, |
@korken89 Sounds great but the syntax is a bit wonky. Why would you specify the core type as @ryankurte You mean like https://platformio.org/ for Rust? That sounds like a terrific idea. |
@ryankurte @therealprof
Exactly, if this metadata is available the system could say that the core is not needed. The syntax could be a bit more hierarchical:
Or something similar. The core idea is simply to have the system be more automated and easy for beginners and advanced alike. I am however not sure where to propose and push it, as the selection of generator seems to happen now, but it can also be extended later. |
@jamesmunns @Keats I don't have much insight into how @therealprof @ryankurte @korken89 that sounds interesting but could you leave a comment or open an issue in the cargo-generate issue tracker to make sure the use case doesn't get lost? @dvc94ch @pftbest will you need more features than what's described in cargo-generate/cargo-generate#17 (comment) to port the msp430 / riscv templates to cargo-generate? |
@rust-embedded/msp430 @rust-embedded/riscv did you get a chance to try this? Triage: implementation is blocked on cargo-generate gaining the features we need. |
I created an issue in |
cortex-m-quickstart has moved to the cargo-generate format. As that's what we'll be using the embedded Rust book I'm going to remove this issue from the 2018 milestone to signal that the work required for the 2018 edition is done. I'm going to leave this open to track the other arches (msp430 and rsicv) moving to / testing cargo-generate. |
@rust-embedded/msp430 Are there any plans to update your quickstarts to cargo-generate? Can this issue be closed? |
@jamesmunns I have this in my roadmap for RISC-V. |
Updated riscv-rust-quickstart. |
Once |
@jamesmunns Long overdue, but |
I just landed cargo-generate/cargo-generate#445, which should solve the missing issues for this issue. |
There have been a variety of templates available now including https://github.com/rust-embedded/cortex-m-quickstart and https://github.com/rust-embedded/msp430-quickstart under the WG umbrella. |
Triage(2018-08-20)
The Cortex-M team has requested features to the cargo-generate folks. Implementation is blocked on cargo-generate gaining the features we need.
cargo-generate
is going to be the official solution for Cargo templates. The domain WGs areexpected to provide
cargo-generate
templates for applications in their domain.Let's move the existing templates (
{cortex-m,msp430,riscv}-quickstart
) to thecargo-generate
format. If you need any feature to be added to
cargo-generate
to port your template open anissue or leave a comment about your use case in one of the existing ones.
Submit feature requests ASAP so there's enough time for them to be implemented. Also let's collect
all the embedded WG feature requests in this issue so we can have the
cargo-generate
teamprioritize them.
Feature requests
cortex-m-quickstart
, custom variables and validation. Custom variables. cargo-generate/cargo-generate#17 (comment)cc
@rust-embedded/cortex-m@adamgreig @korken89 @therealprofcc
@rust-embedded/msp430@cr1901 @pftbestcc
@rust-embedded/riscv@bradjc @danc86 @dvc94chI'm going to tentatively assign this to the RC1 milestone.
The text was updated successfully, but these errors were encountered: