5f91287369
Move the frontend and backend crate trees to live physically under their respective binary crate directories, grouping related code together without merging crate boundaries. Also flatten sub-crate nesting by moving them out of src/ subdirectories into direct children. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
507 B
Rust
18 lines
507 B
Rust
// SPDX-FileCopyrightText: 2025 Stanislaw Grams <stanislawgrams@gmail.com>
|
|
//
|
|
// SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
#[cfg(all(target_os = "linux", feature = "qt"))]
|
|
pub mod server;
|
|
|
|
#[cfg(all(target_os = "linux", feature = "qt"))]
|
|
pub fn register_frontend() {
|
|
use trx_frontend::FrontendSpawner;
|
|
trx_frontend::register_frontend("qt", server::QtFrontend::spawn_frontend);
|
|
}
|
|
|
|
#[cfg(not(all(target_os = "linux", feature = "qt")))]
|
|
pub fn register_frontend() {
|
|
// No-op on non-Linux platforms.
|
|
}
|