chore(awc): fix the issue where the code in the awc example cannot run

This commit is contained in:
piperck 2024-07-01 11:38:03 +08:00
parent 9f45be03e1
commit c538ff8f62
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
use std::error::Error as StdError;
#[tokio::main]
/// If we want to make requests to addresses starting with `https`, we need to enable the rustls feature of awc
/// `awc = { version = "3.5.0", features = ["rustls"] }`
#[actix_rt::main]
async fn main() -> Result<(), Box<dyn StdError>> {
env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));