forked from 1b-agent/opencadstudio-upstream
Remove native and web compiler warnings
Reuse the application library from the binary entry point instead of compiling the module tree twice. Keep desktop-only transports and caches out of web builds, remove unused test code, and check executable targets in CI.
This commit is contained in:
1 parent
3253965194
commit
de3fe2fdf1
8 files changed
+21
-38
No files matched your search
+4
-22
@@ -4,29 +4,11 @@
|
||||
// attached so eprintln! / panics stay visible while developing.
|
||||
#![cfg_attr(all(windows, not(debug_assertions)), windows_subsystem = "windows")]
|
||||
|
||||
mod app;
|
||||
mod config;
|
||||
use OpenCADStudio::app;
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
mod cli;
|
||||
mod command;
|
||||
mod entities;
|
||||
mod i18n;
|
||||
mod io;
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
mod network;
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
mod mcp;
|
||||
mod modules;
|
||||
mod patreon;
|
||||
mod discussions;
|
||||
mod videos;
|
||||
mod plugin;
|
||||
mod perf;
|
||||
mod scene;
|
||||
mod snap;
|
||||
mod ui;
|
||||
mod par;
|
||||
mod sys;
|
||||
use OpenCADStudio::{cli, io, mcp};
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
use OpenCADStudio::sys;
|
||||
|
||||
fn main() -> iced::Result {
|
||||
// Web (wasm) uses the single-window entry; native uses the multi-window
|
||||
|
||||
Reference in new issue
Block a user