Lines Matching +full:cross +full:- +full:compile
3 The `libusb1-sys` crate provides declarations and linkage for the `libusb` C library. Following the
4 `*-sys` package conventions, the `libusb1-sys` crate does not define higher-level abstractions over
8 In order to use the `libusb1-sys` crate, you must have the `libusb` library installed where it can …
9 found by `pkg-config`.
11 All systems supported by `libusb` are also supported by the `libusb1-sys` crate. It's been tested on
14 ### Cross-Compiling
15 To link to a cross-compiled version of the native `libusb` library, it's necessary to set several
16 environment variables to configure `pkg-config` to work with a cross-compiler's sysroot. [Autotools
18 cross-compilation](https://autotools.io/pkgconfig/cross-compiling.html) with `pkg-config`.
20 However, Rust's [`pkg-config` build helper](https://github.com/alexcrichton/pkg-config-rs) doesn't
21 support calling a `$CHOST`-prefixed `pkg-config`. It will always call `pkg-config` without a prefix.
22 To cross-compile `libusb1-sys` with the `pkg-config` build helper, one must define the environment
24 `pkg-config`. It's also necessary to set `PKG_CONFIG_ALLOW_CROSS` to tell Rust's `pkg-config` helper
25 that it's okay to proceed with a cross-compile.
27 To adapt the `pkg-config` wrapper in the Autotools Mythbuster guide so that it works with Rust, one
44 Add `libusb1-sys` as a dependency in `Cargo.toml`:
48 libusb1-sys = "0.6"
52 library. See the [`libusb` 1.0 API documention](http://libusb.sourceforge.net/api-1.0/) for more
67 `libusb1-sys` exports [metadata] so that dependent crates can find the correct `libusb.h` header
68 and compile native code that depends on `libusb`. If a crate has a direct dependency on `libusb1-sy…
72 * `DEP_USB_1.0_VENDORED` is set with a value of `1` if `libusb1-sys` compiled and linked to
77 [metadata]: https://doc.rust-lang.org/cargo/reference/build-scripts.html#the-links-manifest-key
80 Since `libusb1-sys` is no more than a wrapper around the native `libusb` library, the best source f…
84 * [API Documentation](http://libusb.sourceforge.net/api-1.0/)