91 releases (stable)

new 4.7.0-rc.3 Mar 27, 2024
4.5.4 Feb 21, 2024
4.5.1 Dec 18, 2023
4.4.5 Nov 16, 2023
1.0.0-alpha9 Mar 23, 2021

#60 in #native-bindings

Download history 941/week @ 2023-12-06 749/week @ 2023-12-13 315/week @ 2023-12-20 152/week @ 2023-12-27 492/week @ 2024-01-03 572/week @ 2024-01-10 864/week @ 2024-01-17 773/week @ 2024-01-24 476/week @ 2024-01-31 485/week @ 2024-02-07 653/week @ 2024-02-14 1112/week @ 2024-02-21 636/week @ 2024-02-28 1043/week @ 2024-03-06 1032/week @ 2024-03-13 658/week @ 2024-03-20

3,520 downloads per month
Used in dittolive-ditto

Custom license

67KB
1.5K SLoC

libdittoffi System Crate

This is a *-sys crate that is responsible for downloading the underlying Ditto library for your target platform and exposing it to your Rust application. Typical users of dittolive-ditto will not need to interact with this crate directly, except for debugging purposes.

Building

The included build.rs script will attempt to detect your target architecture and download the appropriate copy the binary ditto library (libdittoffi). By default, Cargo (and the underlying linker used by the Rust compiler) will search for this library in a number of places. If you want to cross-compile for a different rustc target, you may need to manually download the appropriate binary. You can also manually download the library and place it in one of the searched locations yourself. Further, you can use the environment variable DITTOFFI_SEARCH_PATH to specify the directory which contains the target library in a way which is platform agnostic. One can also explicitly pass a -L argument to rustc via the RUSTFLAGS environment variable to specify a library search directory, although this will invalidate the build cache of all the dependencies (as touching RUSTFLAGS does).

Note, you can also override build script behavior in your local Cargo config.toml file as described here.

Dependencies

~5–13MB
~124K SLoC