c-ares-sys 0.1.0

Low-level bindings to the c-ares library
docs.rs failed to build c-ares-sys-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: c-ares-sys-9.1.1

Bindings for c-ares, mostly autogenerated by rust-bindgen.

To create ffi.rs, do this:

bindgen -l cares -match ares -o src/ffi.rs /usr/include/ares.h

... and then:

  • add unsafe to the function type declarations for ares_sock_state_cb, ares_callback, ares_host_callback, ares_nameinfo_callback, ares_sock_create_callback
    • Any non-trivial implementations of these callbacks will involve de-referencing raw pointer parameters
  • remove ares_fds and ares_process
    • These both use fd_set.
    • Cursory search didn't find an existing Rust representation of this structure
    • Since the high-level API doesn't use either of these functions, it's simplest just to pretend they're not there