120 releases (73 stable)

new 4.9.0-rc.2 Oct 29, 2024
4.8.2 Sep 25, 2024
4.8.0-rc.1 Jul 11, 2024
4.7.0-rc.3 Mar 27, 2024
1.0.0-alpha9 Mar 23, 2021

#546 in Operating systems

Download history 3680/week @ 2024-07-09 2968/week @ 2024-07-16 3285/week @ 2024-07-23 2647/week @ 2024-07-30 2460/week @ 2024-08-06 2304/week @ 2024-08-13 3155/week @ 2024-08-20 3173/week @ 2024-08-27 4309/week @ 2024-09-03 2959/week @ 2024-09-10 1730/week @ 2024-09-17 3426/week @ 2024-09-24 2243/week @ 2024-10-01 2255/week @ 2024-10-08 2220/week @ 2024-10-15 1712/week @ 2024-10-22

8,869 downloads per month
Used in dittolive-ditto

Custom license

68KB
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–12MB
~137K SLoC