Sha256: 2623d6c71b16f3fa1ccf584367182dd059fee55ba0ef98268bc921920ddb2b6e

Contents?: true

Size: 1.18 KB

Versions: 15

Compression:

Stored size: 1.18 KB

Contents

#!/bin/sh

# Bump this to 1.64 (released Sep 2022) at some point. 6 months after release?
RUST_TARGET=1.47
bindgen="bindgen --no-layout-tests --blocklist-type=max_align_t --size_t-is-usize --rustified-enum=.* --use-core --rust-target $RUST_TARGET"
no_std="--ctypes-prefix libc"
experimental="-DZSTD_STATIC_LINKING_ONLY -DZDICT_STATIC_LINKING_ONLY"

run_bindgen()
{
        echo "/*
This file is auto-generated from the public API of the zstd library.
It is released under the same BSD license.

$(cat zstd/LICENSE)
*/"

    $bindgen $@
}

for NO_STD_ARG in "$no_std" ""; do
    for EXPERIMENTAL_ARG in "$experimental" ""; do
        if [ -z "$NO_STD_ARG" ]; then STD="_std"; else STD=""; fi
        if [ -z "$EXPERIMENTAL_ARG" ]; then EXPERIMENTAL=""; else EXPERIMENTAL="_experimental"; fi
        SUFFIX=${STD}${EXPERIMENTAL}
        filename=src/bindings${STD}${EXPERIMENTAL}.rs

        run_bindgen zstd.h --allowlist-type "ZSTD_.*" --allowlist-function "ZSTD_.*" --allowlist-var "ZSTD_.*" $NO_STD_ARG -- -Izstd/lib $EXPERIMENTAL_ARG > src/bindings_zstd${SUFFIX}.rs
        run_bindgen zdict.h --blocklist-type wchar_t $NO_STD_ARG -- -Izstd/lib $EXPERIMENTAL_ARG > src/bindings_zdict${SUFFIX}.rs
    done
done

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/update_bindings.sh
wasmtime-12.0.1 ./ext/cargo-vendor/zstd-sys-2.0.8+zstd.1.5.5/update_bindings.sh
wasmtime-12.0.0 ./ext/cargo-vendor/zstd-sys-2.0.8+zstd.1.5.5/update_bindings.sh
wasmtime-11.0.0 ./ext/cargo-vendor/zstd-sys-2.0.8+zstd.1.5.5/update_bindings.sh
wasmtime-10.0.1 ./ext/cargo-vendor/zstd-sys-2.0.8+zstd.1.5.5/update_bindings.sh
wasmtime-10.0.0 ./ext/cargo-vendor/zstd-sys-2.0.8+zstd.1.5.5/update_bindings.sh
wasmtime-9.0.4 ./ext/cargo-vendor/zstd-sys-2.0.8+zstd.1.5.5/update_bindings.sh
wasmtime-9.0.1 ./ext/cargo-vendor/zstd-sys-2.0.8+zstd.1.5.5/update_bindings.sh
wasmtime-8.0.0 ./ext/cargo-vendor/zstd-sys-2.0.8+zstd.1.5.5/update_bindings.sh
wasmtime-7.0.0 ./ext/cargo-vendor/zstd-sys-2.0.7+zstd.1.5.4/update_bindings.sh
wasmtime-6.0.1 ./ext/cargo-vendor/zstd-sys-2.0.7+zstd.1.5.4/update_bindings.sh
wasmtime-6.0.0 ./ext/cargo-vendor/zstd-sys-2.0.7+zstd.1.5.4/update_bindings.sh
wasmtime-5.0.0 ./ext/cargo-vendor/zstd-sys-2.0.5+zstd.1.5.2/update_bindings.sh
wasmtime-0.4.1 ./ext/cargo-vendor/zstd-sys-2.0.4+zstd.1.5.2/update_bindings.sh
wasmtime-0.4.0 ./ext/cargo-vendor/zstd-sys-2.0.4+zstd.1.5.2/update_bindings.sh