You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning: trait objects without an explicit dyn are deprecated
--> src/transmitter/ptt.rs:7:21
|
7 | Gpio { pin: Box, inverted: bool },
| ^^^ help: use dyn: dyn Pin
|
= note: #[warn(bare_trait_objects)] on by default
Then the warning "trait objects without an explicit dyn are deprecated" repeats a number of times, before it fails with:
warning: ... range patterns are deprecated
--> src/pocsag/encoding.rs:10:10
|
10 | 0...127 => byte,
| ^^^ help: use ..= for an inclusive range
|
= note: #[warn(ellipsis_inclusive_range_patterns)] on by default
Hello,
I am trying to compile the application on an OrangePi Zero Plus since there are no pre-made builds available.
When compiling it fails with a few warnings / errors:
root@dapnet-trx:/opt/dapnet/UniPager#` cargo build --release
Compiling unipager v1.0.3 (/opt/dapnet/UniPager)
error: cannot find macro
select!
in this scope--> src/connection.rs:109:21
|
109 | select! {
| ^^^^^^
warning: unused macro definition
--> src/status.rs:70:1
|
70 | / macro_rules! status_silent {
71 | | ( $( $key:ident: $value:expr),* ) => ({
72 | | let mut status = $crate::status::STATUS.write().unwrap();
73 | | $(
... |
79 | | });
80 | | }
| |_^
|
= note:
#[warn(unused_macros)]
on by defaultwarning: trait objects without an explicit
dyn
are deprecated--> src/transmitter/ptt.rs:7:21
|
7 | Gpio { pin: Box, inverted: bool },
| ^^^ help: use
dyn
:dyn Pin
|
= note:
#[warn(bare_trait_objects)]
on by defaultThen the warning "trait objects without an explicit
dyn
are deprecated" repeats a number of times, before it fails with:warning:
...
range patterns are deprecated--> src/pocsag/encoding.rs:10:10
|
10 | 0...127 => byte,
| ^^^ help: use
..=
for an inclusive range|
= note:
#[warn(ellipsis_inclusive_range_patterns)]
on by defaulterror: aborting due to previous error
error: Could not compile
unipager
.Caused by:
process didn't exit successfully:
rustc --crate-name unipager src/main.rs --color always --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=1e0febf148d3728d -C extra-filename=-1e0febf148d3728d --out-dir /opt/dapnet/UniPager/target/release/deps -L dependency=/opt/dapnet/UniPager/target/release/deps --extern hidapi=/opt/dapnet/UniPager/target/release/deps/libhidapi-89f05922f3ad5e7c.rlib --extern lazy_static=/opt/dapnet/UniPager/target/release/deps/liblazy_static-36984e2a6b399d14.rlib --extern log=/opt/dapnet/UniPager/target/release/deps/liblog-072ee7ba28d2916b.rlib --extern raspi=/opt/dapnet/UniPager/target/release/deps/libraspi-eef07091b4a84f42.rlib --extern serde=/opt/dapnet/UniPager/target/release/deps/libserde-854e7e5f09227608.rlib --extern serde_derive=/opt/dapnet/UniPager/target/release/deps/libserde_derive-5798bf1b6d3d2ceb.so --extern serde_json=/opt/dapnet/UniPager/target/release/deps/libserde_json-d36de4b4ffcb54ce.rlib --extern serial=/opt/dapnet/UniPager/target/release/deps/libserial-66020f173132e1fd.rlib --extern tiny_http=/opt/dapnet/UniPager/target/release/deps/libtiny_http-94d4ab9431b2bb26.rlib --extern ws=/opt/dapnet/UniPager/target/release/deps/libws-20830ae0c5e72ecf.rlib -L native=/lib/aarch64-linux-gnu -L native=/opt/dapnet/UniPager/target/release/build/hidapi-24442d9b29cb39ba/out -L native=/opt/dapnet/UniPager/target/release/build/backtrace-sys-db971181076ff4a0/out
(exit code: 1)Is there an "easy" way around this issue, or will it require a code update?
Thanks...
The text was updated successfully, but these errors were encountered: