Skip to content

Commit eea520c

Browse files
committed
scylla_macros: Fix broken links
Previous links worked locally for both scylla and scylla-cql, but on docs.rs they only worked for scylla-cql. This is because on docs.rs you have only docs for a single crate, so we can't refer to scylla-cql from scylla. Fortunately we don't need to refer to it, because scylla re-export all of those items.
1 parent 37ab977 commit eea520c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

scylla-macros/src/lib.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl FromMeta for Flavor {
4242

4343
mod serialize;
4444

45-
/// Derive macro for the [`SerializeValue`](../scylla_cql/serialize/value/trait.SerializeValue.html) trait
45+
/// Derive macro for the [`SerializeValue`](./serialize/value/trait.SerializeValue.html) trait
4646
/// which serializes given Rust structure as a User Defined Type (UDT).
4747
///
4848
/// At the moment, only structs with named fields are supported.
@@ -61,8 +61,8 @@ mod serialize;
6161
/// This behavior is the default to support ALTERing UDTs by adding new fields.
6262
/// You can forbid excess fields in the UDT using `forbid_excess_udt_fields` attribute.
6363
///
64-
/// In case of failure, either [`BuiltinTypeCheckError`](../scylla_cql/serialize/value/struct.BuiltinTypeCheckError.html)
65-
/// or [`BuiltinSerializationError`](../scylla_cql/serialize/value/struct.BuiltinSerializationError.html)
64+
/// In case of failure, either [`BuiltinTypeCheckError`](./serialize/value/struct.BuiltinTypeCheckError.html)
65+
/// or [`BuiltinSerializationError`](./serialize/value/struct.BuiltinSerializationError.html)
6666
/// will be returned.
6767
///
6868
/// # Example
@@ -106,7 +106,7 @@ mod serialize;
106106
///
107107
/// By default, the code generated by the derive macro will refer to the items
108108
/// defined by the driver (types, traits, etc.) via the `::scylla` path.
109-
/// For example, it will refer to the [`SerializeValue`](../scylla_cql/serialize/value/trait.SerializeValue.html) trait
109+
/// For example, it will refer to the [`SerializeValue`](./serialize/value/trait.SerializeValue.html) trait
110110
/// using the following path:
111111
///
112112
/// ```rust
@@ -158,16 +158,16 @@ pub fn serialize_value_derive(tokens_input: TokenStream) -> TokenStream {
158158
}
159159
}
160160

161-
/// Derive macro for the [`SerializeRow`](../scylla_cql/serialize/row/trait.SerializeRow.html) trait
161+
/// Derive macro for the [`SerializeRow`](./serialize/row/trait.SerializeRow.html) trait
162162
/// which serializes given Rust structure into bind markers for a CQL statement.
163163
///
164164
/// At the moment, only structs with named fields are supported.
165165
///
166166
/// Serialization will fail if there are some bind markers/columns in the statement
167167
/// that don't match to any of the Rust struct fields, _or vice versa_.
168168
///
169-
/// In case of failure, either [`BuiltinTypeCheckError`](../scylla_cql/serialize/row/struct.BuiltinTypeCheckError.html)
170-
/// or [`BuiltinSerializationError`](../scylla_cql/serialize/row/struct.BuiltinSerializationError.html)
169+
/// In case of failure, either [`BuiltinTypeCheckError`](./serialize/row/struct.BuiltinTypeCheckError.html)
170+
/// or [`BuiltinSerializationError`](./serialize/row/struct.BuiltinSerializationError.html)
171171
/// will be returned.
172172
///
173173
/// # Example
@@ -213,7 +213,7 @@ pub fn serialize_value_derive(tokens_input: TokenStream) -> TokenStream {
213213
///
214214
/// By default, the code generated by the derive macro will refer to the items
215215
/// defined by the driver (types, traits, etc.) via the `::scylla` path.
216-
/// For example, it will refer to the [`SerializeRow`](../scylla_cql/serialize/row/trait.SerializeRow.html) trait
216+
/// For example, it will refer to the [`SerializeRow`](./serialize/row/trait.SerializeRow.html) trait
217217
/// using the following path:
218218
///
219219
/// ```rust
@@ -263,7 +263,7 @@ pub fn serialize_row_derive(tokens_input: TokenStream) -> TokenStream {
263263

264264
mod deserialize;
265265

266-
/// Derive macro for the [`DeserializeRow`](../scylla_cql/deserialize/row/trait.DeserializeRow.html)
266+
/// Derive macro for the [`DeserializeRow`](./deserialize/row/trait.DeserializeRow.html)
267267
/// trait that generates an implementation which deserializes a row with
268268
/// a similar layout to the Rust struct.
269269
///
@@ -320,7 +320,7 @@ mod deserialize;
320320
///
321321
/// By default, the code generated by the derive macro will refer to the items
322322
/// defined by the driver (types, traits, etc.) via the `::scylla` path.
323-
/// For example, it will refer to the [`DeserializeValue`](../scylla_cql/deserialize/value/trait.DeserializeValue.html)
323+
/// For example, it will refer to the [`DeserializeValue`](./deserialize/value/trait.DeserializeValue.html)
324324
/// trait using the following path:
325325
///
326326
/// ```rust
@@ -385,7 +385,7 @@ pub fn deserialize_row_derive(tokens_input: TokenStream) -> TokenStream {
385385
}
386386
}
387387

388-
/// Derive macro for the [`DeserializeValue`](../scylla_cql/deserialize/value/trait.DeserializeValue.html)
388+
/// Derive macro for the [`DeserializeValue`](./deserialize/value/trait.DeserializeValue.html)
389389
/// trait that generates an implementation which deserializes a User Defined Type
390390
/// with the same layout as the Rust struct.
391391
///
@@ -427,7 +427,7 @@ pub fn deserialize_row_derive(tokens_input: TokenStream) -> TokenStream {
427427
///
428428
/// By default, the code generated by the derive macro will refer to the items
429429
/// defined by the driver (types, traits, etc.) via the `::scylla` path.
430-
/// For example, it will refer to the [`DeserializeValue`](../scylla_cql/deserialize/value/trait.DeserializeValue.html)
430+
/// For example, it will refer to the [`DeserializeValue`](./deserialize/value/trait.DeserializeValue.html)
431431
/// trait using the following path:
432432
///
433433
/// ```rust

0 commit comments

Comments
 (0)