diff --git a/packages/hurl/src/runner/hurl_file.rs b/packages/hurl/src/runner/hurl_file.rs index edceb1a8aeb..738304a0424 100644 --- a/packages/hurl/src/runner/hurl_file.rs +++ b/packages/hurl/src/runner/hurl_file.rs @@ -53,9 +53,8 @@ use super::{Output, entry}; /// use std::collections::HashMap; /// use hurl::http::{CredentialForwarding, FollowLocation}; /// use hurl::runner; -/// use hurl::runner::{Value, RunnerOptionsBuilder, VariableSet}; +/// use hurl::runner::{Input, Value, RunnerOptionsBuilder, VariableSet}; /// use hurl::util::logger::{LoggerOptionsBuilder, Verbosity}; -/// use hurl_core::input::Input; /// /// // A simple Hurl sample /// let content = r#" diff --git a/packages/hurl/src/runner/mod.rs b/packages/hurl/src/runner/mod.rs index 021543c3a78..4b0ba60a78b 100644 --- a/packages/hurl/src/runner/mod.rs +++ b/packages/hurl/src/runner/mod.rs @@ -22,6 +22,8 @@ pub use self::error::{RunnerError, RunnerErrorKind}; #[doc(hidden)] pub use self::event::EventListener; pub use self::http_response::HttpResponse; +// Re-exported so clients of the `hurl` crate can build the `Input` required by [`run`] without +// having to also depend on the `hurl_core` crate. pub use self::hurl_file::run; #[doc(hidden)] pub use self::hurl_file::run_entries; @@ -31,6 +33,7 @@ pub use self::result::{AssertResult, CaptureResult, EntryResult, HurlResult}; pub use self::runner_options::{RunnerOptions, RunnerOptionsBuilder}; pub use self::value::{EvalError, Value}; pub use self::variable::{Variable, VariableSet, Visibility}; +pub use hurl_core::input::{Input, InputKind}; mod assert; mod body;