Cant build examples
Closed this issue · 2 comments
vChavezB commented
Hi there,
I am quite new to rust and want to test this library but I cant import bluer correctly. I get the following error:
error[E0432]: unresolved imports `bluer::Adapter`, `bluer::AdapterEvent`, `bluer::DeviceEvent`
My Cargo manifest looks as follows
[package]
name = "discover"
version = "0.1.0"
edition = "2021"
[dependencies]
bluer = "0.15.0"
and as a source file I am using the discover example.
Is there something else I am missing when building the application?
surban commented
Please use bluer = { version = "0.15", features = ["full"] }
in your Cargo.toml file.
vChavezB commented
Just as a reference this is an example of how the cargo manifest should look like to compile the examples as standalone applications
[package]
name = "discover"
version = "0.1.0"
edition = "2021"
[dependencies]
bluer = { version = "0.15", features = ["full"] }
tokio = "1.20.1"
futures = "0.3.23"
env_logger = "0.9.0"