Skip to content

Commit

Permalink
frame/types: re-export pub types
Browse files Browse the repository at this point in the history
Re-exported the Consistency and SerialConsistency types.

Unfortunately, the util functions such as `read/write_bytes` have to be
re-exported as `pub` (instead of `pub(crate)`), since they are used
in integration tests and benchmarks. I added `#[doc(hidden)]` proc macro
for these functions so they do not appear in the documentation.
  • Loading branch information
muzarski committed Feb 15, 2024
1 parent 78c0c33 commit efe0a8a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scylla/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,18 @@ pub use macros::*;

pub mod frame {
pub use scylla_cql::frame::{
frame_errors, protocol_features, response, types, value, Authenticator, Compression,
frame_errors, protocol_features, response, value, Authenticator, Compression,
};
pub(crate) use scylla_cql::frame::{
parse_response_body_extensions, read_response_frame, request, server_event_type,
FrameParams, SerializedRequest,
};

pub mod types {
#[doc(hidden)]
pub use scylla_cql::frame::types::*;
pub use scylla_cql::frame::types::{Consistency, SerialConsistency};
}
}

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

0 comments on commit efe0a8a

Please sign in to comment.