GeezerVison is showing github.com — Merge pull request #12778 from developing-today/archer-lane-bp/8969-f… · developing-today/code@cd688f5
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: pkgs/web-gen-api-axum/src/shell.nix -19Lines changed: 0 additions & 19 deletions Collapse file
Copy file name to clipboard +27Lines changed: 27 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +//! Facade contract test — crate split step 3 (#8969). |
| 2 | +//! |
| 3 | +//! The `start-axum` facade keeps the pre-split public paths working while the |
| 4 | +//! implementation lives in `start-axum-ui` / `start-axum-error`. This test |
| 5 | +//! references each pre-split path through the facade, so a dropped or renamed |
| 6 | +//! re-export fails the suite at compile time. |
| 7 | +//! |
| 8 | +//! Gated on `ssr`, matching the step gates: the `fileserv` handler only exists |
| 9 | +//! under `ssr`, and the hydrate build is covered separately by |
| 10 | +//! `cargo check --locked --features hydrate`. |
| 11 | +#![cfg(feature = "ssr")] |
| 12 | + |
| 13 | +use start_axum::error_template::AppError; |
| 14 | + |
| 15 | +#[test] |
| 16 | +fn facade_paths_resolve() { |
| 17 | + // Value-position references to the component/handler items re-exported |
| 18 | + // through the facade. |
| 19 | + let _app = start_axum::app::App; |
| 20 | + let _counter = start_axum::app::SimpleCounter; |
| 21 | + let _toggle = start_axum::dark_mode::DarkModeToggle; |
| 22 | + let _template = start_axum::error_template::ErrorTemplate; |
| 23 | + let _handler = start_axum::fileserv::file_and_error_handler; |
| 24 | + |
| 25 | + // Type-position reference to the error type re-exported through the facade. |
| 26 | + let _err: Option<AppError> = None; |
| 27 | +} |