Skip to content

Commit dd197dc

Browse files
committed
perf(rust): cleaned up pages for 0.4.0 release
1 parent 0e193cf commit dd197dc

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/develop/rust/activities/timeouts.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl TestGreetActivities {
8888
#[activity]
8989
pub async fn greet(_ctx: ActivityContext, name: String) -> Result<String, ActivityError> {
9090
if name == "ziggy" {
91-
return Err(ApplicationFailure::builder(anyhow::anyhow!("Ziggy is not a valid name")
91+
return Err(ApplicationFailure::builder(anyhow::anyhow!("Ziggy is not a valid name"))
9292
// next retry will be after 5 seconds
9393
.next_retry_delay(std::time::Duration::from_secs(5))
9494
.build()

docs/develop/rust/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Once your local Temporal Service is set up, continue building with the following
5858
## Temporal Rust Technical Resources
5959

6060
- [Rust SDK Quickstart - Setup Guide](/develop/rust/quickstart)
61-
- [Rust API Documentation](https://docs.rs/temporalio-sdk/0.2.0/temporalio_sdk/)
61+
- [Rust API Documentation](https://docs.rs/temporalio-sdk/latest/temporalio_sdk/)
6262
- [Rust SDK GitHub](https://github.com/temporalio/sdk-core/tree/master/crates/sdk)
6363

6464
### Get Connected with the Temporal TypeScript Community

docs/develop/rust/quickstart.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ futures = "0.3.32"
6666
futures-util = "0.3.32"
6767
serde = { version = "1", features = ["derive"] }
6868
serde_json = "1"
69-
temporalio-client = "0.3.0"
70-
temporalio-common = "0.3.0"
71-
temporalio-macros = "0.3.0"
72-
temporalio-sdk = "0.3.0"
73-
temporalio-sdk-core = "0.3.0"
69+
temporalio-client = "0.4.0"
70+
temporalio-common = "0.4.0"
71+
temporalio-macros = "0.4.0"
72+
temporalio-sdk = "0.4.0"
73+
temporalio-sdk-core = "0.4.0"
7474
tokio = { version = "1", features = ["full"] }
7575
`}
7676
</CodeSnippet>

docs/develop/rust/workflows/continue-as-new.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl GreetingWorkflow {
7373
Ok(greeting)
7474
} else {
7575
let new_input = "New Name".to_string();
76-
// To continue as new, return an error with WorkflowTermination::ContinueAsNew
76+
7777
ctx.continue_as_new(&new_input, Default::default());
7878
}
7979
}

0 commit comments

Comments
 (0)