You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// println!("impl Reader for {} called!\n-> {}", stringify!(#struct_name), stringify!(#reader));
210
210
#reader
211
211
Ok(Self(
@@ -218,7 +218,7 @@ pub(crate) fn derive_struct(
218
218
Fields::Unit => {
219
219
error_stream.append_all(syn::Error::new_spanned(
220
220
ast_ctx.0,
221
-
"Unit structs are not supported by binary_utils because they have no fields to parse or write.\nThis may change in the future, but for now, please use the skip attribute."
221
+
"Unit structs are not supported by binary_util because they have no fields to parse or write.\nThis may change in the future, but for now, please use the skip attribute."
Copy file name to clipboardExpand all lines: codegen/src/lib.rs
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,13 @@ mod legacy;
7
7
/// **DEPRECATED**.
8
8
/// This is a legacy proc-macro that is used to generate a BufferStream.
9
9
/// It provides an easy way to implement the `Streamable` trait.
10
-
/// > ⚠️ This proc-macro has been deprecated since `0.3.0` in favor of `binary_utils::interfaces::Reader` and `binary_utils::interfaces::Writer` and will be removed in `0.4.0`.
10
+
/// > ⚠️ This proc-macro has been deprecated since `0.3.0` in favor of `binary_util::interfaces::Reader` and `binary_util::interfaces::Writer` and will be removed in `0.4.0`.
11
11
///
12
12
/// This proc-macro automatically implements the `Streamable` trait for the struct or enum it is applied to.
13
13
///
14
14
/// Example:
15
15
/// ```ignore
16
-
/// use binary_utils::BinaryStream;
16
+
/// use binary_util::BinaryStream;
17
17
///
18
18
/// #[derive(BinaryStream)]
19
19
/// struct Test {
@@ -29,7 +29,7 @@ mod legacy;
29
29
///
30
30
/// Please note that this proc-macro does not support unit structs or named enum variants, meaning a code sample like the following will not work:
/// The following example will provide both a `Reader` and `Writer` implementation for the struct `ABC`, where each field is encoded as it's respective
66
66
/// type to the `Bytewriter`/`Bytereader`.
67
67
/// ```ignore
68
-
/// use binary_utils::interfaces::{Reader, Writer};
69
-
/// use binary_utils::BinaryIo;
68
+
/// use binary_util::interfaces::{Reader, Writer};
/// Sometimes it can be more optimal to use Unnamed fields, if you do not care about the field names, and only want to encode/decode the fields in the order they are defined.
80
80
/// The behavior of this macro is the same as the previous example, except the fields are unnamed.
81
81
/// ```ignore
82
-
/// use binary_utils::interfaces::{Reader, Writer};
83
-
/// use binary_utils::BinaryIo;
82
+
/// use binary_util::interfaces::{Reader, Writer};
0 commit comments