tonic-build: option to emit Arc<Self> as server receiver (#1352)
This implements an option to emit `Arc<Self>` instead of `&self` in server traits. This enables implementor to reference `Self` data for indefinite duration, which may be useful for streaming requests. Fixes: #1351
This commit is contained in:
@@ -23,5 +23,6 @@ members = [
|
||||
"tests/compression",
|
||||
"tonic-web/tests/integration",
|
||||
"tests/service_named_result",
|
||||
"tests/use_arc_self",
|
||||
]
|
||||
resolver = "2"
|
||||
|
||||
Reference in New Issue
Block a user