File: generate-yyjson

package info (click to toggle)
python-orjson 3.10.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,180 kB
  • sloc: ansic: 11,270; python: 6,658; sh: 135; makefile: 9
file content (25 lines) | stat: -rwxr-xr-x 728 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash

set -eou pipefail

_repo="$(dirname "$(dirname "${BASH_SOURCE[0]}")")"

bindgen \
    "${_repo}/include/yyjson/yyjson.h" \
    --size_t-is-usize \
    --disable-header-comment \
    --no-derive-copy \
    --no-derive-debug \
    --no-doc-comments \
    --no-layout-tests \
    --allowlist-function=yyjson_alc_pool_init \
    --allowlist-function=yyjson_doc_free \
    --allowlist-function=yyjson_read_opts \
    --allowlist-type=yyjson_alc \
    --allowlist-type=yyjson_doc \
    --allowlist-type=yyjson_read_code \
    --allowlist-type=yyjson_read_err \
    --allowlist-type=yyjson_val \
    --allowlist-var=YYJSON_READ_NOFLAG \
    --allowlist-var=YYJSON_READ_SUCCESS \
    > "${_repo}/src/ffi/yyjson.rs"