Skip to content

Commit 9bcb87c

Browse files
Fix error handling, now it correctly propagates errors. (#11)
Add random + headers in context. More tests
1 parent a1a86f4 commit 9bcb87c

File tree

15 files changed

+716
-110
lines changed

15 files changed

+716
-110
lines changed

Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@ license = "MIT"
77
repository = "https://github.com/restatedev/sdk-rust"
88

99
[features]
10-
default = ["http"]
11-
http = ["hyper", "http-body-util", "hyper-util", "tokio/net", "tokio/signal", "restate-sdk-shared-core/http"]
10+
default = ["http_server", "rand", "uuid"]
11+
http_server = ["hyper", "http-body-util", "hyper-util", "tokio/net", "tokio/signal", "restate-sdk-shared-core/http"]
1212

1313
[dependencies]
1414
bytes = "1.6.1"
1515
futures = "0.3"
16+
http = "1.1.0"
1617
http-body-util = { version = "0.1", optional = true }
1718
hyper = { version = "1.4.1", optional = true, features = ["server", "http2"] }
1819
hyper-util = { version = "0.1", features = ["tokio", "server", "server-graceful", "http2"], optional = true }
1920
pin-project-lite = "0.2"
21+
rand = { version = "0.8.5", optional = true }
2022
regress = "0.10"
2123
restate-sdk-macros = { version = "0.1.0", path = "macros" }
2224
restate-sdk-shared-core = { version = "0.0.5" }
@@ -26,6 +28,7 @@ thiserror = "1.0.63"
2628
tokio = { version = "1", default-features = false, features = ["sync", "macros"] }
2729
tower-service = "0.3"
2830
tracing = "0.1"
31+
uuid = { version = "1.10.0", optional = true }
2932

3033
[dev-dependencies]
3134
tokio = { version = "1", features = ["full"] }

0 commit comments

Comments
 (0)