Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tonic_build clone server #1833

Open
BadBastion opened this issue Aug 1, 2024 · 0 comments
Open

tonic_build clone server #1833

BadBastion opened this issue Aug 1, 2024 · 0 comments

Comments

@BadBastion
Copy link

BadBastion commented Aug 1, 2024

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

/// 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant