28 releases (18 stable)

Uses new Rust 2021

1.1.10-experimental.all-product-headers-yaml-issue.1 Jun 22, 2022
1.1.7 May 13, 2022
1.1.3 Mar 21, 2022
1.0.19 Dec 23, 2021
1.0.0-alpha9 Mar 23, 2021
Download history 75/week @ 2022-03-15 71/week @ 2022-03-22 5/week @ 2022-03-29 71/week @ 2022-04-05 3/week @ 2022-04-12 8/week @ 2022-04-19 170/week @ 2022-04-26 324/week @ 2022-05-03 643/week @ 2022-05-10 241/week @ 2022-05-17 263/week @ 2022-05-24 286/week @ 2022-05-31 104/week @ 2022-06-07 74/week @ 2022-06-14 58/week @ 2022-06-21 27/week @ 2022-06-28

299 downloads per month
Used in dittolive-ditto

Custom license

46KB
1K 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

~0.6–1MB
~23K SLoC