libquic icon indicating copy to clipboard operation
libquic copied to clipboard

Rust bindings

Open cholcombe973 opened this issue 9 years ago • 3 comments

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 :).

cholcombe973 avatar Jan 24 '16 18:01 cholcombe973

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.

hodduc avatar Jan 27 '16 08:01 hodduc

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

indykish avatar Aug 19 '16 06:08 indykish

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 https://github.com/devsisters/libquic/issues/18#issuecomment-240936350, or mute the thread https://github.com/notifications/unsubscribe-auth/AC6qExYSWXYSmnwlwpoTBuqq0Byy0SGQks5qhUi6gaJpZM4HLMaQ .

cholcombe973 avatar Aug 19 '16 13:08 cholcombe973