Update README
This commit is contained in:
parent
e961616b17
commit
926dd17892
@ -1,4 +1,5 @@
|
||||
[workspace]
|
||||
members = [
|
||||
"tokio-native-tls"
|
||||
"tokio-native-tls",
|
||||
"tokio-rustls"
|
||||
]
|
||||
|
4
tokio-rustls/.github/actions-rs/grcov.yml
vendored
4
tokio-rustls/.github/actions-rs/grcov.yml
vendored
@ -1,4 +0,0 @@
|
||||
branch: true
|
||||
llvm: true
|
||||
output-type: lcov
|
||||
output-file: ./lcov.info
|
45
tokio-rustls/.github/workflows/ci.yml
vendored
45
tokio-rustls/.github/workflows/ci.yml
vendored
@ -1,45 +0,0 @@
|
||||
name: Rust
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
profile: minimal
|
||||
override: true
|
||||
|
||||
- uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.cargo
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
|
||||
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: --features early-data,unstable
|
||||
env:
|
||||
'CARGO_INCREMENTAL': '0'
|
||||
'RUSTFLAGS': '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads'
|
||||
|
||||
- name: Check
|
||||
run: |
|
||||
cd examples/client
|
||||
cargo check
|
||||
cd ../server
|
||||
cargo check
|
||||
|
||||
- id: grcov
|
||||
uses: actions-rs/grcov@v0.1
|
||||
|
||||
- name: Update Codecov
|
||||
uses: codecov/codecov-action@v1
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
file: ${{ steps.grcov.outputs.report }}
|
2
tokio-rustls/.gitignore
vendored
2
tokio-rustls/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
target
|
||||
Cargo.lock
|
@ -3,17 +3,14 @@ name = "tokio-rustls"
|
||||
version = "0.12.2"
|
||||
authors = ["quininer kel <quininer@live.com>"]
|
||||
license = "MIT/Apache-2.0"
|
||||
repository = "https://github.com/quininer/tokio-rustls"
|
||||
homepage = "https://github.com/quininer/tokio-rustls"
|
||||
repository = "https://github.com/tokio-rs/tls"
|
||||
homepage = "https://github.com/tokio-rs/tls"
|
||||
documentation = "https://docs.rs/tokio-rustls"
|
||||
readme = "README.md"
|
||||
description = "Asynchronous TLS/SSL streams for Tokio using Rustls."
|
||||
categories = ["asynchronous", "cryptography", "network-programming"]
|
||||
edition = "2018"
|
||||
|
||||
[badges]
|
||||
github-actions = { repository = "quininer/tokio-rustls", workflow = "Rust" }
|
||||
|
||||
[dependencies]
|
||||
tokio = "0.2.0"
|
||||
futures-core = "0.3.1"
|
||||
|
@ -1,9 +1,8 @@
|
||||
# tokio-rustls
|
||||
[![github actions](https://github.com/quininer/tokio-rustls/workflows/Rust/badge.svg)](https://github.com/quininer/tokio-rustls/actions)
|
||||
[![codecov](https://codecov.io/gh/quininer/tokio-rustls/branch/master/graph/badge.svg)](https://codecov.io/gh/quininer/tokio-rustls)
|
||||
[![github actions](https://github.com/tokio-rs/tls/workflows/Rust/badge.svg)](https://github.com/tokio-rs/tls/actions)
|
||||
[![crates](https://img.shields.io/crates/v/tokio-rustls.svg)](https://crates.io/crates/tokio-rustls)
|
||||
[![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/quininer/tokio-rustls/blob/master/LICENSE-MIT)
|
||||
[![license](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/quininer/tokio-rustls/blob/master/LICENSE-APACHE)
|
||||
[![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/tokio-rs/tls/blob/master/tokio-rustls/LICENSE-MIT)
|
||||
[![license](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/tokio-rs/tls/blob/master/tokio-rustls/LICENSE-APACHE)
|
||||
[![docs.rs](https://docs.rs/tokio-rustls/badge.svg)](https://docs.rs/tokio-rustls/)
|
||||
|
||||
Asynchronous TLS/SSL streams for [Tokio](https://tokio.rs/) using
|
||||
|
@ -97,24 +97,12 @@ async fn test_0rtt() -> io::Result<()> {
|
||||
let stdout = handle.0.stdout.as_mut().unwrap();
|
||||
let mut lines = BufReader::new(stdout).lines();
|
||||
|
||||
let mut f1 = false;
|
||||
let mut f2 = false;
|
||||
let has_msg1 = lines.by_ref()
|
||||
.any(|line| line.unwrap().contains("hello"));
|
||||
let has_msg2 = lines.by_ref()
|
||||
.any(|line| line.unwrap().contains("world!"));
|
||||
|
||||
for line in lines.by_ref() {
|
||||
if line?.contains("hello") {
|
||||
f1 = true;
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
for line in lines.by_ref() {
|
||||
if line?.contains("world!") {
|
||||
f2 = true;
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
assert!(f1 && f2);
|
||||
assert!(has_msg1 && has_msg2);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user