Skip to content

Commit

Permalink
refactor: export reqwest from hitt_request
Browse files Browse the repository at this point in the history
  • Loading branch information
hougesen committed Dec 23, 2023
1 parent 4eb0165 commit a76db39
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion hitt-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ ignore = "0.4.20"
hitt-formatter = { path = "../hitt-formatter" }
hitt-parser = { path = "../hitt-parser" }
hitt-request = { path = "../hitt-request" }
reqwest = "0.11.20"
shell-words = "1.1.0"
tempfile = "3.8.1"
tokio = { version = "1.32.0", features = ["fs", "macros", "rt-multi-thread"] }
2 changes: 1 addition & 1 deletion hitt-cli/src/commands/run.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use hitt_request::send_request;
use hitt_request::{reqwest, send_request};

use crate::{
config::RunCommandArguments,
Expand Down
2 changes: 2 additions & 0 deletions hitt-cli/src/error/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use core::fmt;

use hitt_request::reqwest;

use crate::terminal::{TEXT_RED, TEXT_RESET};

#[derive(Debug)]
Expand Down
2 changes: 2 additions & 0 deletions hitt-cli/src/terminal/headers.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use hitt_request::reqwest;

use crate::terminal::{TEXT_RED, TEXT_RESET, TEXT_YELLOW};

#[inline]
Expand Down
2 changes: 2 additions & 0 deletions hitt-request/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use hitt_parser::{http, HittRequest};

pub use reqwest;

pub struct HittResponse {
pub url: String,
pub method: String,
Expand Down

0 comments on commit a76db39

Please sign in to comment.