tonic_build clone server
Open
- 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
Assessment
This issue has not been assessed yet.