From d347e115c4d11508917b832855fb4c64c07a1e7e Mon Sep 17 00:00:00 2001 From: Valery Antopol Date: Wed, 27 Mar 2024 16:08:36 +0400 Subject: [PATCH] reexport toml table type, so users don't have to directly depend on the same version of toml crate --- crates/fluence-app-service/src/lib.rs | 2 ++ marine/src/config/mod.rs | 4 ++++ marine/src/lib.rs | 2 ++ 3 files changed, 8 insertions(+) diff --git a/crates/fluence-app-service/src/lib.rs b/crates/fluence-app-service/src/lib.rs index 86318e05b..32d5b257e 100644 --- a/crates/fluence-app-service/src/lib.rs +++ b/crates/fluence-app-service/src/lib.rs @@ -49,6 +49,8 @@ pub use marine::MarineWASIConfig; pub use marine::TomlMarineConfig; pub use marine::TomlMarineModuleConfig; pub use marine::TomlMarineNamedModuleConfig; +pub use marine::TomlValue; +pub use marine::TomlValueTable; pub use marine::TomlWASIConfig; pub use marine::ModuleDescriptor; diff --git a/marine/src/config/mod.rs b/marine/src/config/mod.rs index 3ba31b722..8447ddffd 100644 --- a/marine/src/config/mod.rs +++ b/marine/src/config/mod.rs @@ -31,5 +31,9 @@ pub use raw_marine_config::TomlWASIConfig; pub use raw_marine_config::TomlMarineConfig; pub use raw_marine_config::TomlMarineModuleConfig; +// reexport toml types, so users don't have to directly depend on the same version of toml crate +pub use toml::Value as TomlValue; +pub use toml::value::Table as TomlValueTable; + pub(crate) use to_marine_config::make_marine_config; pub(crate) use path_utils::as_relative_to_base; diff --git a/marine/src/lib.rs b/marine/src/lib.rs index 22434575b..e039f07b6 100644 --- a/marine/src/lib.rs +++ b/marine/src/lib.rs @@ -43,6 +43,8 @@ pub use config::TomlMarineConfig; pub use config::TomlMarineModuleConfig; pub use config::TomlMarineNamedModuleConfig; pub use config::TomlWASIConfig; +pub use config::TomlValue; +pub use config::TomlValueTable; pub use errors::MarineError;