1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! # eventsourcingdb
//!
//! The official Rust client SDK for [EventSourcingDB](https://www.eventsourcingdb.io) – a purpose-built database for event sourcing.
//! EventSourcingDB enables you to build and operate event-driven applications with native support for writing, reading, and observing events. This client SDK provides convenient access to its capabilities in Rust.
//! For more information on EventSourcingDB, see its [official documentation](https://docs.eventsourcingdb.io/).
//! This client SDK includes support for [Testcontainers](https://testcontainers.com/) to spin up EventSourcingDB instances in integration tests. For details, see [Using Testcontainers](#using-testcontainers).
//!
//! ## Getting Started
//!
//! Install the client SDK:
//!
//! ```shell
//! cargo add eventsourcingdb
//! ```
//!
//! Import the package and create an instance by providing the URL of your EventSourcingDB instance and the API token to use:
//!
//! ```rust
//! use eventsourcingdb::client::Client;
//! # use url::Url;
//! // ...
//!
//! let base_url: Url = "localhost:3000".parse().unwrap();
//! let api_token = "secret";
//! let client = Client::new(base_url, api_token);
//! ```
//!
//! ## Examples
//!
//! Examples can be found in the [examples](https://github.com/thenativeweb/eventsourcingdb-client-rust/tree/main/examples) directory.
//!
// There is a known bug in clippy:
// https://github.com/rust-lang/rust-clippy/issues/12908
pub use ;
pub use ;