diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d033417..862a842 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,6 +52,12 @@ jobs: command: build args: --target ${{ matrix.target }} + - name: Check no-default-features + uses: actions-rs/cargo@v1 + with: + command: check + args: --no-default-features --target ${{ matrix.target }} + - name: Run tests uses: actions-rs/cargo@v1 with: diff --git a/crates/ui/src/handlers/workflow.rs b/crates/ui/src/handlers/workflow.rs index abf57c2..a6a793b 100644 --- a/crates/ui/src/handlers/workflow.rs +++ b/crates/ui/src/handlers/workflow.rs @@ -1,18 +1,16 @@ // Workflow handlers -#[cfg(feature = "tui")] -use crate::app::App; -#[cfg(feature = "tui")] -use crate::models::{ExecutionResultMsg, WorkflowExecution, WorkflowStatus}; -#[cfg(feature = "tui")] -use chrono::Local; use std::io; use std::path::{Path, PathBuf}; -#[cfg(feature = "tui")] -use std::sync::mpsc; -#[cfg(feature = "tui")] -use std::thread; use wrkflw_evaluator::evaluate_workflow_file; use wrkflw_executor::{self, JobStatus, RuntimeType, StepStatus}; +#[cfg(feature = "tui")] +use { + crate::app::App, + crate::models::{ExecutionResultMsg, WorkflowExecution, WorkflowStatus}, + chrono::Local, + std::sync::mpsc, + std::thread, +}; // Validate a workflow or directory containing workflows pub fn validate_workflow(path: &Path, verbose: bool) -> io::Result<()> { diff --git a/crates/ui/src/lib.rs b/crates/ui/src/lib.rs index b362c8e..658dffa 100644 --- a/crates/ui/src/lib.rs +++ b/crates/ui/src/lib.rs @@ -8,10 +8,8 @@ // - utils: Contains utility functions // - views: Contains UI rendering code -// Re-export public modules +// Always-available modules (CLI validation/execution) pub mod handlers; -pub mod models; -pub mod utils; // TUI-specific modules (require ratatui/crossterm) #[cfg(feature = "tui")] @@ -21,6 +19,10 @@ pub mod components; #[cfg(feature = "tui")] pub mod log_processor; #[cfg(feature = "tui")] +pub mod models; +#[cfg(feature = "tui")] +pub mod utils; +#[cfg(feature = "tui")] pub mod views; // Re-export main entry points