hackndev / zinc

The bare metal stack for rust
zinc.rs
Apache License 2.0
1k stars 100 forks source link

Default build target for certain examples #375

Closed WizardUli closed 7 years ago

WizardUli commented 8 years ago

The MCU specific examples have default features set in their Cargo.toml like default = ["mcu_stm32f4"] I propose also directly adding symlink to JSON target description and .cargo/config with build target like [build] target = "thumbv7em-none-eabi"

Such example could be then build just by running cargo build --release. The generic examples like empty would retain status quo (i.e. no default build target as well as no default features set),

I can make a pull request if somebody is interested in this idea.

farcaller commented 8 years ago

Makes perfect sense, I'd appreciate a PR.

mcoffin commented 7 years ago

This appears to have happened in d097403961421fe1d2062e66f1878d78c523bb99, which landed in #376, so I'm going to close this. Thanks!