Skip to content

Commit

Permalink
reexport toml table type, so users don't have to directly depend on t…
Browse files Browse the repository at this point in the history
…he same version of toml crate
  • Loading branch information
ValeryAntopol committed Mar 27, 2024
1 parent e5c5619 commit d347e11
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/fluence-app-service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 4 additions & 0 deletions marine/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 2 additions & 0 deletions marine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d347e11

Please sign in to comment.