mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-27 15:42:57 +01:00
workaround env-logger msrv
This commit is contained in:
parent
7e47bf4055
commit
d7afd60606
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -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 }
|
||||
|
@ -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"] }
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user