marine/config/mod.rs
1/*
2 * Copyright 2020 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
17mod raw_marine_config;
18mod to_marine_config;
19mod marine_config;
20mod path_utils;
21
22pub use marine_config::ConfigContext;
23pub use marine_config::WithContext;
24pub use marine_config::MarineModuleConfig;
25pub use marine_config::MarineConfig;
26pub use marine_config::MarineWASIConfig;
27pub use marine_config::ModuleDescriptor;
28
29pub use raw_marine_config::TomlMarineNamedModuleConfig;
30pub use raw_marine_config::TomlWASIConfig;
31pub use raw_marine_config::TomlMarineConfig;
32pub use raw_marine_config::TomlMarineModuleConfig;
33
34// reexport toml types, so users don't have to directly depend on the same version of toml crate
35pub use toml::Value as TomlValue;
36pub use toml::value::Table as TomlValueTable;
37
38pub(crate) use to_marine_config::make_marine_config;
39pub(crate) use path_utils::as_relative_to_base;