-
-
Notifications
You must be signed in to change notification settings - Fork 758
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-v0.9.0' into release
- Loading branch information
Showing
62 changed files
with
9,069 additions
and
5,767 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,86 @@ | ||
language: rust | ||
sudo: false | ||
addons: | ||
apt: | ||
packages: | ||
- gcc-arm-linux-gnueabihf | ||
rust: | ||
- nightly | ||
- 1.9.0 | ||
os: | ||
- osx | ||
- linux | ||
sudo: required | ||
rust: stable | ||
dist: trusty | ||
|
||
env: | ||
matrix: | ||
- TEST_FEATURES=false | ||
- TEST_FEATURES=true | ||
global: | ||
- TARGET=x86_64-unknown-linux-gnu | ||
- BUILD_OPENSSL_VERSION=1.0.1u | ||
matrix: | ||
# include: | ||
# - os: linux | ||
# env: TARGET=arm-unknown-linux-gnueabihf TEST_FEATURES=true | ||
# rust: 1.7.0 | ||
exclude: | ||
- os: osx | ||
env: TEST_FEATURES=true | ||
include: | ||
# ARM-bit version compat | ||
- env: > | ||
TARGET=arm-unknown-linux-gnueabihf | ||
BUILD_OPENSSL_VERSION=1.0.2h | ||
CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc | ||
QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf | ||
RUST_TEST_THREADS=1 | ||
addons: | ||
apt: | ||
packages: | ||
- gcc-arm-linux-gnueabihf | ||
- qemu-user-static | ||
- libc6-dev-armhf-cross | ||
- binfmt-support | ||
- env: > | ||
TARGET=arm-unknown-linux-gnueabihf | ||
BUILD_OPENSSL_VERSION=1.1.0b | ||
CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc | ||
QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf | ||
RUST_TEST_THREADS=1 | ||
addons: | ||
apt: | ||
packages: | ||
- gcc-arm-linux-gnueabihf | ||
- qemu-user-static | ||
- libc6-dev-armhf-cross | ||
- binfmt-support | ||
# Minimum version supported | ||
- rust: 1.9.0 | ||
|
||
# beta/nightly channels | ||
- rust: beta | ||
- rust: nightly | ||
|
||
# 64-bit version compat | ||
- env: BUILD_OPENSSL_VERSION=1.0.2h | ||
- env: BUILD_OPENSSL_VERSION=1.1.0b | ||
|
||
# 32-bit version compat | ||
- env: TARGET=i686-unknown-linux-gnu BUILD_OPENSSL_VERSION=1.0.1u | ||
addons: | ||
apt: | ||
packages: | ||
- gcc-multilib | ||
- env: TARGET=i686-unknown-linux-gnu BUILD_OPENSSL_VERSION=1.0.2h | ||
addons: | ||
apt: | ||
packages: | ||
- gcc-multilib | ||
- env: TARGET=i686-unknown-linux-gnu BUILD_OPENSSL_VERSION=1.1.0b | ||
addons: | ||
apt: | ||
packages: | ||
- gcc-multilib | ||
|
||
# osx 32/64 | ||
- os: osx | ||
env: TARGET=x86_64-apple-darwin | ||
- os: osx | ||
env: TARGET=i686-apple-darwin | ||
install: brew uninstall openssl && brew install openssl --universal | ||
|
||
|
||
before_install: | ||
- ./openssl/test/build.sh | ||
- ./openssl/test/build.sh | ||
- curl https://static.rust-lang.org/rustup.sh | | ||
sh -s -- --add-target=$TARGET --disable-sudo -y --prefix=`rustc --print sysroot` | ||
script: | ||
- ./openssl/test/run.sh | ||
- ./openssl/test/run.sh | ||
|
||
cache: | ||
cargo: true | ||
directories: | ||
- $HOME/openssl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[workspace] | ||
members = ["openssl", "openssl-sys"] | ||
members = ["openssl", "openssl-sys", "systest"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,45 @@ | ||
environment: | ||
OPENSSL_INCLUDE_DIR: C:\OpenSSL\include | ||
OPENSSL_LIB_DIR: C:\OpenSSL\lib | ||
OPENSSL_LIBS: ssleay32:libeay32 | ||
SSL_CERT_FILE: "C:\\OpenSSL\\cacert.pem" | ||
matrix: | ||
- TARGET: i686-pc-windows-gnu | ||
BITS: 32 | ||
- TARGET: x86_64-pc-windows-msvc | ||
BITS: 64 | ||
# 1.1.0, 64/32 bit | ||
- TARGET: i686-pc-windows-gnu | ||
BITS: 32 | ||
MSYS2: 1 | ||
OPENSSL_VERSION: 1_1_0b | ||
- TARGET: x86_64-pc-windows-msvc | ||
BITS: 64 | ||
OPENSSL_VERSION: 1_1_0b | ||
OPENSSL_DIR: C:\OpenSSL | ||
|
||
# 1.0.2, 64/32 bit | ||
- TARGET: x86_64-pc-windows-gnu | ||
BITS: 64 | ||
MSYS2: 1 | ||
OPENSSL_VERSION: 1_0_2j | ||
- TARGET: i686-pc-windows-msvc | ||
BITS: 32 | ||
OPENSSL_VERSION: 1_0_2j | ||
OPENSSL_DIR: C:\OpenSSL | ||
install: | ||
- ps: Start-FileDownload "http://slproweb.com/download/Win${env:BITS}OpenSSL-1_0_2h.exe" | ||
- Win%BITS%OpenSSL-1_0_2h.exe /SILENT /VERYSILENT /SP- /DIR="C:\OpenSSL" | ||
- ps: Start-FileDownload "https://static.rust-lang.org/dist/rust-1.9.0-${env:TARGET}.exe" | ||
- rust-1.9.0-%TARGET%.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust" | ||
- SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin | ||
- SET PATH=%PATH%;C:\MinGW\bin | ||
# install OpenSSL | ||
- ps: Start-FileDownload "http://slproweb.com/download/Win${env:BITS}OpenSSL-${env:OPENSSL_VERSION}.exe" | ||
- Win%BITS%OpenSSL-%OPENSSL_VERSION%.exe /SILENT /VERYSILENT /SP- /DIR="C:\OpenSSL" | ||
- ps: Start-FileDownload "https://curl.haxx.se/ca/cacert.pem" -FileName "C:\OpenSSL\cacert.pem" | ||
|
||
# Install Rust | ||
- curl -sSf -o rustup-init.exe https://win.rustup.rs/ | ||
- rustup-init.exe -y --default-host %TARGET% | ||
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin | ||
- if defined MSYS2 set PATH=C:\msys64\mingw%BITS%\bin;%PATH% | ||
- rustc -V | ||
- cargo -V | ||
|
||
build: false | ||
|
||
# Don't run doctests due to rust-lang/cargo#1592 | ||
test_script: | ||
- cargo test --lib --manifest-path openssl/Cargo.toml | ||
- cargo run --manifest-path systest/Cargo.toml --target %TARGET% | ||
- cargo test --manifest-path openssl/Cargo.toml --target %TARGET% | ||
|
||
cache: | ||
- target | ||
- C:\Users\appveyor\.cargo\registry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,21 @@ | ||
[package] | ||
name = "openssl-sys" | ||
version = "0.7.17" | ||
version = "0.9.0" | ||
authors = ["Alex Crichton <alex@alexcrichton.com>", | ||
"Steven Fackler <sfackler@gmail.com>"] | ||
license = "MIT" | ||
description = "FFI bindings to OpenSSL" | ||
repository = "https://github.com/sfackler/rust-openssl" | ||
documentation = "https://sfackler.github.io/rust-openssl/doc/v0.7.17/openssl_sys" | ||
documentation = "https://sfackler.github.io/rust-openssl/doc/v0.9.0/openssl_sys" | ||
links = "openssl" | ||
build = "build.rs" | ||
|
||
[features] | ||
tlsv1_2 = [] | ||
tlsv1_1 = [] | ||
dtlsv1 = [] | ||
dtlsv1_2 = [] | ||
sslv2 = [] | ||
sslv3 = [] | ||
aes_xts = [] | ||
aes_ctr = [] | ||
npn = [] | ||
alpn = [] | ||
rfc5114 = [] | ||
pkcs5_pbkdf2_hmac = [] | ||
ecdh_auto = [] | ||
hmac_clone = [] | ||
|
||
[dependencies] | ||
libc = "0.2" | ||
|
||
[build-dependencies] | ||
pkg-config = "0.3" | ||
|
||
[target.le32-unknown-nacl.dependencies] | ||
libressl-pnacl-sys = "2.1.0" | ||
[target.x86_64-unknown-nacl.dependencies] | ||
libressl-pnacl-sys = "2.1.0" | ||
[target.i686-unknown-nacl.dependencies] | ||
libressl-pnacl-sys = "2.1.0" | ||
[target.arm-unknown-nacl.dependencies] | ||
libressl-pnacl-sys = "2.1.0" | ||
|
||
# Only here to make sure we link to these in a static build on Windows | ||
[target.'cfg(windows)'.dependencies] | ||
user32-sys = "0.2" | ||
gdi32-sys = "0.2" |
Oops, something went wrong.