diff --git a/pkgs/web-gen-api-axum/src/shell.nix b/pkgs/web-gen-api-axum/src/shell.nix deleted file mode 100644 index a996f7ca8e..0000000000 --- a/pkgs/web-gen-api-axum/src/shell.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ - pkgs ? import { }, -}: -pkgs.mkShell { - NIX_CONFIG = "extra-experimental-features = nix-command flakes ca-derivations"; - nativeBuildInputs = with pkgs; [ - nix - home-manager - git - sops - ssh-to-age - gnupg - age - ]; - shellHook = '' - # Add any shell initialization commands here, for instance: - echo "Welcome to the development shell!" - ''; -} diff --git a/pkgs/web-gen-api-axum/tests/facade_paths.rs b/pkgs/web-gen-api-axum/tests/facade_paths.rs new file mode 100644 index 0000000000..785f71d462 --- /dev/null +++ b/pkgs/web-gen-api-axum/tests/facade_paths.rs @@ -0,0 +1,27 @@ +//! Facade contract test — crate split step 3 (#8969). +//! +//! The `start-axum` facade keeps the pre-split public paths working while the +//! implementation lives in `start-axum-ui` / `start-axum-error`. This test +//! references each pre-split path through the facade, so a dropped or renamed +//! re-export fails the suite at compile time. +//! +//! Gated on `ssr`, matching the step gates: the `fileserv` handler only exists +//! under `ssr`, and the hydrate build is covered separately by +//! `cargo check --locked --features hydrate`. +#![cfg(feature = "ssr")] + +use start_axum::error_template::AppError; + +#[test] +fn facade_paths_resolve() { + // Value-position references to the component/handler items re-exported + // through the facade. + let _app = start_axum::app::App; + let _counter = start_axum::app::SimpleCounter; + let _toggle = start_axum::dark_mode::DarkModeToggle; + let _template = start_axum::error_template::ErrorTemplate; + let _handler = start_axum::fileserv::file_and_error_handler; + + // Type-position reference to the error type re-exported through the facade. + let _err: Option = None; +}