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

Rust bindings #18

Open
cholcombe973 opened this issue Jan 24, 2016 · 3 comments
Open

Rust bindings #18

cholcombe973 opened this issue Jan 24, 2016 · 3 comments

Comments

@cholcombe973
Copy link

I'm trying to create some rust bindings for libquic but I'm having trouble finding which .h file to generate against. The tool I'm using is called rust-bindgen: https://github.com/crabtw/rust-bindgen. If you wouldn't mind taking a quick peek at this I'd very much appreciate it :).

@hodduc
Copy link
Member

hodduc commented Jan 27, 2016

To use libquic, some implementation-specific C++ classes should be implemented seperately, to fit on target language.

Sample C++ implementations are here (net/tools/quic on chromium): https://chromium.googlesource.com/chromium/src.git/+/master/net/tools/quic/
Corresponding Go bindings are here: https://github.com/devsisters/goquic/tree/master/src

I'm not familiar with Rust.. But If you see goquic's approach, almost of the codes are copied from sample C++ implementation, and only some end-point logics (managing sockets, threading, alarm implementations, HTTP response header/body handling, ...) are replaced with CGO binding, which is actually implemented in Go.

@indykish
Copy link

@cholcombe973 Did you fix this the rust binding for QUIC ?

@cholcombe973
Copy link
Author

I didn't no. It was harder than I expected to generate bindings

On Aug 18, 2016 11:10 PM, "Kishorekumar Neelamegam" <
[email protected]> wrote:

@cholcombe973 https://github.com/cholcombe973 Did you fix this the rust
binding for QUIC ?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#18 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC6qExYSWXYSmnwlwpoTBuqq0Byy0SGQks5qhUi6gaJpZM4HLMaQ
.

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

3 participants