Fix websocket header overflow on 32bit arch
This commit is contained in:
parent
466cb425bc
commit
1ebe6ae0a1
5 changed files with 11 additions and 11 deletions
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
|
@ -1,7 +1,7 @@
|
||||||
on:
|
on:
|
||||||
# Indicates I want to run this workflow on all branches, PR, and tags
|
# Indicates I want to run this workflow on all branches, PR, and tags
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches: ["main", "draft"]
|
||||||
tags: ["*"]
|
tags: ["*"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
|
|
@ -24,7 +24,7 @@ builds:
|
||||||
#pre:
|
#pre:
|
||||||
# - /bin/sh -c "if [ ! -e ./goreleaser.go ]; then echo -e 'package main\\\nfunc main() { }' > ./goreleaser.go ; fi"
|
# - /bin/sh -c "if [ ! -e ./goreleaser.go ]; then echo -e 'package main\\\nfunc main() { }' > ./goreleaser.go ; fi"
|
||||||
post:
|
post:
|
||||||
- ./.goreleaser_hook.sh {{ .Arch }} {{ .Os }} {{ .ProjectName }}
|
- ./.goreleaser_hook.sh {{ .Arch }} {{ .Os }} {{ .Arm }} {{ .ProjectName }}
|
||||||
checksum:
|
checksum:
|
||||||
name_template: "checksums.txt"
|
name_template: "checksums.txt"
|
||||||
changelog:
|
changelog:
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
go_arch=$1
|
go_arch=$1
|
||||||
go_os=$2
|
go_os=$2
|
||||||
project_name=$3
|
go_arm=$3
|
||||||
|
project_name=$4
|
||||||
|
|
||||||
# Make Go -> Rust arch/os mapping
|
# Make Go -> Rust arch/os mapping
|
||||||
case $go_arch in
|
case $go_arch in
|
||||||
|
@ -19,7 +20,7 @@ case $go_os in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Find artifacts and uncompress in the coresponding directory
|
# Find artifacts and uncompress in the coresponding directory
|
||||||
DIST_DIR=$(find dist -type d -name "*${go_os}_${go_arch}*")
|
DIST_DIR=$(find dist -type d -name "*${go_os}_${go_arch}*${go_arm}*")
|
||||||
echo "DIST_DIR: $DIST_DIR"
|
echo "DIST_DIR: $DIST_DIR"
|
||||||
rm -f ${DIST_DIR}/${project_name}*
|
rm -f ${DIST_DIR}/${project_name}*
|
||||||
|
|
||||||
|
|
10
Cargo.lock
generated
10
Cargo.lock
generated
|
@ -349,7 +349,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fastwebsockets"
|
name = "fastwebsockets"
|
||||||
version = "0.4.4"
|
version = "0.4.4"
|
||||||
source = "git+https://github.com/mmastrac/fastwebsockets?branch=split#c4c078208a6134e1c7de07691b3117a930868c1a"
|
source = "git+https://github.com/erebe/fastwebsockets?branch=split#beaaaaba94ab55f4d71884e0f1194cc46e407a1b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64",
|
"base64",
|
||||||
"hyper",
|
"hyper",
|
||||||
|
@ -1644,18 +1644,18 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "zerocopy"
|
name = "zerocopy"
|
||||||
version = "0.7.18"
|
version = "0.7.20"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ede7d7c7970ca2215b8c1ccf4d4f354c4733201dfaaba72d44ae5b37472e4901"
|
checksum = "dd66a62464e3ffd4e37bd09950c2b9dd6c4f8767380fabba0d523f9a775bc85a"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"zerocopy-derive",
|
"zerocopy-derive",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "zerocopy-derive"
|
name = "zerocopy-derive"
|
||||||
version = "0.7.18"
|
version = "0.7.20"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "4b27b1bb92570f989aac0ab7e9cbfbacdd65973f7ee920d9f0e71ebac878fd0b"
|
checksum = "255c4596d41e6916ced49cfafea18727b24d67878fa180ddfd69b9df34fd1726"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
|
|
|
@ -12,8 +12,7 @@ url = "2.4.1"
|
||||||
anyhow = "1.0.75"
|
anyhow = "1.0.75"
|
||||||
|
|
||||||
hyper = { version = "0.14.27", features = ["client", "runtime"] }
|
hyper = { version = "0.14.27", features = ["client", "runtime"] }
|
||||||
#fastwebsockets = { version = "0.4.4", features = ["upgrade"]}
|
fastwebsockets = { git = "https://github.com/erebe/fastwebsockets", branch = "split", features = ["upgrade", "simd", "unstable-split"]}
|
||||||
fastwebsockets = { git = "https://github.com/mmastrac/fastwebsockets", branch = "split", features = ["upgrade", "simd", "unstable-split"]}
|
|
||||||
libc = { version = "0.2.149", features = []}
|
libc = { version = "0.2.149", features = []}
|
||||||
once_cell = { version = "1.18.0", features = [] }
|
once_cell = { version = "1.18.0", features = [] }
|
||||||
ahash = { version = "0.8.6", features = []}
|
ahash = { version = "0.8.6", features = []}
|
||||||
|
|
Loading…
Reference in a new issue