Discord-TTS/Bot

Unable to compile

Closed this issue · 1 comments

C:\Users\vl1\ttsbot>cargo build --release
   Compiling simd-json v0.6.0
   Compiling flate2 v1.0.25
   Compiling sqlx-rt v0.6.2
   Compiling atoi v1.0.0
   Compiling tokio-tungstenite v0.17.2
   Compiling crossbeam-deque v0.8.3
   Compiling parking_lot v0.11.2
error[E0308]: mismatched types
   --> C:\Users\vl1\.cargo\registry\src\github.com-1ecc6299db9ec823\simd-json-0.6.0\src\lib.rs:228:86
    |
228 | fn please_compile_with_a_simd_compatible_cpu_setting_read_the_simdjsonrs_readme() -> ! {}
    |    ----------------------------------------------------------------------------      ^ expected `!`, found `()`
    |    |
    |    implicitly returns `()` as its body has no tail or `return` expression
    |
    = note:   expected type `!`
            found unit type `()`

   Compiling indexmap v1.9.2
For more information about this error, try `rustc --explain E0308`.
error: could not compile `simd-json` due to previous error
warning: build failed, waiting for other jobs to finish...

As the error says, read the simdjson-rs readme. You need to set a target-cpu value to compile with a modern instruction set for simd-json to function.