Skip to content

Commit 60392ed

Browse files
committed
scylla: create macros module
This will be required to move documentation of serialization macros into scylla crate. This in turn is required to workaround the issue that documentation for those macros is not rendered on docs.rs correctly.
1 parent befa148 commit 60392ed

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

scylla/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@ pub mod _macro_internal {
9898
pub use scylla_cql::_macro_internal::*;
9999
}
100100

101+
pub mod macros;
102+
pub use macros::*;
103+
101104
pub use scylla_cql::frame;
102-
pub use scylla_cql::macros::{self, *};
103105
pub use scylla_cql::types::serialize;
104106

105107
pub mod authentication;

scylla/src/macros.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
pub use scylla_cql::macros::FromRow;
2+
pub use scylla_cql::macros::FromUserType;
3+
pub use scylla_cql::macros::IntoUserType;
4+
pub use scylla_cql::macros::SerializeCql;
5+
pub use scylla_cql::macros::SerializeRow;
6+
pub use scylla_cql::macros::ValueList;
7+
8+
pub use scylla_cql::macros::impl_from_cql_value_from_method;
9+
10+
// Reexports for derive(IntoUserType)
11+
pub use bytes::{BufMut, Bytes, BytesMut};

0 commit comments

Comments
 (0)