Giter Club home page Giter Club logo

Comments (2)

pcj avatar pcj commented on June 4, 2024

Point taken. I've tried to take the approach to generate an example WORKSPACE and BUILD.bazel file that demonstrates a functioning / buildable example. However, documentation on the individual rule attributes needs some attention.

Here's the basic idea:

  1. Always start with a native proto_library rule.
  2. If you only want to the generated source code artifacts, use a {lang}_proto_compile rule. deps always point to proto_library rules.
  3. If you want the code artifacts "compiled" or incorporated into some {lang}_library rule, use the {lang}_proto_library rules. deps also point to proto_library rules. For this class of rules, there should be an escape hatch to provide additional language-specific deps if necessary, like for example py_deps that would be passed to the py_library.deps attribute. This convention is currently lacking but it usually not necessary since most people keep their proto rules independent of their application specific code.
  4. If your proto has services, use a {lang}_grpc_{compile|library} rule instead.

from rules_proto.

pcj avatar pcj commented on June 4, 2024

Should be addressed by #9. Feedback welcome.

from rules_proto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.