When I cargo run
, I get met with
error: failed to run custom build command for `ring v0.16.20`
--- stderr
running "gcc.exe" "-O0" "-ffunction-sections" "-fdata-sections" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "include" "-Wall" "-Wextra" "-std=c1x" "-Wbad-function-cast" "-Wnested-externs" "-Wstrict-prototypes" "-pedantic" "-pedantic-errors" "-Wall" "-Wextra" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wenum-compare" "-Wfloat-equal" "-Wformat=2" "-Winline" "-Winvalid-pch" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wundef" "-Wuninitialized" "-Wwrite-strings" "-fno-strict-aliasing" "-fvisibility=hidden" "-g3" "-DNDEBUG" "-c" "-oC:\\Users\\Derpboimoon\\documents\\rust\\phosphorus\\target\\debug\\build\\ring-d6190243a10e7549\\out\\aes_nohw.o" "crypto/fipsmodule/aes/aes_nohw.c"
crypto/fipsmodule/aes/aes_nohw.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
/* Copyright (c) 2019, Google Inc.
thread 'main' panicked at 'execution failed', C:\Users\Pat\.cargo\registry\src\github.com-1ecc6299db9ec823\ring-0.16.20\build.rs:656:9
Here is my Cargo.toml file:
[package]
name = "phosphorus"
version = "0.1.0"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
tokio = { version = "1.7.0", default-features = false, features = ["macros", "sync", "rt-multi-thread"] }
twilight-http = "0.3"
I am using rustup default stable-x86_64-pc-windows-gnu
if that helps.
I read around stack overflow and it seems that I need to set the gcc target to x86_64. How do I do that? I suspect the error is from tokio
, but not sure.
Any help would be appreciated!
twilight-http
, viahyper-rustls
(which is an optional, but default, dependency): see the "TLS" section in its README. – Often