air_interpreter_sede/
lib.rs

1/*
2 * Copyright 2023 Fluence Labs Limited
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17pub mod multiformat;
18
19pub(crate) mod format;
20pub(crate) mod representation;
21pub(crate) mod serialized_type;
22
23pub use crate::format::Format;
24pub use crate::representation::FromSerialiedBorrow;
25pub use crate::representation::FromSerialized;
26pub use crate::representation::Representation;
27pub use crate::representation::ToSerialized;
28pub use crate::representation::ToWriter;
29
30#[cfg(feature = "rmp-serde")]
31pub(crate) mod rmp_serde;
32#[cfg(feature = "rmp-serde")]
33pub use crate::rmp_serde::RmpSerdeFormat;
34#[cfg(feature = "rmp-serde")]
35pub use crate::rmp_serde::RmpSerdeMultiformat;
36
37#[cfg(feature = "msgpack")]
38pub use crate::rmp_serde::RmpSerdeFormat as MsgPackFormat;
39#[cfg(feature = "msgpack")]
40pub use crate::rmp_serde::RmpSerdeMultiformat as MsgPackMultiformat;
41
42#[cfg(feature = "serde_json")]
43pub(crate) mod serde_json;
44#[cfg(feature = "serde_json")]
45pub use crate::serde_json::SerdeJsonFormat;
46#[cfg(feature = "serde_json")]
47pub use crate::serde_json::SerdeJsonMultiformat;
48
49#[cfg(feature = "json")]
50pub use crate::serde_json::SerdeJsonFormat as JsonFormat;
51#[cfg(feature = "json")]
52pub use crate::serde_json::SerdeJsonMultiformat as JsonMultiformat;