Giter VIP home page Giter VIP logo

Comments (2)

dwrensha avatar dwrensha commented on June 24, 2024

As far as I know, bindgen does not work in that direction. You give it a C library, and it gives you a Rust interface to it. Here, what you would want is to get a C interface from a Rust library.

Figuring out a decent API to expose to C would require a lot of work. (Some tricky questions are: how to deal with generics? and how to do error handling?) My initial sense is that such work would be better spent on maintaining the existing C implementation or making a new one from scratch.

from capnproto-rust.

JPSGoncalves avatar JPSGoncalves commented on June 24, 2024

There is another project that execute the reverse of bindgen, cbindgen (https://github.com/mozilla/cbindgen). I don't know if it worth it, but maybe it is possible to use bindings for C using the capnproto Rust implementation.

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.