Skip to content

Commit 80cb312

Browse files
committed
Add comment to lib.rs about parser binary size
1 parent 8607fbf commit 80cb312

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,12 @@ Then you'd call `env_logger::init()` or `env_logger::try_init()` prior to doing
332332
Deku uses the `trace` logging level, so if you run your application with `RUST_LOG=trace` in your
333333
environment, you will see logging messages as Deku does its deserialising.
334334
335+
# Reducing parser code size
336+
337+
- With the use of the `no-assert-string` feature, you can remove the strings Deku adds to assertion errors.
338+
- `DekuError` whenever possible will use a `'static str`, to make the errors compile away when following a
339+
guide such as [min-sized-rust](https://github.com/johnthagen/min-sized-rust).
340+
335341
*/
336342
#![warn(missing_docs)]
337343
#![cfg_attr(not(feature = "std"), no_std)]

0 commit comments

Comments
 (0)