mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-24 00:01:11 +01:00
chore(actix-tls): prepare release 3.3.0 (#530)
This commit is contained in:
parent
9a3f3eef6a
commit
57fd6ea809
10
.github/workflows/ci-post-merge.yml
vendored
10
.github/workflows/ci-post-merge.yml
vendored
@ -44,12 +44,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Install OpenSSL
|
- name: Install OpenSSL
|
||||||
if: matrix.target.os == 'windows-latest'
|
if: matrix.target.os == 'windows-latest'
|
||||||
run: choco install openssl -y --forcex64 --no-progress
|
shell: bash
|
||||||
- name: Set OpenSSL dir in env
|
|
||||||
if: matrix.target.os == 'windows-latest'
|
|
||||||
run: |
|
run: |
|
||||||
echo 'OPENSSL_DIR=C:\Program Files\OpenSSL-Win64' | Out-File -FilePath $env:GITHUB_ENV -Append
|
set -e
|
||||||
echo 'OPENSSL_DIR=C:\Program Files\OpenSSL' | Out-File -FilePath $env:GITHUB_ENV -Append
|
choco install openssl --version=1.1.1.2100 -y --no-progress
|
||||||
|
echo 'OPENSSL_DIR=C:\Program Files\OpenSSL' >> $GITHUB_ENV
|
||||||
|
echo "RUSTFLAGS=-C target-feature=+crt-static" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Install Rust (${{ matrix.version }})
|
- name: Install Rust (${{ matrix.version }})
|
||||||
uses: actions-rust-lang/setup-rust-toolchain@v1.8.0
|
uses: actions-rust-lang/setup-rust-toolchain@v1.8.0
|
||||||
|
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -46,12 +46,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Install OpenSSL
|
- name: Install OpenSSL
|
||||||
if: matrix.target.os == 'windows-latest'
|
if: matrix.target.os == 'windows-latest'
|
||||||
run: choco install openssl -y --forcex64 --no-progress
|
shell: bash
|
||||||
- name: Set OpenSSL dir in env
|
|
||||||
if: matrix.target.os == 'windows-latest'
|
|
||||||
run: |
|
run: |
|
||||||
echo 'OPENSSL_DIR=C:\Program Files\OpenSSL-Win64' | Out-File -FilePath $env:GITHUB_ENV -Append
|
set -e
|
||||||
echo 'OPENSSL_DIR=C:\Program Files\OpenSSL' | Out-File -FilePath $env:GITHUB_ENV -Append
|
choco install openssl --version=1.1.1.2100 -y --no-progress
|
||||||
|
echo 'OPENSSL_DIR=C:\Program Files\OpenSSL' >> $GITHUB_ENV
|
||||||
|
echo "RUSTFLAGS=-C target-feature=+crt-static" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Install Rust (${{ matrix.version.name }})
|
- name: Install Rust (${{ matrix.version.name }})
|
||||||
uses: actions-rust-lang/setup-rust-toolchain@v1.8.0
|
uses: actions-rust-lang/setup-rust-toolchain@v1.8.0
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
## 3.3.0
|
||||||
|
|
||||||
- Add `rustls-0_22` create feature which excludes any root certificate methods or re-exports.
|
- Add `rustls-0_22` create feature which excludes any root certificate methods or re-exports.
|
||||||
|
|
||||||
## 3.2.0
|
## 3.2.0
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "actix-tls"
|
name = "actix-tls"
|
||||||
version = "3.2.0"
|
version = "3.3.0"
|
||||||
authors = [
|
authors = [
|
||||||
"Nikolay Kim <fafhrd91@gmail.com>",
|
"Nikolay Kim <fafhrd91@gmail.com>",
|
||||||
"Rob Ede <robjtede@icloud.com>",
|
"Rob Ede <robjtede@icloud.com>",
|
||||||
|
21
actix-tls/README.md
Normal file
21
actix-tls/README.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# `actix-tls`
|
||||||
|
|
||||||
|
> TLS acceptor and connector services for the Actix ecosystem.
|
||||||
|
|
||||||
|
<!-- prettier-ignore-start -->
|
||||||
|
|
||||||
|
[![crates.io](https://img.shields.io/crates/v/actix-tls?label=latest)](https://crates.io/crates/actix-tls)
|
||||||
|
[![Documentation](https://docs.rs/actix-tls/badge.svg?version=3.3.0)](https://docs.rs/actix-tls/3.3.0)
|
||||||
|
[![Version](https://img.shields.io/badge/rustc-1.52+-ab6000.svg)](https://blog.rust-lang.org/2021/05/06/Rust-1.52.0.html)
|
||||||
|
![MIT or Apache 2.0 licensed](https://img.shields.io/crates/l/actix-tls.svg)
|
||||||
|
<br />
|
||||||
|
[![Dependency Status](https://deps.rs/crate/actix-tls/3.3.0/status.svg)](https://deps.rs/crate/actix-tls/3.3.0)
|
||||||
|
![Download](https://img.shields.io/crates/d/actix-tls.svg)
|
||||||
|
[![Chat on Discord](https://img.shields.io/discord/771444961383153695?label=chat&logo=discord)](https://discord.gg/NWpN5mmg3x)
|
||||||
|
|
||||||
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
|
## Resources
|
||||||
|
|
||||||
|
- [Library Documentation](https://docs.rs/actix-tls)
|
||||||
|
- [Examples](/actix-tls/examples)
|
@ -16,9 +16,8 @@ use actix_utils::future::{ok, Ready};
|
|||||||
use futures_core::ready;
|
use futures_core::ready;
|
||||||
use rustls_pki_types_1::ServerName;
|
use rustls_pki_types_1::ServerName;
|
||||||
use tokio_rustls::{
|
use tokio_rustls::{
|
||||||
client::TlsStream as AsyncTlsStream,
|
client::TlsStream as AsyncTlsStream, rustls::ClientConfig, Connect as RustlsConnect,
|
||||||
rustls::{ClientConfig, RootCertStore},
|
TlsConnector as RustlsTlsConnector,
|
||||||
Connect as RustlsConnect, TlsConnector as RustlsTlsConnector,
|
|
||||||
};
|
};
|
||||||
use tokio_rustls_025 as tokio_rustls;
|
use tokio_rustls_025 as tokio_rustls;
|
||||||
|
|
||||||
@ -36,8 +35,8 @@ pub mod reexports {
|
|||||||
///
|
///
|
||||||
/// See [`rustls_native_certs::load_native_certs()`] for more info on behavior and errors.
|
/// See [`rustls_native_certs::load_native_certs()`] for more info on behavior and errors.
|
||||||
#[cfg(feature = "rustls-0_22-native-roots")]
|
#[cfg(feature = "rustls-0_22-native-roots")]
|
||||||
pub fn native_roots_cert_store() -> io::Result<RootCertStore> {
|
pub fn native_roots_cert_store() -> io::Result<tokio_rustls::rustls::RootCertStore> {
|
||||||
let mut root_certs = RootCertStore::empty();
|
let mut root_certs = tokio_rustls::rustls::RootCertStore::empty();
|
||||||
|
|
||||||
for cert in rustls_native_certs_07::load_native_certs()? {
|
for cert in rustls_native_certs_07::load_native_certs()? {
|
||||||
root_certs.add(cert).unwrap();
|
root_certs.add(cert).unwrap();
|
||||||
@ -48,8 +47,8 @@ pub fn native_roots_cert_store() -> io::Result<RootCertStore> {
|
|||||||
|
|
||||||
/// Returns standard root certificates from `webpki-roots` crate as a rustls certificate store.
|
/// Returns standard root certificates from `webpki-roots` crate as a rustls certificate store.
|
||||||
#[cfg(feature = "rustls-0_22-webpki-roots")]
|
#[cfg(feature = "rustls-0_22-webpki-roots")]
|
||||||
pub fn webpki_roots_cert_store() -> RootCertStore {
|
pub fn webpki_roots_cert_store() -> tokio_rustls::rustls::RootCertStore {
|
||||||
let mut root_certs = RootCertStore::empty();
|
let mut root_certs = tokio_rustls::rustls::RootCertStore::empty();
|
||||||
root_certs.extend(webpki_roots_026::TLS_SERVER_ROOTS.to_owned());
|
root_certs.extend(webpki_roots_026::TLS_SERVER_ROOTS.to_owned());
|
||||||
root_certs
|
root_certs
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user