Skip to content

Using custom import during codegen for re-exported crates #12

Description

@jeremija

Hello, currently code that's generated using prost-validate-build always ends up hardcoding ::prost-validate. This makes it tricky to build a code-generating tool on top of it and re-export prost-validate, so the users can only worry about specifying a single crate in the dependencies.

Would you be open to a PR that adds a method such as prost_validate_path for using a re-exported prost-validate crate?

For example, this is how it can be configured in prost-build: https://docs.rs/prost-build/latest/prost_build/struct.Config.html#method.prost_path

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions