Sha256: 5bede93ec3c91786cd6f86c47fe3a8089f3b951f714a999f6df34be0488022d8

Contents?: true

Size: 1.76 KB

Versions: 15

Compression:

Stored size: 1.76 KB

Contents

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![no_std]
//! Low-level bindings to the [zstd] library.
//!
//! [zstd]: https://facebook.github.io/zstd/

#[cfg(feature = "std")]
extern crate std;

#[cfg(target_arch = "wasm32")]
mod wasm_shim;

// If running bindgen, we'll end up with the correct bindings anyway.
#[cfg(feature = "bindgen")]
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));

// The bindings used depend on a few feature flags.

// No-std (libc-based)
#[cfg(all(
    not(feature = "std"),
    not(feature = "experimental"),
    not(feature = "bindgen")
))]
include!("bindings_zstd.rs");

#[cfg(all(
    not(feature = "std"),
    not(feature = "experimental"),
    feature = "zdict_builder",
    not(feature = "bindgen")
))]
include!("bindings_zdict.rs");

#[cfg(all(
    not(feature = "std"),
    feature = "experimental",
    not(feature = "bindgen")
))]
include!("bindings_zstd_experimental.rs");

#[cfg(all(
    not(feature = "std"),
    feature = "experimental",
    feature = "zdict_builder",
    not(feature = "bindgen")
))]
include!("bindings_zdict_experimental.rs");

// Std-based (no libc)
#[cfg(all(
    feature = "std",
    not(feature = "experimental"),
    not(feature = "bindgen")
))]
include!("bindings_zstd_std.rs");

// Std-based (no libc)
#[cfg(all(
    feature = "std",
    not(feature = "experimental"),
    feature = "zdict_builder",
    not(feature = "bindgen")
))]
include!("bindings_zdict_std.rs");

#[cfg(all(
    feature = "std",
    feature = "experimental",
    not(feature = "bindgen")
))]
include!("bindings_zstd_std_experimental.rs");

#[cfg(all(
    feature = "std",
    feature = "experimental",
    feature = "zdict_builder",
    not(feature = "bindgen")
))]
include!("bindings_zdict_std_experimental.rs");

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wasmtime-13.0.0 ./ext/cargo-vendor/zstd-sys-2.0.8+zstd.1.5.5/src/lib.rs
wasmtime-12.0.1 ./ext/cargo-vendor/zstd-sys-2.0.8+zstd.1.5.5/src/lib.rs
wasmtime-12.0.0 ./ext/cargo-vendor/zstd-sys-2.0.8+zstd.1.5.5/src/lib.rs
wasmtime-11.0.0 ./ext/cargo-vendor/zstd-sys-2.0.8+zstd.1.5.5/src/lib.rs
wasmtime-10.0.1 ./ext/cargo-vendor/zstd-sys-2.0.8+zstd.1.5.5/src/lib.rs
wasmtime-10.0.0 ./ext/cargo-vendor/zstd-sys-2.0.8+zstd.1.5.5/src/lib.rs
wasmtime-9.0.4 ./ext/cargo-vendor/zstd-sys-2.0.8+zstd.1.5.5/src/lib.rs
wasmtime-9.0.1 ./ext/cargo-vendor/zstd-sys-2.0.8+zstd.1.5.5/src/lib.rs
wasmtime-8.0.0 ./ext/cargo-vendor/zstd-sys-2.0.8+zstd.1.5.5/src/lib.rs
wasmtime-7.0.0 ./ext/cargo-vendor/zstd-sys-2.0.7+zstd.1.5.4/src/lib.rs
wasmtime-6.0.1 ./ext/cargo-vendor/zstd-sys-2.0.7+zstd.1.5.4/src/lib.rs
wasmtime-6.0.0 ./ext/cargo-vendor/zstd-sys-2.0.7+zstd.1.5.4/src/lib.rs
wasmtime-5.0.0 ./ext/cargo-vendor/zstd-sys-2.0.5+zstd.1.5.2/src/lib.rs
wasmtime-0.4.1 ./ext/cargo-vendor/zstd-sys-2.0.4+zstd.1.5.2/src/lib.rs
wasmtime-0.4.0 ./ext/cargo-vendor/zstd-sys-2.0.4+zstd.1.5.2/src/lib.rs