Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added helpers for durabletask #156

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added helpers for durable task
Signed-off-by: Zachary Edgell <zacharyedgell@gmail.com>
zedgell committed Mar 23, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit ee7d747cdfd804f4e01f525a52f9bd66993da812
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -37,6 +37,9 @@ dapr = { path = "./" }
tokio-test = "0.4.2"
tokio-stream = { version = "0.1" }

[workspace]
members = ["durabletask"]

[[example]]
name = "actor-client"
path = "examples/actors/client.rs"
24 changes: 24 additions & 0 deletions durabletask/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[package]
name = "durabletask"
version = "0.1.0"
edition = "2021"
build = "build.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
tonic = "0.11.0"
prost = "0.12.3"
bytes = "1"
prost-types = "0.12.3"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
anyhow = "1.0.81"
thiserror = "1.0.58"
uuid = { version = "1.8.0", features = ["v4", "fast-rng"] }
chrono = "0.4.35"
gethostname = "0.4.3"
opentelemetry = "0.22.0"

[build-dependencies]
tonic-build = "0.11.0"
prost-build = "0.12.3"
14 changes: 14 additions & 0 deletions durabletask/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
use prost_build::Config;

fn main() -> Result<(), std::io::Error> {
let mut config = Config::default();
config.default_package_filename("durabletask");
tonic_build::configure()
.build_server(false)
.compile_with_config(
config,
&["submodules/durabletask-protobuf/protos/orchestrator_service.proto"],
&["."],
)?;
Ok(())
}
5 changes: 5 additions & 0 deletions durabletask/src/helpers.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pub mod history;
pub mod task;
pub mod time;
pub mod tracing;
pub mod worker;
Loading