Skip to main content

qubit_json/encode/
mod.rs

1// =============================================================================
2//    Copyright (c) 2026 Haixing Hu.
3//
4//    SPDX-License-Identifier: Apache-2.0
5//
6//    Licensed under the Apache License, Version 2.0.
7// =============================================================================
8//! Strict JSON encoding APIs and their budget-aware serializer internals.
9
10mod internal;
11#[cfg(feature = "jcs")]
12mod jcs_encode_error;
13#[cfg(feature = "jcs")]
14mod jcs_encode_error_kind;
15#[cfg(feature = "jcs")]
16mod jcs_encoder;
17#[cfg(feature = "jcs")]
18mod jcs_working_memory_error;
19mod json_collection_kind;
20mod json_encode_error;
21mod json_encode_error_kind;
22mod json_encode_error_source;
23mod json_encoder;
24mod json_integer_signedness;
25mod json_map_key_kind;
26mod json_serialization_error;
27mod json_serialization_error_category;
28mod json_serialization_error_kind;
29mod json_serializer_state_error;
30mod output;
31mod serializer;
32
33#[cfg(feature = "jcs")]
34pub use jcs_encode_error::JcsEncodeError;
35#[cfg(feature = "jcs")]
36pub use jcs_encode_error_kind::JcsEncodeErrorKind;
37#[cfg(feature = "jcs")]
38pub use jcs_encoder::JcsEncoder;
39#[cfg(feature = "jcs")]
40pub use jcs_working_memory_error::JcsWorkingMemoryError;
41pub use json_collection_kind::JsonCollectionKind;
42pub use json_encode_error::JsonEncodeError;
43pub use json_encode_error_kind::JsonEncodeErrorKind;
44pub use json_encode_error_source::JsonEncodeErrorSource;
45pub use json_encoder::JsonEncoder;
46pub use json_integer_signedness::JsonIntegerSignedness;
47pub use json_map_key_kind::JsonMapKeyKind;
48pub use json_serialization_error::JsonSerializationError;
49pub use json_serialization_error_category::JsonSerializationErrorCategory;
50pub use json_serialization_error_kind::JsonSerializationErrorKind;
51pub use json_serializer_state_error::JsonSerializerStateError;