eclipse / paho.mqtt.rust

paho.mqtt.rust
Other
527 stars 102 forks source link

New build.rs causing error on slightly older compilers #136

Closed fpagliughi closed 2 years ago

fpagliughi commented 3 years ago

Getting this:

error[E0658]: use of unstable library feature 'bool_to_option'
   --> /home/fmp/.cargo/git/checkouts/paho.mqtt.rust-44b07fd42c95bba6/471075e/paho-mqtt-sys/build.rs:277:59
    |
277 |                     .or_else(|| cfg!(target_arch = "x86").then(||"C:\\OpenSSL-Win32"))
    |                                                           ^^^^
    |
    = note: see issue #64260 <https://github.com/rust-lang/rust/issues/64260> for more information

error[E0658]: use of unstable library feature 'bool_to_option'
   --> /home/fmp/.cargo/git/checkouts/paho.mqtt.rust-44b07fd42c95bba6/471075e/paho-mqtt-sys/build.rs:278:62
    |
278 |                     .or_else(|| cfg!(target_arch = "x86_64").then(||"C:\\OpenSSL-Win64"));
    |                                                              ^^^^
    |
    = note: see issue #64260 <https://github.com/rust-lang/rust/issues/64260> for more information

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
error: could not compile `paho-mqtt-sys`.