mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 19:55:06 +03:00
5461125a78
* +crates.io/rustls-ffi * add build step for cbindgen * add make dependency * implement client test Co-authored-by: Jacob Heider <jacob@tea.xyz>
42 lines
No EOL
837 B
YAML
42 lines
No EOL
837 B
YAML
distributable:
|
|
url: https://codeload.github.com/rustls/rustls-ffi/tar.gz/refs/tags/v{{version}}
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: rustls/rustls-ffi/tags
|
|
strip: /v/
|
|
|
|
build:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
tea.xyz/gx/make: '*'
|
|
rust-lang.org/cargo: '*'
|
|
script: |
|
|
cargo install cbindgen
|
|
make DESTDIR={{prefix}}
|
|
make DESTDIR={{prefix}} install
|
|
|
|
test:
|
|
dependencies:
|
|
tea.xyz/gx/cc: c99
|
|
openssl.org: '*' # needed for SSL_CERT_FILE
|
|
env:
|
|
LIBS:
|
|
- -lrustls
|
|
- -lc
|
|
linux:
|
|
LIBS:
|
|
- -lgcc_s
|
|
- -lutil
|
|
- -lrt
|
|
- -lpthread
|
|
- -lm
|
|
- -ldl
|
|
darwin:
|
|
LIBS:
|
|
- -framework Security
|
|
- -liconv
|
|
- -lSystem
|
|
script: |
|
|
cc client.c common.c -o client $LIBS
|
|
CA_FILE=$SSL_CERT_FILE ./client tea.xyz 443 / |