Closed moeller0 closed 1 year ago
I just tried to update to the newest version:
bash-3.2$ git pull remote: Enumerating objects: 250, done. remote: Counting objects: 100% (250/250), done. remote: Compressing objects: 100% (134/134), done. remote: Total 250 (delta 177), reused 180 (delta 107), pack-reused 0 Receiving objects: 100% (250/250), 446.88 KiB | 16.55 MiB/s, done. Resolving deltas: 100% (177/177), completed with 15 local objects. From https://github.com/Zoxc/crusader c2b50ad..bba1768 master -> origin/master * [new branch] test -> origin/test * [new tag] v0.0.7-testing -> v0.0.7-testing Updating c2b50ad..bba1768 Fast-forward android/Cargo.lock | 22 +++--- android/Cargo.toml | 3 +- android/app/src/main/java/zoxc/crusader/MainActivity.java | 12 ++-- android/src/lib.rs | 2 +- data/v0.crr | Bin 0 -> 171552 bytes data/v1.crr | Bin 0 -> 119261 bytes data/v2.crr | Bin 0 -> 325182 bytes src/Cargo.lock | 28 ++++---- src/crusader-gui-lib/src/lib.rs | 78 ++++++++++++++------ src/crusader-lib/Cargo.toml | 3 +- src/crusader-lib/src/file_format.rs | 23 +++--- src/crusader-lib/src/plot.rs | 124 +++++++++++++++++++------------- src/crusader-lib/src/protocol.rs | 26 +++++-- src/crusader-lib/src/serve.rs | 496 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------- src/crusader-lib/src/test.rs | 346 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------- src/crusader/Cargo.toml | 2 +- 16 files changed, 830 insertions(+), 335 deletions(-) create mode 100644 data/v0.crr create mode 100644 data/v1.crr create mode 100644 data/v2.crr Press any key to continue... bash-3.2$ cargo build --release Updating git repository `https://github.com/Zoxc/winit` Updating crates.io index Updating git repository `https://github.com/Zoxc/egui.git` Downloaded socket2 v0.4.6 Downloaded 1 crate (44.5 KB) in 0.56s Compiling socket2 v0.4.6 Compiling emath v0.19.0 (https://github.com/Zoxc/egui.git?branch=crusader#1bd048c7) Compiling winit v0.27.2 (https://github.com/Zoxc/winit?branch=crusader#75c0ae47) Compiling tokio v1.20.1 Compiling epaint v0.19.0 (https://github.com/Zoxc/egui.git?branch=crusader#1bd048c7) Compiling glutin v0.29.1 Compiling egui v0.19.0 (https://github.com/Zoxc/egui.git?branch=crusader#1bd048c7) Compiling egui_glow v0.19.0 (https://github.com/Zoxc/egui.git?branch=crusader#1bd048c7) Compiling egui-winit v0.19.0 (https://github.com/Zoxc/egui.git?branch=crusader#1bd048c7) Compiling eframe v0.19.0 (https://github.com/Zoxc/egui.git?branch=crusader#1bd048c7) Compiling tokio-util v0.7.3 Compiling crusader-lib v0.0.7 (/Users/Shared/space/data_local/moeller/PRIVATE/samba/privat/MOEWE/techno_kram/CODE/crusader/src/crusader-lib) error[E0658]: use of unstable library feature 'bool_to_option' --> crusader-lib/src/serve.rs:199:73 | 199 | ... (client.ip == ip_to_ipv6_mapped(addr.ip())).then_some(client) | ^^^^^^^^^ | = note: see issue #80967 <https://github.com/rust-lang/rust/issues/80967> for more information error[E0658]: use of unstable library feature 'bool_to_option' --> crusader-lib/src/serve.rs:421:64 | 421 | (ip_to_ipv6_mapped(src.ip()) == client.ip).then_some((client, ping)) | ^^^^^^^^^ | = note: see issue #80967 <https://github.com/rust-lang/rust/issues/80967> for more information For more information about this error, try `rustc --explain E0658`. error: could not compile `crusader-lib` due to 2 previous errors warning: build failed, waiting for other jobs to finish...
macbook:~ user$ rustc --version rustc 1.61.0 (fe5b13d68 2022-05-18)
then_some became stable in 1.62.0, so that would be the version required.
then_some
Thanks! That fixed the built.
I just tried to update to the newest version: