Skip to content

Commit

Permalink
Exported When and Then structures.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexliesenfeld committed Aug 13, 2021
1 parent 8d828f8 commit 5cd795c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## Version 0.6.2
- A bug was fixed that has unexported the [When](https://docs.rs/httpmock/0.5.8/httpmock/struct.When.html) and
[Then](https://docs.rs/httpmock/0.5.8/httpmock/struct.When.html) structures. Both types are now exported again.
Please refer to https://github.com/alexliesenfeld/httpmock/issues/47 for more info.

## Version 0.6.1
- This is a maintenance release that updates all dependencies to the most recent version.

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "httpmock"
version = "0.6.2-alpha.0"
version = "0.6.2"
authors = ["Alexander Liesenfeld <[email protected]>"]
edition = "2018"
description = "HTTP mocking library for Rust"
Expand Down
1 change: 1 addition & 0 deletions src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pub use adapter::{
};
pub use mock::{Mock, MockExt};
pub use server::MockServer;
pub use spec::{When, Then};

mod adapter;
mod mock;
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,11 @@ use serde_json::Value;
use tokio::task::LocalSet;
use tokio::time::Duration;

use api::spec::{Then, When};
use api::MockServerAdapter;
use common::util::Join;

use api::{LocalMockServerAdapter, RemoteMockServerAdapter};
pub use api::{Method, Mock, MockExt, MockServer, Regex};
pub use api::{Method, Mock, MockExt, MockServer, Regex, When, Then};
use server::{start_server, MockServerState};

mod api;
Expand Down

0 comments on commit 5cd795c

Please sign in to comment.