From fe5eeefa732c2da68ecd3dde77ad0a7b6d554544 Mon Sep 17 00:00:00 2001 From: avi Date: Sat, 17 Jun 2023 15:32:50 -0700 Subject: [PATCH 1/2] make cluster and commands public --- aerospike-core/src/client.rs | 2 +- aerospike-core/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aerospike-core/src/client.rs b/aerospike-core/src/client.rs index f9e0751d..4866bfd6 100644 --- a/aerospike-core/src/client.rs +++ b/aerospike-core/src/client.rs @@ -53,7 +53,7 @@ use futures::AsyncReadExt; /// "single-bin". In "multi-bin" mode, partial records may be written or read by specifying the /// relevant subset of bins. pub struct Client { - cluster: Arc, + pub cluster: Arc, } unsafe impl Send for Client {} diff --git a/aerospike-core/src/lib.rs b/aerospike-core/src/lib.rs index 1a98c3f7..c8694ad0 100644 --- a/aerospike-core/src/lib.rs +++ b/aerospike-core/src/lib.rs @@ -152,7 +152,7 @@ pub use batch::BatchRead; pub use bin::{Bin, Bins}; pub use client::Client; pub use cluster::Node; -pub use commands::particle_type::ParticleType; +pub use commands::{self, particle_type::ParticleType}; pub use errors::{Error, ErrorKind, Result}; pub use expressions::regex_flag::RegexFlag; pub use key::Key; From 2ea3af72116b2ec61d110f4381a50f70c6391902 Mon Sep 17 00:00:00 2001 From: avi Date: Sat, 17 Jun 2023 15:54:18 -0700 Subject: [PATCH 2/2] fix mod --- aerospike-core/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aerospike-core/src/lib.rs b/aerospike-core/src/lib.rs index c8694ad0..7e4da31b 100644 --- a/aerospike-core/src/lib.rs +++ b/aerospike-core/src/lib.rs @@ -152,7 +152,7 @@ pub use batch::BatchRead; pub use bin::{Bin, Bins}; pub use client::Client; pub use cluster::Node; -pub use commands::{self, particle_type::ParticleType}; +pub use commands::{particle_type::ParticleType}; pub use errors::{Error, ErrorKind, Result}; pub use expressions::regex_flag::RegexFlag; pub use key::Key; @@ -182,7 +182,7 @@ mod key; mod batch; mod client; mod cluster; -mod commands; +pub mod commands; pub mod expressions; mod msgpack; mod net;