1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-23 21:51:06 +01:00

workaround env-logger msrv

This commit is contained in:
Rob Ede 2022-12-21 21:17:21 +00:00
parent 7e47bf4055
commit d7afd60606
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
3 changed files with 9 additions and 3 deletions

View File

@ -76,6 +76,13 @@ jobs:
if: matrix.version == '1.59.0'
run: cargo install cargo-hack --version=0.5.21
- name: workaround MSRV issues
if: matrix.version == 'stable'
run: |
cargo install cargo-edit --version=0.8.0
cargo add env_logger@0.9 --dev -p=actix-tls
cargo add env_logger@0.9 --dev -p=actix-server
- name: Generate Cargo.lock
uses: actions-rs/cargo@v1
with: { command: generate-lockfile }

View File

@ -44,6 +44,6 @@ actix-codec = "0.5"
actix-rt = "2.8"
bytes = "1"
env_logger = "0.9"
env_logger = "0.10"
futures-util = { version = "0.3.17", default-features = false, features = ["sink", "async-await-macro"] }
tokio = { version = "1.13.1", features = ["io-util", "rt-multi-thread", "macros", "fs"] }

View File

@ -41,8 +41,7 @@ use tracing::info;
#[actix_rt::main]
async fn main() -> io::Result<()> {
env::set_var("RUST_LOG", "info");
env_logger::init();
env_logger::init_from_env(env_logger::Env::default().default_filter_or("info"));
// Load TLS key and cert files
let cert_file = &mut BufReader::new(File::open("./examples/cert.pem").unwrap());