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

Failure: plugin protoc-gen-prost-crate: could not find insertion point "features" in "Cargo.toml" #115

Open
listepo opened this issue Jan 31, 2025 · 3 comments

Comments

@listepo
Copy link

listepo commented Jan 31, 2025

buf.gen.yaml

version: v2
plugins:
  - local: protoc-gen-prost
    out: client_api/src/gen/grpc
    opt:
      - compile_well_known_types
      - extern_path=.google.protobuf=::pbjson_types
      - file_descriptor_set
      - enable_type_names
  - local: protoc-gen-prost-serde
    out: client_api/src/gen/grpc
  - local: protoc-gen-tonic
    out: client_api/src/gen/grpc
    opt:
      - compile_well_known_types
      - extern_path=.google.protobuf=::pbjson_types
  - local: protoc-gen-prost-crate
    out: client_api
    opt:
      - include_file=src/gen/grpc/mod.rs
      - gen_crate=client_api/Cargo.toml
    strategy: all

Cargo.toml

[features]
postgres = []
reflection = ["dep:tonic-reflection"]
prisma = ["prisma-client-rust/postgresql"]
v1-auth = []
v1-account = []
v1-account_type = []
v1-category = []
v1-currency = []
v1-transaction = []
v1-transaction_type = []

@listepo
Copy link
Author

listepo commented Jan 31, 2025

@neoeinstein can you help?

@neoeinstein
Copy link
Owner

If you're using a template file, did you include the insertion point as in this example? https://github.com/neoeinstein/protoc-gen-prost/blob/main/proto/Cargo.toml.tpl

@listepo
Copy link
Author

listepo commented Jan 31, 2025

oh no, missing # @@protoc_insertion_point(features), thanks

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

2 participants