Skip to content

Commit 3b354f0

Browse files
committed
small doc fixes
1 parent 5975d2f commit 3b354f0

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cano"
3-
version = "0.1.0"
3+
version = "0.1.2"
44
edition = "2024"
55
description = "Simple & Fast Async Workflows in Rust - Build powerful data processing pipelines with minimal code"
66
license = "MIT"

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Add Cano to your `Cargo.toml`:
1616

1717
```toml
1818
[dependencies]
19-
cano = "0.1.0"
19+
cano = "0.1"
20+
async-trait = "0.1"
2021
tokio = { version = "1.0", features = ["full"] }
2122
```
2223

@@ -50,7 +51,7 @@ impl Node<WorkflowState> for ProcessorNode {
5051
}
5152

5253
async fn exec(&self, prep_res: Self::PrepResult) -> Self::ExecResult {
53-
println!("Processing: {}", prep_res);
54+
println!("Processing: {prep_res}");
5455
true // Success
5556
}
5657

@@ -78,7 +79,7 @@ async fn main() -> Result<(), CanoError> {
7879

7980
// Run your workflow
8081
let result = flow.orchestrate(&storage).await?;
81-
println!("Workflow completed: {:?}", result);
82+
println!("Workflow completed: {result:?}");
8283

8384
Ok(())
8485
}
@@ -125,7 +126,7 @@ impl Node<String> for EmailProcessor {
125126

126127
async fn exec(&self, email: Self::PrepResult) -> Self::ExecResult {
127128
// Process the email (your business logic here)
128-
println!("Sending email to: {}", email);
129+
println!("Sending email to: {email}");
129130
true // Success
130131
}
131132

0 commit comments

Comments
 (0)