- Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
Currently, the dependencies are tied to the target-triple in freertos-rust-examples/Cargo.toml
, and the build.rs
ties example paths directly to targets.
After some tinkering with cargo, it seems there might not be a way to improve on this.
However, if each "example" is reorganized into its own cargo binary project, then:
- the target triple can be put into .cargo/config.toml for each
- dependencies for each can be made unique
build.rs
does not need to link targets to example paths
proposed reorg here:
https://github.com/apullin/FreeRTOS-rust/tree/examples_reorg/freertos-rust-examples/examples/stm32f407-segger-trace
This might be moot, since the "examples" should just be templates, and any new project would have a project-specific build.rs
and config.toml
anyway.
However, this way, each refactored example would be a template to copy & adapt directly (just paths, I think?) for new projects.
Metadata
Metadata
Assignees
Labels
No labels