uhppote-sys

Crates.iouhppote-sys
lib.rsuhppote-sys
version0.0.4
sourcesrc
created_at2022-07-06 20:21:50.033379
updated_at2022-07-15 17:01:13.389309
descriptionFFI bindings to uhppoted-dll
homepage
repositoryhttps://github.com/wouterdebie/uhppote-sys
max_upload_size
id620747
size13,004,087
Wouter de Bie (wouterdebie)

documentation

README

uhppote-sys

NOTE: This project has been deprecated!

This crate contains FFI bindings for uhppoted-dll that's part of the uhppoted project.

This crate provides low-level and unsafe access to uhppoted-dll. Please use 'uhppote-rs' for safe Rust access to uhppoted-dll.

NOTE Because uhppoted-dll is a Golang library, a working golang installation is necessary to build and use this crate.

How this is built

Most of this crate is generated in build.rs.

  • The original uhppoted-dll source code can be found in src/vendoruhppoted-dll and is compiled using go build to compile a static archive.
  • The resulting uhppoted-dll static library is then copied to the target/ directory.
  • bindgen is used to generate the Rust bindings from the uhppoted-dll C header file.
  • The Rust bindings and static library are then compiled and linked into a single library.

Building from source

git submodule update --init --recursive
cargo build --release

Commit count: 7

cargo fmt