Skip to content

Commit 5b575b1

Browse files
committed
Release v2.0.0.
1 parent a4047f3 commit 5b575b1

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,12 @@ pub(crate) mod google {
7777
}
7878
}
7979

80+
pub use batch::*;
8081
pub use client::Client;
8182
pub use commands::{PersistentSubscription, ReadStream, Subscription};
8283
pub use grpc::{ClientSettings, ClientSettingsParseError};
8384
pub use options::append_to_stream::*;
85+
pub use options::batch_append::*;
8486
pub use options::delete_stream::*;
8587
pub use options::persistent_subscription::*;
8688
pub use options::projections::*;
@@ -94,10 +96,12 @@ pub use projection_client::*;
9496
pub use types::*;
9597

9698
pub mod prelude {
99+
pub use crate::batch::*;
97100
pub use crate::client::Client;
98101
pub use crate::commands::{PersistentSubscription, ReadStream, Subscription};
99102
pub use crate::grpc::{ClientSettings, ClientSettingsParseError};
100103
pub use crate::options::append_to_stream::*;
104+
pub use crate::options::batch_append::*;
101105
pub use crate::options::delete_stream::*;
102106
pub use crate::options::persistent_subscription::*;
103107
pub use crate::options::projections::*;

src/options/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ pub(crate) enum OperationKind {
4545
// TODO - Use procedural macros instead. It will need a separate crate
4646
// though.
4747
#[macro_export]
48+
#[doc(hidden)]
4849
macro_rules! impl_options_trait {
4950
($typ:ty $(,$kind:expr)?) => {
5051
impl crate::options::Options for $typ {

src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ impl std::fmt::Display for WrongExpectedVersion {
13471347
impl std::error::Error for WrongExpectedVersion {}
13481348

13491349
#[derive(Debug, Clone, Eq, Ord, PartialOrd, PartialEq, Serialize, Deserialize)]
1350-
pub struct Endpoint {
1350+
pub(crate) struct Endpoint {
13511351
pub host: String,
13521352
pub port: u32,
13531353
}
@@ -1619,7 +1619,7 @@ impl Default for PersistentSubscriptionStats {
16191619

16201620
#[derive(Debug, Clone, Serialize, Deserialize)]
16211621
#[serde(rename_all = "camelCase")]
1622-
pub struct PersistentSubscriptionConfig {
1622+
pub(crate) struct PersistentSubscriptionConfig {
16231623
pub resolve_linktos: bool,
16241624
pub start_from: StreamPosition<RevisionOrPosition>,
16251625
#[serde(default)]

0 commit comments

Comments
 (0)