update readme badge

This commit is contained in:
Jun Kurihara 2022-07-26 15:59:56 +09:00
commit 3246f1014b
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
6 changed files with 47 additions and 4 deletions

21
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: Unit Test
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run unit tests
run: |
cargo test --verbose

17
.github/workflows/shift_left.yml vendored Normal file
View file

@ -0,0 +1,17 @@
name: ShiftLeft Scan
on: push
jobs:
Scan-Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Perform ShiftLeft Scan
uses: ShiftLeftSecurity/scan-action@master
env:
WORKSPACE: ""
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
output: reports

View file

@ -18,7 +18,7 @@ http3 = ["quinn", "h3", "h3-quinn"]
[dependencies]
env_logger = "0.9.0"
anyhow = "1.0.58"
clap = { version = "3.2.13", features = ["std", "cargo", "wrap_help"] }
clap = { version = "3.2.15", features = ["std", "cargo", "wrap_help"] }
futures = { version = "0.3.21", features = ["alloc", "async-await"] }
hyper = { version = "0.14.20", default-features = false, features = [
"server",
@ -27,7 +27,7 @@ hyper = { version = "0.14.20", default-features = false, features = [
"stream",
] }
log = "0.4.17"
tokio = { version = "1.20.0", default-features = false, features = [
tokio = { version = "1.20.1", default-features = false, features = [
"net",
"rt-multi-thread",
"parking_lot",

View file

@ -1,5 +1,10 @@
# rpxy: A simple and ultrafast reverse-proxy for multiple host names with TLS termination, written in pure Rust
![Unit Test](https://github.com/junkurihara/rust-rpxy/actions/workflows/ci.yml/badge.svg)
![Build and Publish Docker](https://github.com/junkurihara/rust-rpxy/actions/workflows/docker_build_push.yml/badge.svg)
![ShiftLeft Scan](https://github.com/junkurihara/rust-rpxy/actions/workflows/shift_left.yml/badge.svg)
**WIP Project**
## Introduction

View file

@ -218,7 +218,7 @@ where
}
#[allow(clippy::too_many_arguments)]
fn generate_request_forwarded<B: core::fmt::Debug>(
fn generate_request_forwarded<B>(
&self,
client_addr: &SocketAddr,
listen_addr: &SocketAddr,

View file

@ -9,7 +9,7 @@ use tokio::{
time::{timeout, Duration},
};
#[derive(Clone, Debug)]
#[derive(Clone)]
pub struct LocalExecutor {
runtime_handle: Handle,
}