Browse Source

update rust, use target-cpu=native (#3100)

Max Gortman 7 years ago
parent
commit
80275a2320

+ 1 - 1
frameworks/Rust/hyper/setup.sh

@@ -3,5 +3,5 @@
 fw_depends postgresql rust
 
 cargo clean
-cargo build --release
+RUSTFLAGS="-C target-cpu=native" cargo build --release
 ./target/release/hello &

+ 1 - 1
frameworks/Rust/tokio-minihttp/setup.sh

@@ -3,5 +3,5 @@
 fw_depends postgresql rust
 
 cargo clean
-cargo build --release
+RUSTFLAGS="-C target-cpu=native" cargo build --release
 ./target/release/tokio-minihttp &

+ 1 - 1
toolset/setup/linux/languages/rust.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-RUST_VERSION="1.21.0"
+RUST_VERSION="1.22.1"
 
 fw_installed rust && return 0