-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: dapr no longer requires protoc or tonic_build (#206)
* refactor!: dapr no longer requires protoc or tonic_build The dapr crate no longer requires tonic_build or protoc to build. The examples have been moved into a separate crate. proto-gen is now compiling the dapr and example protos. Signed-off-by: mikeee <[email protected]> * chore: fmt run Signed-off-by: mikeee <[email protected]> * chore: update example names Signed-off-by: mikeee <[email protected]> * fix: add a build step Signed-off-by: mikeee <[email protected]> * test: remove ci build step and add it to the examples Signed-off-by: mikeee <[email protected]> * fix: update validation workflows Signed-off-by: mikeee <[email protected]> * tests: tweaks to timings Signed-off-by: mikeee <[email protected]> --------- Signed-off-by: mikeee <[email protected]>
- Loading branch information
Showing
86 changed files
with
9,298 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,108 +1,8 @@ | ||
[package] | ||
name = "dapr" | ||
version = "0.15.0" | ||
authors = ["dapr.io"] | ||
edition = "2021" | ||
license = "Apache-2.0" | ||
repository = "https://github.com/dapr/rust-sdk" | ||
description = "Rust SDK for dapr" | ||
readme = "README.md" | ||
keywords = ["microservices", "dapr"] | ||
|
||
[dependencies] | ||
dapr-macros = { version = "0.15.0", path = "macros" } | ||
futures = "0.3" | ||
tonic = "0.11.0" | ||
prost = "0.12.3" | ||
bytes = "1" | ||
prost-types = "0.12.3" | ||
async-trait = "0.1" | ||
env_logger = "0.11.2" | ||
log = "0.4" | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
axum = "0.7.4" | ||
tokio = { version = "1.29", features = ["sync"] } | ||
tokio-util = { version = "0.7.10", features = ["io"] } | ||
chrono = "0.4.38" | ||
base64 = "0.22.1" | ||
|
||
[build-dependencies] | ||
tonic-build = "0.11.0" | ||
|
||
[dev-dependencies] | ||
axum-test = "15.0.1" | ||
once_cell = "1.18.0" | ||
tokio = { version = "1", features = ["full"] } | ||
uuid = { version = "1.4.0", features = ["v4"] } | ||
dapr = { path = "./" } | ||
tokio-test = "0.4.2" | ||
tokio-stream = { version = "0.1" } | ||
|
||
[[example]] | ||
name = "actor-client" | ||
path = "examples/actors/client.rs" | ||
|
||
[[example]] | ||
name = "actor-server" | ||
path = "examples/actors/server.rs" | ||
|
||
[[example]] | ||
name = "client" | ||
path = "examples/client/client.rs" | ||
|
||
[[example]] | ||
name = "configuration" | ||
path = "examples/configuration/main.rs" | ||
|
||
[[example]] | ||
name = "crypto" | ||
path = "examples/crypto/main.rs" | ||
|
||
[[example]] | ||
name = "invoke-grpc-client" | ||
path = "examples/invoke/grpc/client.rs" | ||
|
||
[[example]] | ||
name = "invoke-grpc-server" | ||
path = "examples/invoke/grpc/server.rs" | ||
|
||
[[example]] | ||
name = "invoke-grpc-proxying-client" | ||
path = "examples/invoke/grpc-proxying/client.rs" | ||
|
||
[[example]] | ||
name = "invoke-grpc-proxying-server" | ||
path = "examples/invoke/grpc-proxying/server.rs" | ||
|
||
[[example]] | ||
name = "jobs" | ||
path = "examples/jobs/jobs.rs" | ||
|
||
[[example]] | ||
name = "publisher" | ||
path = "examples/pubsub/publisher.rs" | ||
|
||
[[example]] | ||
name = "subscriber" | ||
path = "examples/pubsub/subscriber.rs" | ||
|
||
[[example]] | ||
name = "output-bindings" | ||
path = "examples/bindings/output.rs" | ||
|
||
[[example]] | ||
name = "input-bindings" | ||
path = "examples/bindings/input.rs" | ||
|
||
[[example]] | ||
name = "query_state_q1" | ||
path = "examples/query_state/query1.rs" | ||
|
||
[[example]] | ||
name = "query_state_q2" | ||
path = "examples/query_state/query2.rs" | ||
|
||
[[example]] | ||
name = "secrets-bulk" | ||
path = "examples/secrets-bulk/app.rs" | ||
[workspace] | ||
members = [ | ||
"dapr", | ||
"dapr-macros", | ||
"examples", | ||
"proto-gen", | ||
] | ||
resolver = "2" |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[package] | ||
name = "dapr" | ||
version = "0.15.0" | ||
authors = ["dapr.io"] | ||
edition = "2021" | ||
license = "Apache-2.0" | ||
repository = "https://github.com/dapr/rust-sdk" | ||
description = "Rust SDK for dapr" | ||
readme = "../README.md" | ||
keywords = ["microservices", "dapr"] | ||
|
||
[dependencies] | ||
dapr-macros = { version = "0.15.0", path = "../dapr-macros" } | ||
futures = "0.3" | ||
tonic = "0.11.0" | ||
prost = "0.12.3" | ||
bytes = "1" | ||
prost-types = "0.12.3" | ||
async-trait = "0.1" | ||
env_logger = "0.11.2" | ||
log = "0.4" | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
axum = "0.7.4" | ||
tokio = { version = "1.29", features = ["sync"] } | ||
tokio-util = { version = "0.7.10", features = ["io"] } | ||
chrono = "0.4.38" | ||
base64 = "0.22.1" | ||
|
||
[dev-dependencies] | ||
axum-test = "15.0.1" | ||
once_cell = "1.18.0" | ||
tokio = { version = "1", features = ["full"] } | ||
uuid = { version = "1.4.0", features = ["v4"] } | ||
dapr = { path = "./" } | ||
tokio-test = "0.4.2" | ||
tokio-stream = { version = "0.1" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# dapr | ||
|
||
These are compiled by running the proto-gen crate |
Oops, something went wrong.