Skip to content

Commit c7b57d0

Browse files
committed
scylla: Remove scylla-macros dependency
Macros are already re-export from scylla_cql, there is no need to complicate the dependency graph.
1 parent 572c4fa commit c7b57d0

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed

Cargo.lock.msrv

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scylla/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ full-serialization = [
4242
unstable-testing = []
4343

4444
[dependencies]
45-
scylla-macros = { version = "0.7.0", path = "../scylla-macros" }
4645
scylla-cql = { version = "0.4.0", path = "../scylla-cql" }
4746
byteorder = "1.3.4"
4847
bytes = "1.0.1"

scylla/src/cluster/metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ use crate::policies::host_filter::HostFilter;
2828
use crate::routing::Token;
2929
use crate::statement::unprepared::Statement;
3030
use crate::utils::parse::{ParseErrorCause, ParseResult, ParserState};
31+
use crate::DeserializeRow;
3132

3233
use futures::future::{self, FutureExt};
3334
use futures::stream::{self, StreamExt, TryStreamExt};
@@ -36,7 +37,6 @@ use itertools::Itertools;
3637
use rand::seq::{IndexedRandom, SliceRandom};
3738
use rand::{rng, Rng};
3839
use scylla_cql::frame::response::result::{ColumnSpec, TableSpec};
39-
use scylla_macros::DeserializeRow;
4040
use std::borrow::BorrowMut;
4141
use std::cell::Cell;
4242
use std::collections::HashMap;

scylla/src/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ pub use scylla_cql::macros::SerializeRow;
331331
/// By default, the generated implementation will try to match the Rust field
332332
/// to a UDT field with the same name. This attribute instead allows to match
333333
/// to a UDT field with provided name.
334-
pub use scylla_macros::DeserializeValue;
334+
pub use scylla_cql::macros::DeserializeValue;
335335

336336
/// Derive macro for the `DeserializeRow` trait that generates an implementation
337337
/// which deserializes a row with a similar layout to the Rust struct.
@@ -446,4 +446,4 @@ pub use scylla_macros::DeserializeValue;
446446
/// By default, the generated implementation will try to match the Rust field
447447
/// to a column with the same name. This attribute allows to match to a column
448448
/// with provided name.
449-
pub use scylla_macros::DeserializeRow;
449+
pub use scylla_cql::macros::DeserializeRow;

scylla/src/observability/tracing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::value::CqlTimestamp;
2+
use crate::DeserializeRow;
23
use itertools::Itertools;
34
use scylla_cql::value::CqlTimeuuid;
4-
use scylla_macros::DeserializeRow;
55
use std::collections::HashMap;
66
use std::net::IpAddr;
77

0 commit comments

Comments
 (0)