Giter VIP home page Giter VIP logo

Comments (3)

dwrensha avatar dwrensha commented on June 20, 2024

This would be really cool -- much better than my current hack for getting Cargo to do code generation, which you can see in these two repositories:

https://github.com/dwrensha/capnp-rpc-rust
https://github.com/dwrensha/acronymy

from capnproto-rust.

tv42 avatar tv42 commented on June 20, 2024

Can this ancient bug be closed? It seems using a build.rs build script and include! of files from OUT_DIR is the standard way to do code generation for Rust these days, and capnpc makes that as easy as it's anywhere.

(I do wish we didn't need the C++ binary, but that's not what this issue is about.)

from capnproto-rust.

dwrensha avatar dwrensha commented on June 20, 2024

This issue was opened in September of 2014. In November of 2014, capnproto-rust started using a build.rs build script, which I guess must have been a newly introduced feature of Cargo around then: capnproto/capnp-rpc-rust@33ac799

I could still imagine someone wanting to use a procedural macro, like capnp_mod!(example.capnp) to avoid needing an explicit build script, but it's unclear whether that's what this issue is exactly asking about. If someone wants that, they can open a new issue (but be advised that I prefer to avoid proc-macro).

from capnproto-rust.

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.