Skip to content

Commit 554ae98

Browse files
committed
updated deps
1 parent 664aa80 commit 554ae98

8 files changed

Lines changed: 481 additions & 381 deletions

File tree

Cargo.lock

Lines changed: 473 additions & 360 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cano"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
homepage = "https://github.com/nassor/cano"
55
edition = "2024"
66
description = "Simple & Fast Async Workflows in Rust - Build data processing pipelines with Tasks and Nodes"
@@ -29,7 +29,7 @@ all = ["scheduler", "tracing"]
2929
cargo-audit = "0.21.2"
3030
criterion = { version = "0.7", features = ["html_reports", "async_tokio"] }
3131
reqwest = { version = "0.12", features = ["json"] }
32-
rig-core = "0.16"
32+
rig-core = "0.20"
3333
wide = "0.7"
3434
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
3535
chrono = { version = "0.4", features = ["serde"] }

benches/node_performance.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ impl Node<TestState> for DoNothingNode {
3636

3737
async fn exec(&self, _prep_res: Self::PrepResult) -> Self::ExecResult {
3838
// Do nothing - minimal overhead
39-
()
4039
}
4140

4241
async fn post(

benches/workflow_performance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ fn is_prime(n: u64) -> bool {
194194
return false;
195195
}
196196
for i in 2..=(n as f64).sqrt() as u64 {
197-
if n % i == 0 {
197+
if n.is_multiple_of(i) {
198198
return false;
199199
}
200200
}

examples/mixed_workflow.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,6 @@ impl Node<WorkflowState> for ReportNode {
232232

233233
// Simulate report generation
234234
tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;
235-
236-
()
237235
}
238236

239237
async fn post(

examples/scheduler_graceful_shutdown.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ impl Node<MyState> for LongProcessingNode {
5252
async fn exec(&self, _data: Self::PrepResult) -> Self::ExecResult {
5353
// Simulate long-running work
5454
tokio::time::sleep(Duration::from_secs(5)).await;
55-
()
5655
}
5756

5857
async fn post(
@@ -77,9 +76,7 @@ impl Node<MyState> for QuickNode {
7776
Ok(())
7877
}
7978

80-
async fn exec(&self, _data: Self::PrepResult) -> Self::ExecResult {
81-
()
82-
}
79+
async fn exec(&self, _data: Self::PrepResult) -> Self::ExecResult {}
8380

8481
async fn post(
8582
&self,

src/node.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -528,11 +528,10 @@ mod tests {
528528

529529
fn set_params(&mut self, params: DefaultParams) {
530530
self.params = params;
531-
if let Some(multiplier_str) = self.params.get("multiplier") {
532-
if let Ok(multiplier) = multiplier_str.parse::<i32>() {
531+
if let Some(multiplier_str) = self.params.get("multiplier")
532+
&& let Ok(multiplier) = multiplier_str.parse::<i32>() {
533533
self.multiplier = multiplier;
534534
}
535-
}
536535
}
537536

538537
async fn prep(&self, _store: &MemoryStore) -> Result<Self::PrepResult, CanoError> {
@@ -571,7 +570,6 @@ mod tests {
571570
}
572571

573572
async fn exec(&self, _prep_res: Self::PrepResult) -> Self::ExecResult {
574-
()
575573
}
576574

577575
async fn post(
@@ -928,7 +926,6 @@ mod tests {
928926
}
929927

930928
async fn exec(&self, _prep_res: Self::PrepResult) -> Self::ExecResult {
931-
()
932929
}
933930

934931
async fn post(
@@ -976,7 +973,6 @@ mod tests {
976973
}
977974

978975
async fn exec(&self, _prep_res: Self::PrepResult) -> Self::ExecResult {
979-
()
980976
}
981977

982978
async fn post(
@@ -1232,7 +1228,6 @@ mod tests {
12321228
}
12331229

12341230
async fn exec(&self, _prep_res: Self::PrepResult) -> Self::ExecResult {
1235-
()
12361231
}
12371232

12381233
async fn post(
@@ -1279,7 +1274,6 @@ mod tests {
12791274
}
12801275

12811276
async fn exec(&self, _prep_res: Self::PrepResult) -> Self::ExecResult {
1282-
()
12831277
}
12841278

12851279
async fn post(

src/task.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,11 +555,10 @@ mod tests {
555555
impl Task<TestAction> for ParameterizedTask {
556556
fn set_params(&mut self, params: DefaultTaskParams) {
557557
self.params = params;
558-
if let Some(multiplier_str) = self.params.get("multiplier") {
559-
if let Ok(multiplier) = multiplier_str.parse::<i32>() {
558+
if let Some(multiplier_str) = self.params.get("multiplier")
559+
&& let Ok(multiplier) = multiplier_str.parse::<i32>() {
560560
self.multiplier = multiplier;
561561
}
562-
}
563562
}
564563

565564
async fn run(&self, store: &MemoryStore) -> Result<TestAction, CanoError> {

0 commit comments

Comments
 (0)