diff --git a/CHANGELOG-UNRELEASED.md b/CHANGELOG-UNRELEASED.md index 8c304c44cf..9b1b68b36c 100644 --- a/CHANGELOG-UNRELEASED.md +++ b/CHANGELOG-UNRELEASED.md @@ -10,6 +10,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - The static file server has been replaced and now uses the Nickel crate intead of Hyper. It now correctly sets content type headers and can be configured to bind to a different address in the conductor config toml [#1595](https://github.com/holochain/holochain-rust/pull/1595) - Optimized get_links so that fewer network calls are made overrall [#1607](https://github.com/holochain/holochain-rust/pull/1607) +- DEPRECATION WARNING, conductor static UI server is to be removed in an upcoming release. Devs will receive a warning when starting a conductor with a UI server configured [PR#1602](https://github.com/holochain/holochain-rust/pull/1602) + ### Deprecated ### Removed diff --git a/conductor_api/src/conductor/base.rs b/conductor_api/src/conductor/base.rs index 3e6fc50a0d..198fdd2ba9 100644 --- a/conductor_api/src/conductor/base.rs +++ b/conductor_api/src/conductor/base.rs @@ -159,6 +159,14 @@ impl Conductor { let rules = config.logger.rules.clone(); lib3h_sodium::check_init(); + if config.ui_bundles.len() > 0 || config.ui_interfaces.len() > 0 { + println!(); + println!("{}", std::iter::repeat("!").take(20).collect::()); + println!("DEPRECATION WARNING - Hosting a static UI via the conductor will not be supported in future releases"); + println!("{}", std::iter::repeat("!").take(20).collect::()); + println!(); + } + Conductor { instances: HashMap::new(), instance_signal_receivers: Arc::new(RwLock::new(HashMap::new())), diff --git a/conductor_api/src/config.rs b/conductor_api/src/config.rs index ee2e551ce7..01a6ca8bed 100644 --- a/conductor_api/src/config.rs +++ b/conductor_api/src/config.rs @@ -64,12 +64,15 @@ pub struct Configuration { /// List of bridges between instances. Optional. #[serde(default)] pub bridges: Vec, + + /// !DEPRECATION WARNING! - Hosting a static UI via the conductor will not be supported in future releases /// List of ui bundles (static web dirs) to host on a static interface. Optional. #[serde(default)] pub ui_bundles: Vec, /// List of ui interfaces, includes references to ui bundles and dna interfaces it can call. Optional. #[serde(default)] pub ui_interfaces: Vec, + /// Configures how logging should behave. Optional. #[serde(default)] pub logger: LoggerConfiguration,