#bindings #build #deprecated #access #golang #uhppoted-dll

yanked uhppote-sys

FFI bindings to uhppoted-dll

0.0.4 Jul 15, 2022
0.0.3 Jul 9, 2022
0.0.2 Jul 7, 2022
0.0.1 Jul 6, 2022

#86 in #golang

MIT license

12MB
11K SLoC

C 2K SLoC // 0.0% comments C# 2K SLoC // 0.0% comments Go 2K SLoC // 0.1% comments C++ 1.5K SLoC // 0.0% comments Common Lisp 1.5K SLoC // 0.0% comments Python 1.5K SLoC // 0.0% comments Rust 61 SLoC // 0.1% comments

Contains (static library, 11MB) docs.rs-build/libuhppoted.a, (Mach-o exe, 535KB) examples, (Mach-o exe, 475KB) vendor/uhppoted-dll/tests/c++/tests, (Mach-o exe, 75KB) vendor/uhppoted-dll/tests/c/tests

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

No runtime deps