cargo_fixture/lib.rs
1#![deny(missing_docs)]
2
3//! This is an accompanying library for the [`cargo fixture`](https://github.com/vojtechkral/cargo-fixture) cargo extension.
4//!
5//! The library provides two main types:
6//! - [`FixtureClient`] – to be used from fixture code
7//! - [`TestClient`] – to be used from test code
8//!
9//! The [`with_fixture`] macros is provided as well for easy fixture tests definition.
10//!
11//! ## Features
12//! The library supports the following async runtimes, selectable with a feature of the same name:
13//! - [`tokio`](https://tokio.rs/)
14//! - [`smol`](https://docs.rs/smol)
15//!
16//! You have to activate exactly one of these features to use the library.
17
18mod client_fixture;
19mod client_test;
20pub mod error;
21#[doc(hidden)]
22pub mod rpc_socket;
23
24pub use cargo_fixture_macros::with_fixture;
25pub use client_fixture::FixtureClient;
26pub use client_test::TestClient;
27pub use error::{Error, Result};