simd-json icon indicating copy to clipboard operation
simd-json copied to clipboard

mismatched return types while building

Open ShashankKumarSaxena opened this issue 3 years ago • 1 comments

Whenever I build my project which uses simd-json Version 0.6.0, it throws an error saying expected '!', found '()' image

My cargo version - 1.62.0

ShashankKumarSaxena avatar Jul 12 '22 15:07 ShashankKumarSaxena

This is the not-so-obvious way of simd-json to tell you that you need to compile this on a CPU and with the right flags so has support for any of the supported platforms. One way is to use the rust-flag -C target-cpu=native if you are compiling for use on your machine where you compile. Another way is to explicitly list the features, e.g: -C target-feature=+avx,+avx2,+sse4.2.

mfelsche avatar Jul 12 '22 16:07 mfelsche

I'll close this as it seems to be resolved with Matthias answer

Licenser avatar Aug 19 '22 09:08 Licenser