1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-12-10 01:01:09 +03:00

Remove the dependency on reqwest in the iana-codegen crate

This commit is contained in:
Quentin Gliech
2023-04-18 20:21:58 +02:00
parent 4baa15bbd3
commit 5f54965d80
8 changed files with 46 additions and 36 deletions

View File

@@ -19,10 +19,11 @@
use std::{collections::HashMap, fmt::Display, sync::Arc};
use camino::{Utf8Path, Utf8PathBuf};
use reqwest::Client;
use tokio::io::AsyncWriteExt;
use tracing::Level;
type Client = hyper::Client<hyper::client::HttpConnector>;
mod gen;
pub mod jose;
pub mod oauth;
@@ -208,7 +209,7 @@ async fn main() -> anyhow::Result<()> {
.pretty()
.init();
let client = Client::builder().user_agent("iana-parser/0.0.1").build()?;
let client = Client::new();
let client = Arc::new(client);
let iana_crate_root = Utf8Path::new("crates/iana/");