nrf-softdevice
nrf-softdevice copied to clipboard
Including in a separate Cargo project
It would be helpful to have some documentation on how to use this from a separate project. I tried to move out the examples/
but it doesn't build...
$ cargo run --bin ble_bas_peripheral
Updating crates.io index
error: failed to get `nrf-softdevice` as a dependency of package `nrf-softdevice-examples v0.1.0 (/Users/redacted/code/nordic/myapp)`
Caused by:
failed to load source for dependency `nrf-softdevice`
Caused by:
Unable to update /Users/redacted/code/nordic/nrf-softdevice
Caused by:
found a virtual manifest at `/Users/redacted/code/nordic/nrf-softdevice/Cargo.toml` instead of a package manifest
I tried removing path = "../nrf-softdevice"
and path = "../nrf-softdevice-s140"
from Cargo.toml
but I have more errors:
$ cargo run --bin ble_bas_peripheral
Updating crates.io index
error: failed to select a version for the requirement `embassy-nrf = "^0.1.0"`
candidate versions found which didn't match: 0.0.0
location searched: crates.io index
required by package `nrf-softdevice-examples v0.1.0 (/Users/redacted/code/nordic/myapp)`
Help appreciated.