chore(ffi): run gen_header.sh in CI environment (#2488)

Clean up the script so that any unexpected error terminates the
script, and stop suppressing errors that may contain useful
information (for example, that you are using the stable version but
need to use the nightly).

This is useful because if hyper.h is not up to date going forward the
CI should flag it. As is, there are a bunch of changes to hyper.h that
have not been checked in (or were generated by a newer version of the
cbindgen script.)

Fixes #2483.
This commit is contained in:
Kevin Burke
2021-04-06 14:46:14 -07:00
committed by GitHub
parent c7ab1aace1
commit a5464f761a
4 changed files with 241 additions and 98 deletions

View File

@@ -1,4 +1,10 @@
# See https://github.com/eqrion/cbindgen/blob/master/docs.md#cbindgentoml for
# a list of possible configuration values.
language = "C"
header = """/*
* Copyright 2021 Sean McArthur. MIT License.
* Generated by gen_header.sh. Do not edit directly.
*/"""
include_guard = "_HYPER_H"
no_includes = true
sys_includes = ["stdint.h", "stddef.h"]