WIP: switch to announcement, remove extract input mess

This commit is contained in:
swaits committed 2025-10-14 09:01:28 -06:00
1 parent 82cbf15b85
commit 6de4d43db1
48 files changed
+685 -1187

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@
//!
//! These tests serve as both validation and documentation for proper Arc usage.
use dagx::{task, DagRunner, Task};
use dagx::{task, DagRunner};
use std::collections::{HashMap, HashSet};
use std::sync::Arc;
use std::time::{Duration, Instant};
+1 -1
View File
@@ -1,7 +1,7 @@
//! Tests for empty DAGs and minimal task configurations
use crate::common::task_fn;
use dagx::{task, DagResult, DagRunner, Task};
use dagx::{task, DagResult, DagRunner};
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::Arc;
+1 -1
View File
@@ -7,7 +7,7 @@ pub use dagx::task_fn;
// Re-export commonly used test structs
#[allow(dead_code)]
pub mod tasks {
use dagx::{task, Task};
use dagx::task;
// Simple seed task with mutable state
pub struct Seed {
+1 -1
View File
@@ -3,7 +3,7 @@
//! These tests show that even if you try to create cycles, the Rust compiler
//! prevents it through the type-state pattern.
use dagx::{task, DagRunner, Task, TaskHandle};
use dagx::{task, DagRunner, TaskHandle};
/// Demonstrates that TaskBuilder is consumed by depends_on,
/// preventing you from wiring the same task multiple times
+1 -1
View File
@@ -1,6 +1,6 @@
//! Integration tests for end-to-end functionality
use dagx::{DagResult, DagRunner, Task};
use dagx::{DagResult, DagRunner};
use crate::common::task_fn;
use std::time::Instant;
use tokio::time::{sleep, Duration};
+1 -1
View File
@@ -1,7 +1,7 @@
//! Tests for timing and speedup verification
use crate::common::task_fn;
use dagx::{DagResult, DagRunner, Task};
use dagx::{DagResult, DagRunner};
use std::sync::Arc;
use std::sync::Mutex;
use std::time::{Duration, Instant};
+1 -1
View File
@@ -1,6 +1,6 @@
//! Runtime compatibility tests for async-std
use dagx::{DagRunner, Task};
use dagx::DagRunner;
use crate::common::task_fn;
struct Value(i32);
+1 -1
View File
@@ -1,6 +1,6 @@
//! Runtime integration tests - verify dagx works correctly across different runtimes
use dagx::{DagResult, DagRunner, Task};
use dagx::{DagResult, DagRunner};
struct Value(i32);
#[dagx::task]
+2 -2
View File
@@ -486,7 +486,7 @@ fn test_futures_executor_multi_pool() {
#[test]
fn test_sync_tasks_on_async_executor() {
use dagx::Task;
struct SyncAdd;
@@ -519,7 +519,7 @@ fn test_sync_tasks_on_async_executor() {
#[test]
fn test_sync_tasks_on_pollster() {
use dagx::Task;
struct SyncDouble;
+1 -1
View File
@@ -1,6 +1,6 @@
//! Runtime compatibility tests for smol
use dagx::{DagRunner, Task};
use dagx::DagRunner;
use crate::common::task_fn;
struct Value(i32);
+1 -1
View File
@@ -1,6 +1,6 @@
//! Tests with tracing feature enabled
use dagx::{task, DagRunner, Task};
use dagx::{task, DagRunner};
use tracing_subscriber::{fmt, EnvFilter};
struct Value(i32);
+1 -1
View File
@@ -1,6 +1,6 @@
//! Tests that the library works correctly without tracing feature
use dagx::{task, DagRunner, Task};
use dagx::{task, DagRunner};
struct Value(i32);