grpc / grpc/grpc-rust

tonic_build clone server

Open
#1,833 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
12.5k
Forks
1.3k
Avg merge
4d 7h
Merged PRs (30d)
24

Description

Add the option to generate Server wrappers that clones the inner type instead of using `Arc`.

```rust
/// Service generator builder.
#[derive(Debug, Clone)]
pub struct Builder {
...
// These should be mutually exclusive, possibly an Enum
pub(crate) use_arc_self: bool,
pub(crate) use_clone_self: bool,
...
}
```

If this seems reasonable, I am more than happy to implement it my self.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.