Closed therealprof closed 5 years ago
I'm not sure if it's possible to build something useful with this command in workspace root. What did you expect to get as a result?
My expectation would be that all the workspace members are built individually. This is how example crates usually work, like: https://github.com/actix/examples.git
I hope this commit makes things a bit better: https://github.com/Disasm/stm32-usbd-examples/commit/818a37e20d407bb952166087465d59f06455c244
$ cargo build
error: manifest path `/tmp/stm32-usbd-examples` contains no package: The manifest is virtual, and the workspace has no members
Unfortunately, some of the workspace members are not examples and also examples need to be compiled with different architecture targets. However, if you have any ideas -- please tell me.
Hm. Unfortunately the instructions also don't work... at least this the STM32F042 example doesn't compile out of the box:
$ pwd
/Users/egger/OSS/stm32-usbd-examples/example-stm32f042k6
$ cargo build
error: no packages to compile
Oh, that last fix broke everything.
This is fixed by f4f20f2ead5b6eabb7d7051324d437a9e4a049dd.
Trying a
cargo build
in the workspace path generates: