diff --git a/Cargo.toml b/Cargo.toml index d93dbc1..1ebe54e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wolfssl-sys" -version = "0.1.4" +version = "0.1.5" edition = "2021" authors = ["pete.m@expressvpn.com"] license = "GPL-2.0" @@ -11,6 +11,6 @@ keywords = ["wolfssl", "vpn", "expressvpn", "lightway"] links = "wolfssl" [build-dependencies] -bindgen = "0.59.2" +bindgen = "0.60.1" autotools = "0.2" build-target = "0.4.0" diff --git a/Earthfile b/Earthfile index 2fda8a5..a2e4480 100644 --- a/Earthfile +++ b/Earthfile @@ -1,5 +1,5 @@ VERSION 0.6 -FROM rust:1.59 +FROM rust:1.62.1 WORKDIR /wolfssl-sys diff --git a/README.md b/README.md index d43176d..497bd99 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,9 @@ Add `wolfssl-sys` to your Cargo manifest: ``` [dependencies] -wolfssl-sys = "0.1.0" +wolfssl-sys = "0.1.5" ``` -To ensure that the crate can be built even offline, the crate includes the source code for WolfSSL (currently version `5.2.0`). WolfSSL uses autotools to build and configure the library so this will need to be install on the build system. +To ensure that the crate can be built even offline, the crate includes the source code for WolfSSL (currently version `5.4.0`). WolfSSL uses autotools to build and configure the library so this will need to be install on the build system. ## Building with Earthly There is also an `Earthfile` provided so that you can build the crate in [Earthly](https://earthly.dev): diff --git a/build.rs b/build.rs index fbee61c..122e334 100644 --- a/build.rs +++ b/build.rs @@ -10,7 +10,7 @@ use std::env; use std::path::PathBuf; use std::process::Command; -static WOLFSSL_VERSION: &str = "wolfssl-5.3.0-stable"; +static WOLFSSL_VERSION: &str = "wolfssl-5.4.0-stable"; /** * Work around for bindgen creating duplicate values. @@ -95,6 +95,11 @@ fn build_wolfssl(dest: &str) -> PathBuf { conf.enable("armasm", None); } + if build_target::target_arch().unwrap() == build_target::Arch::ARM { + // Enable ARM ASM optimisations + conf.enable("armasm", None); + } + // Build and return the config conf.build() } diff --git a/vendor/wolfssl-5.3.0-stable.tar.gz b/vendor/wolfssl-5.4.0-stable.tar.gz similarity index 67% rename from vendor/wolfssl-5.3.0-stable.tar.gz rename to vendor/wolfssl-5.4.0-stable.tar.gz index a3db1ed..099bd2b 100644 Binary files a/vendor/wolfssl-5.3.0-stable.tar.gz and b/vendor/wolfssl-5.4.0-stable.tar.gz differ