Skip to content

Commit 57fd6ea

Browse files
authored
chore(actix-tls): prepare release 3.3.0 (#530)
1 parent 9a3f3ee commit 57fd6ea

File tree

6 files changed

+40
-18
lines changed

6 files changed

+40
-18
lines changed

.github/workflows/ci-post-merge.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ jobs:
4444

4545
- name: Install OpenSSL
4646
if: matrix.target.os == 'windows-latest'
47-
run: choco install openssl -y --forcex64 --no-progress
48-
- name: Set OpenSSL dir in env
49-
if: matrix.target.os == 'windows-latest'
47+
shell: bash
5048
run: |
51-
echo 'OPENSSL_DIR=C:\Program Files\OpenSSL-Win64' | Out-File -FilePath $env:GITHUB_ENV -Append
52-
echo 'OPENSSL_DIR=C:\Program Files\OpenSSL' | Out-File -FilePath $env:GITHUB_ENV -Append
49+
set -e
50+
choco install openssl --version=1.1.1.2100 -y --no-progress
51+
echo 'OPENSSL_DIR=C:\Program Files\OpenSSL' >> $GITHUB_ENV
52+
echo "RUSTFLAGS=-C target-feature=+crt-static" >> $GITHUB_ENV
5353
5454
- name: Install Rust (${{ matrix.version }})
5555
uses: actions-rust-lang/[email protected]

.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ jobs:
4646

4747
- name: Install OpenSSL
4848
if: matrix.target.os == 'windows-latest'
49-
run: choco install openssl -y --forcex64 --no-progress
50-
- name: Set OpenSSL dir in env
51-
if: matrix.target.os == 'windows-latest'
49+
shell: bash
5250
run: |
53-
echo 'OPENSSL_DIR=C:\Program Files\OpenSSL-Win64' | Out-File -FilePath $env:GITHUB_ENV -Append
54-
echo 'OPENSSL_DIR=C:\Program Files\OpenSSL' | Out-File -FilePath $env:GITHUB_ENV -Append
51+
set -e
52+
choco install openssl --version=1.1.1.2100 -y --no-progress
53+
echo 'OPENSSL_DIR=C:\Program Files\OpenSSL' >> $GITHUB_ENV
54+
echo "RUSTFLAGS=-C target-feature=+crt-static" >> $GITHUB_ENV
5555
5656
- name: Install Rust (${{ matrix.version.name }})
5757
uses: actions-rust-lang/[email protected]

actix-tls/CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
## 3.3.0
6+
57
- Add `rustls-0_22` create feature which excludes any root certificate methods or re-exports.
68

79
## 3.2.0

actix-tls/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "actix-tls"
3-
version = "3.2.0"
3+
version = "3.3.0"
44
authors = [
55
"Nikolay Kim <[email protected]>",
66
"Rob Ede <[email protected]>",

actix-tls/README.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# `actix-tls`
2+
3+
> TLS acceptor and connector services for the Actix ecosystem.
4+
5+
<!-- prettier-ignore-start -->
6+
7+
[![crates.io](https://img.shields.io/crates/v/actix-tls?label=latest)](https://crates.io/crates/actix-tls)
8+
[![Documentation](https://docs.rs/actix-tls/badge.svg?version=3.3.0)](https://docs.rs/actix-tls/3.3.0)
9+
[![Version](https://img.shields.io/badge/rustc-1.52+-ab6000.svg)](https://blog.rust-lang.org/2021/05/06/Rust-1.52.0.html)
10+
![MIT or Apache 2.0 licensed](https://img.shields.io/crates/l/actix-tls.svg)
11+
<br />
12+
[![Dependency Status](https://deps.rs/crate/actix-tls/3.3.0/status.svg)](https://deps.rs/crate/actix-tls/3.3.0)
13+
![Download](https://img.shields.io/crates/d/actix-tls.svg)
14+
[![Chat on Discord](https://img.shields.io/discord/771444961383153695?label=chat&logo=discord)](https://discord.gg/NWpN5mmg3x)
15+
16+
<!-- prettier-ignore-end -->
17+
18+
## Resources
19+
20+
- [Library Documentation](https://docs.rs/actix-tls)
21+
- [Examples](/actix-tls/examples)

actix-tls/src/connect/rustls_0_22.rs

+6-7
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ use actix_utils::future::{ok, Ready};
1616
use futures_core::ready;
1717
use rustls_pki_types_1::ServerName;
1818
use tokio_rustls::{
19-
client::TlsStream as AsyncTlsStream,
20-
rustls::{ClientConfig, RootCertStore},
21-
Connect as RustlsConnect, TlsConnector as RustlsTlsConnector,
19+
client::TlsStream as AsyncTlsStream, rustls::ClientConfig, Connect as RustlsConnect,
20+
TlsConnector as RustlsTlsConnector,
2221
};
2322
use tokio_rustls_025 as tokio_rustls;
2423

@@ -36,8 +35,8 @@ pub mod reexports {
3635
///
3736
/// See [`rustls_native_certs::load_native_certs()`] for more info on behavior and errors.
3837
#[cfg(feature = "rustls-0_22-native-roots")]
39-
pub fn native_roots_cert_store() -> io::Result<RootCertStore> {
40-
let mut root_certs = RootCertStore::empty();
38+
pub fn native_roots_cert_store() -> io::Result<tokio_rustls::rustls::RootCertStore> {
39+
let mut root_certs = tokio_rustls::rustls::RootCertStore::empty();
4140

4241
for cert in rustls_native_certs_07::load_native_certs()? {
4342
root_certs.add(cert).unwrap();
@@ -48,8 +47,8 @@ pub fn native_roots_cert_store() -> io::Result<RootCertStore> {
4847

4948
/// Returns standard root certificates from `webpki-roots` crate as a rustls certificate store.
5049
#[cfg(feature = "rustls-0_22-webpki-roots")]
51-
pub fn webpki_roots_cert_store() -> RootCertStore {
52-
let mut root_certs = RootCertStore::empty();
50+
pub fn webpki_roots_cert_store() -> tokio_rustls::rustls::RootCertStore {
51+
let mut root_certs = tokio_rustls::rustls::RootCertStore::empty();
5352
root_certs.extend(webpki_roots_026::TLS_SERVER_ROOTS.to_owned());
5453
root_certs
5554
}

0 commit comments

Comments
 (0)