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

Provide a method in prost_build::Config to get generated code straightly #171

Open
Hexilee opened this issue Mar 17, 2019 · 1 comment
Open

Comments

@Hexilee
Copy link

Hexilee commented Mar 17, 2019

I want to generate code in a mod block by procedural macro. So I need a method to get generated code straightly like this:

fn compile<P>(&mut self, protos: &[P], includes: &[P]) -> io::Result<String>
        where
            P: AsRef<Path> {
        ...
}

and return code like this:

struct HelloRequest {
    ...
}

struct HelloReply {
    ...
}

// generated custom service
pub mod server {
    ...
}
@Hexilee
Copy link
Author

Hexilee commented Mar 17, 2019

Is a PR welcome?

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