zstd_sys/
lib.rs

1#![allow(non_upper_case_globals)]
2#![allow(non_camel_case_types)]
3#![allow(non_snake_case)]
4#![no_std]
5//! Low-level bindings to the [zstd] library.
6//!
7//! [zstd]: https://facebook.github.io/zstd/
8
9#[cfg(feature = "std")]
10extern crate std;
11
12// The bindings used depend on a few feature flags.
13
14// Std-based (no libc)
15#[cfg(all(
16    feature = "std",
17    not(feature = "experimental"),
18    not(feature = "bindgen")
19))]
20include!("bindings_zstd_std.rs");
21
22#[cfg(all(
23    feature = "std",
24    not(feature = "experimental"),
25    not(feature = "bindgen")
26))]
27include!("bindings_zstd_errors_std.rs");
28
29// Std-based (no libc)
30#[cfg(all(
31    feature = "std",
32    not(feature = "experimental"),
33    feature = "zdict_builder",
34    not(feature = "bindgen")
35))]
36include!("bindings_zdict_std.rs");