Comments (2)
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.
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)
- Create has_capability checkers HOT 1
- How do I convert a Reader to a TypedReader? HOT 2
- Add support for setPipeline() HOT 3
- Miri test failures HOT 2
- How to Initialize a struct_list with Members from Byte Arrays HOT 3
- Using `CapabilityServerSet` prevents Server objects from being dropped at the appropriate time HOT 11
- Document when write_message errors HOT 1
- Use of deprecated try macro HOT 1
- std::marker::PhantomData still used when using no_std HOT 1
- Stringify on `AnyPointer` HOT 2
- Enum fields with defaults generate bad setters HOT 3
- Adding or Extending Clients in Rust code? HOT 2
- Annotation and struct module names can conflict HOT 1
- Consider making builders chainable
- get_annotation_types breaks on non-builtin external types, despite comment in codegen.rs saying otherwise HOT 7
- How to check schema compatibility? HOT 2
- Question - It is possible expose more than one rpc interface throughout one socket? HOT 4
- Initialize a primitive list from Vec HOT 6
- `set_root_canonical` errors on assertion HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capnproto-rust.