Skip to content

Commit d0d02f6

Browse files
committed
frame: pub re-export submodules
Pub re-exported the structs of scylla_cql::frame module and its submodules that contain any of the symbols that should be exposed publicly. This means that the following submodules will be private: - scylla_cql::frame::request - scylla_cql::frame::server_event_type - scylla_cql::frame::protocol_features
1 parent a092845 commit d0d02f6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

scylla/src/lib.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,14 @@ pub mod macros;
102102
#[doc(inline)]
103103
pub use macros::*;
104104

105-
pub use scylla_cql::frame;
105+
pub mod frame {
106+
pub use scylla_cql::frame::{frame_errors, response, types, value, Authenticator, Compression};
107+
pub(crate) use scylla_cql::frame::{
108+
parse_response_body_extensions, protocol_features, read_response_frame, request,
109+
server_event_type, FrameParams, SerializedRequest,
110+
};
111+
}
112+
106113
pub use scylla_cql::types::serialize;
107114

108115
pub mod authentication;

scylla/tests/integration/lwt_optimisation.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ use crate::utils::{setup_tracing, test_with_3_node_cluster};
22

33
use scylla::frame::types;
44
use scylla::retry_policy::FallthroughRetryPolicy;
5+
use scylla::test_utils::unique_keyspace_name;
56
use scylla::transport::session::Session;
6-
use scylla::{frame::protocol_features::ProtocolFeatures, test_utils::unique_keyspace_name};
77
use scylla::{ExecutionProfile, SessionBuilder};
8+
use scylla_cql::frame::protocol_features::ProtocolFeatures;
89
use std::sync::Arc;
910
use tokio::sync::mpsc;
1011

0 commit comments

Comments
 (0)