| 1 | //! Encodes and decodes bencoded structures. |
| 2 | //! |
| 3 | //! The decoder is explicitly designed to be zero-copy as much as possible, and to not |
| 4 | //! accept any sort of invalid encoding in any mode (including non-canonical encodings) |
| 5 | //! |
| 6 | //! The encoder is likewise designed to ensure that it only produces valid structures. |
| 7 | |
| 8 | #![cfg_attr(not(feature = "std"), no_std)] |
| 9 | |
| 10 | extern crate allocrust-analyzer cargo bendy 0.6.1 alloc/; |
| 11 | |
| 12 | #[cfg(all(test, feature = "serde"))] |
| 13 | #[macro_use] |
| 14 | mod assert_matchesrust-analyzer cargo bendy 0.6.1 assert_matches/; |
| 15 | |
| 16 | pub mod decodingrust-analyzer cargo bendy 0.6.1 decoding/; |
| 17 | pub mod encodingrust-analyzer cargo bendy 0.6.1 encoding/; |
| 18 | pub mod state_trackerrust-analyzer cargo bendy 0.6.1 state_tracker/; |
| 19 | |
| 20 | #[cfg(any(test, feature = "inspect"))] |
| 21 | pub mod inspectrust-analyzer cargo bendy 0.6.1 inspect/; |
| 22 | |
| 23 | #[cfg(feature = "serde")] |
| 24 | pub mod serderust-analyzer cargo bendy 0.6.1 serde/; |
| 25 | |
| 26 | pub mod valuerust-analyzer cargo bendy 0.6.1 value/; |
| 27 | |
| 28 | #[rustversionrust-analyzer cargo rustversion 1.0.8 crate/::sincerust-analyzer cargo rustversion 1.0.8 since:(1.40)] |
| 29 | const _: () = { |
| 30 | #[cfg(doctest)] |
| 31 | doc_commentrust-analyzer cargo doc-comment 0.3.3 crate/::doctestrust-analyzer cargo doc-comment 0.3.3 doctest!!("../../README.md"); |
| 32 | }; |