Skip to content

Commit

Permalink
feat(deps): reexport types from toml crate, so users don't have to de…
Browse files Browse the repository at this point in the history
…pend on it (#427)

reexport toml table type, so users don't have to directly depend on the same version of toml crate
  • Loading branch information
ValeryAntopol authored Mar 27, 2024
1 parent e5c5619 commit ee39ce0
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 ee39ce0

Please sign in to comment.