1#![cfg_attr(not(feature = "std"), no_std)]
2#![cfg_attr(docsrs, feature(doc_cfg))]
3#![deny(missing_docs)]
4#![warn(unsafe_op_in_unsafe_fn)]
5#![doc = include_str!("../README.md")]
6
7#[cfg(all(not(feature = "std"), feature = "alloc"))]
8extern crate alloc as std;
9
10#[cfg(feature = "std")]
11extern crate std;
12
13#[cfg(any(feature = "std", feature = "alloc"))]
14pub use ::bytes::{Buf, BufMut};
15
16#[cfg(any(feature = "std", feature = "alloc"))]
17#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
18pub use ::bytes::buf;
19
20#[cfg(any(feature = "std", feature = "alloc"))]
21#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
22pub use bytes::strategy::{
23 compact,
24 shared::{self, Bytes},
25};
26
27#[cfg(any(feature = "std", feature = "alloc"))]
28#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
29pub(crate) use bytes::strategy;
30
31#[cfg(any(feature = "std", feature = "alloc"))]
32#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
33pub use bytes_mut::BytesMut;
34
35#[cfg(any(feature = "std", feature = "alloc"))]
36#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
37pub use bytes::strategy::shared::Utf8Bytes;
38
39#[cfg(any(feature = "std", feature = "alloc"))]
40#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
41pub use utf8_bytes_mut::Utf8BytesMut;
42
43pub use buffer::{Buffer, INLINE_CAP};
44pub use error::*;
45pub use utf8_buf::{Utf8Buf, Utf8BufMut};
46pub use utf8_buffer::Utf8Buffer;
47
48#[cfg(any(feature = "std", feature = "alloc"))]
49mod bytes;
50#[cfg(any(feature = "std", feature = "alloc"))]
51mod bytes_mut;
52
53#[cfg(feature = "async-graphql")]
54#[cfg_attr(docsrs, doc(cfg(feature = "async-graphql")))]
55mod graphql;
56
57#[cfg(feature = "pyo3")]
58#[cfg_attr(docsrs, doc(cfg(feature = "pyo3")))]
59mod python;
60
61#[cfg(feature = "sqlx")]
62#[cfg_attr(docsrs, doc(cfg(feature = "sqlx")))]
63mod sql;
64
65#[cfg(feature = "wasm")]
66mod wasm;
67#[cfg(feature = "wasm")]
68mod wasm_iter;
69
70#[cfg(feature = "pyo3")]
71#[cfg_attr(docsrs, doc(cfg(feature = "pyo3")))]
72pub use python::{register_classes, register_compact, register_shared};
73
74mod buffer;
75
76mod utf8_buf;
77mod utf8_buffer;
78
79#[cfg(any(feature = "std", feature = "alloc"))]
80mod utf8_bytes;
81#[cfg(any(feature = "std", feature = "alloc"))]
82mod utf8_bytes_mut;
83
84#[cfg(any(feature = "std", feature = "alloc"))]
85mod macros;
86
87pub mod error;