Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions pkgs/web-gen-api-axum/src/shell.nix

This file was deleted.

27 changes: 27 additions & 0 deletions pkgs/web-gen-api-axum/tests/facade_paths.rs
Original file line number Diff line number Diff line change
@@ -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<AppError> = None;
}