4942dd4a43
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
7 lines
142 B
Rust
7 lines
142 B
Rust
fn main() {
|
|
tonic_build::configure()
|
|
.use_arc_self(true)
|
|
.compile(&["proto/test.proto"], &["proto"])
|
|
.unwrap();
|
|
}
|