Skip to content

Commit

Permalink
frame/response: pub re-export submodules
Browse files Browse the repository at this point in the history
pub re-exported submodules that contain publicly used types.

The submodules re-exported as pub:
- scylla_cql::frame::response::cql_to_rust
- scylla_cql::frame::response::result

The submodules re-exported as pub(crate):
- scylla_cql::frame::response::authenticate
- scylla_cql::frame::response::error
- scylla_cql::frame::response::event
- scylla_cql::frame::response::supported
  • Loading branch information
muzarski committed Feb 15, 2024
1 parent efe0a8a commit 3af511b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scylla/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub use macros::*;

pub mod frame {
pub use scylla_cql::frame::{
frame_errors, protocol_features, response, value, Authenticator, Compression,
frame_errors, protocol_features, value, Authenticator, Compression,
};
pub(crate) use scylla_cql::frame::{
parse_response_body_extensions, read_response_frame, request, server_event_type,
Expand All @@ -116,6 +116,11 @@ pub mod frame {
pub use scylla_cql::frame::types::*;
pub use scylla_cql::frame::types::{Consistency, SerialConsistency};
}

pub mod response {
pub(crate) use scylla_cql::frame::response::*;
pub use scylla_cql::frame::response::{cql_to_rust, result};
}
}

pub use scylla_cql::types::serialize;
Expand Down

0 comments on commit 3af511b

Please sign in to comment.