File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 11//! Bytes converts literals into an array of bytes.
22//!
33//! Currently supports only integer literals of unbounded size.
4+ //!
5+ //! The macros are intended for small byte inputs. There is no arbitrary limit,
6+ //! but very large inputs may result in long compilation times. For large amounts
7+ //! of bytes, store the bytes in a file and use [`include_bytes!`] instead.
48
59mod bytes;
610mod bytesmin;
@@ -22,6 +26,11 @@ extern crate proc_macro;
2226///
2327/// Decimal and octal literal forms are not supported.
2428///
29+ /// This macro is intended for small byte inputs. There is no arbitrary limit,
30+ /// but very large inputs may result in long compilation times. For large
31+ /// amounts of bytes, store the bytes in a file and use [`include_bytes!`]
32+ /// instead.
33+ ///
2534/// ### Examples
2635///
2736/// ```
@@ -66,6 +75,11 @@ pub fn bytes(input: TokenStream) -> TokenStream {
6675///
6776/// To preserve leading zeros, use [`bytes!`].
6877///
78+ /// This macro is intended for small byte inputs. There is no arbitrary limit,
79+ /// but very large inputs may result in long compilation times. For large
80+ /// amounts of bytes, store the bytes in a file and use [`include_bytes!`]
81+ /// instead.
82+ ///
6983/// ### Examples
7084///
7185/// ```
You can’t perform that action at this time.
0 commit comments