Browse Source

Fix bincode-next Linux build

pull/253/head
ssrlive 3 weeks ago
parent
commit
be56767595
  1. 2
      Cargo.toml
  2. 3
      src/lib.rs

2
Cargo.toml

@ -61,7 +61,7 @@ android_logger = "0.15.1"
jni = { version = "0.22.4", default-features = false }
[target.'cfg(target_os="linux")'.dependencies]
bincode = "2"
bincode-next = "2"
[target.'cfg(target_os="windows")'.dependencies]
windows-service = "0.8.0"

3
src/lib.rs

@ -1,3 +1,6 @@
#[cfg(target_os = "linux")]
extern crate bincode_next as bincode;
#[cfg(feature = "udpgw")]
use crate::udpgw::UdpGwClient;
use crate::{

Loading…
Cancel
Save