Skip to content

Commit 08c02c9

Browse files
justsmthaws-lc-sys-bindings-generator
andauthored
Prepare aws-lc-sys v0.32.1 (#898)
* Bump aws-lc-sys v0.32.1 * Update workflow to have rustfmt * Symbols from ubuntu-latest * Symbols from macos-14 * Symbols from macos-13 * Symbols from x86_64-pc-windows-msvc * Symbols from x86_64-pc-windows-gnu * Symbols from i686-pc-windows-msvc * Symbols for powerpc-unknown-linux-gnu * Symbols for i686-unknown-linux-gnu * Symbols for aarch64-unknown-linux-musl * Symbols for arm-unknown-linux-gnueabi * Symbols for x86_64-unknown-linux-musl * Symbols from aarch64-pc-windows-msvc * Symbols for armv7-unknown-linux-gnueabihf * Symbols for aarch64-unknown-linux-gnu * Symbols for powerpc64le-unknown-linux-gnu * Generated headers * Generated bindings from ubuntu-latest * Generated bindings from macos-14 * Generated bindings from macos-13 * Generated bindings for aarch64-linux-android * Generated bindings for aarch64-unknown-linux-gnu * Generated bindings for i686-unknown-linux-gnu * Generated bindings for i686-pc-windows-msvc * Generated bindings for riscv64gc-unknown-linux-gnu * Generated bindings for x86_64-unknown-linux-musl * Generated bindings for aarch64-unknown-linux-musl * Generated bindings for x86_64-pc-windows-msvc * Generated bindings for x86_64-pc-windows-gnu * Generated bindings for aarch64-pc-windows-msvc * Collected source files from macos-14 * Collected source files from ubuntu-latest * Collected source files for x86_64-unknown-linux-musl * Collected source files for i686-unknown-linux-gnu * Collected NASM files * Collected source files for aarch64-unknown-linux-gnu * Collected source files for aarch64-unknown-linux-musl * Collected source files from macos-13 * Collected source files for riscv64gc-unknown-linux-gnu * Improve CI for musl targets --------- Co-authored-by: aws-lc-sys-bindings-generator <[email protected]>
1 parent ee368e0 commit 08c02c9

File tree

81 files changed

+34927
-34874
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+34927
-34874
lines changed

.github/workflows/cross.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,3 +449,30 @@ jobs:
449449
if: matrix.generator == 'msys'
450450
shell: msys2 {0}
451451
run: cargo test --verbose --features bindgen --release -p aws-lc-rs
452+
453+
musl-tests:
454+
name: musl - ${{ matrix.config.arch }}
455+
env:
456+
CC: musl-gcc
457+
strategy:
458+
fail-fast: false
459+
matrix:
460+
config:
461+
- { host: 'ubuntu-latest', arch: 'x86_64' }
462+
- { host: 'ubuntu-24.04-arm', arch: 'aarch64' }
463+
runs-on: ${{ matrix.config.host }}
464+
container:
465+
image: rust:latest
466+
options: "--platform linux/${{ (matrix.config.arch == 'aarch64' && 'arm64/v8') || 'amd64'}}"
467+
steps:
468+
- uses: actions/checkout@v4
469+
with:
470+
submodules: "recursive"
471+
- run: |
472+
set -x
473+
apt-get update
474+
apt-get install -y musl-tools musl-dev
475+
- name: Build
476+
run: cargo build --verbose --release -p aws-lc-rs
477+
- name: Test
478+
run: cargo test --verbose -p aws-lc-rs

.github/workflows/sys-bindings-generator.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535
submodules: 'recursive'
3636
ref: ${{ github.ref_name }}
3737
- uses: dtolnay/rust-toolchain@stable
38+
with:
39+
components: 'rustfmt'
3840
- uses: actions/setup-go@v4
3941
with:
4042
go-version: '>=1.20'
@@ -69,11 +71,12 @@ jobs:
6971
with:
7072
submodules: 'recursive'
7173
ref: ${{ github.ref_name }}
72-
- uses: dtolnay/rust-toolchain@master
74+
- uses: dtolnay/rust-toolchain@stable
7375
id: toolchain
7476
with:
7577
toolchain: stable
7678
target: ${{ matrix.target }}
79+
components: 'rustfmt'
7780
- if: contains(matrix.target, 'x86') || contains(matrix.target, 'i686')
7881
uses: ilammy/setup-nasm@v1
7982
- uses: actions/setup-go@v4
@@ -113,6 +116,8 @@ jobs:
113116
submodules: 'recursive'
114117
ref: ${{ github.ref_name }}
115118
- uses: dtolnay/rust-toolchain@stable
119+
with:
120+
components: 'rustfmt'
116121
- uses: actions/setup-go@v4
117122
with:
118123
go-version: '>=1.20'
@@ -137,10 +142,13 @@ jobs:
137142
with:
138143
submodules: 'recursive'
139144
ref: ${{ github.ref_name }}
140-
- uses: dtolnay/rust-toolchain@master
145+
- uses: dtolnay/rust-toolchain@stable
141146
with:
147+
components: 'rustfmt'
142148
toolchain: ${{ env.RUST_SCRIPT_NIGHTLY_TOOLCHAIN }}
143149
- uses: dtolnay/rust-toolchain@stable
150+
with:
151+
components: 'rustfmt'
144152
- uses: actions/setup-go@v4
145153
with:
146154
go-version: '>=1.20'
@@ -164,6 +172,8 @@ jobs:
164172
submodules: 'recursive'
165173
ref: ${{ github.ref_name }}
166174
- uses: dtolnay/rust-toolchain@stable
175+
with:
176+
components: 'rustfmt'
167177
- name: Install current Bash on macOS
168178
if: runner.os == 'macOS'
169179
run: brew install bash coreutils
@@ -191,11 +201,12 @@ jobs:
191201
with:
192202
submodules: 'recursive'
193203
ref: ${{ github.ref_name }}
194-
- uses: dtolnay/rust-toolchain@master
204+
- uses: dtolnay/rust-toolchain@stable
195205
id: toolchain
196206
with:
197207
toolchain: stable
198208
target: ${{ matrix.target }}
209+
components: 'rustfmt'
199210
- if: contains(matrix.target, 'x86') || contains(matrix.target, 'i686')
200211
uses: ilammy/setup-nasm@v1
201212
- uses: actions/setup-go@v4
@@ -229,6 +240,8 @@ jobs:
229240
submodules: 'recursive'
230241
ref: ${{ github.ref_name }}
231242
- uses: dtolnay/rust-toolchain@stable
243+
with:
244+
components: 'rustfmt'
232245
- name: Install cross
233246
run: cargo install cross --locked --git https://github.com/cross-rs/cross
234247
- name: Generate bindings for ${{ matrix.target }}
@@ -252,6 +265,8 @@ jobs:
252265
submodules: 'recursive'
253266
ref: ${{ github.ref_name }}
254267
- uses: dtolnay/rust-toolchain@stable
268+
with:
269+
components: 'rustfmt'
255270
- name: Install current Bash on macOS
256271
if: runner.os == 'macOS'
257272
run: brew install bash coreutils
@@ -275,6 +290,8 @@ jobs:
275290
submodules: 'recursive'
276291
ref: ${{ github.ref_name }}
277292
- uses: dtolnay/rust-toolchain@stable
293+
with:
294+
components: 'rustfmt'
278295
- name: Install cross
279296
run: cargo install cross --locked --git https://github.com/cross-rs/cross
280297
- name: Collect source for ${{ matrix.target }}
@@ -290,11 +307,12 @@ jobs:
290307
with:
291308
submodules: 'recursive'
292309
ref: ${{ github.ref_name }}
293-
- uses: dtolnay/rust-toolchain@master
310+
- uses: dtolnay/rust-toolchain@stable
294311
id: toolchain
295312
with:
296313
toolchain: stable
297314
targets: "x86_64-pc-windows-msvc,x86_64-pc-windows-gnu"
315+
components: 'rustfmt'
298316
- uses: ilammy/setup-nasm@v1
299317
- name: Build aws-lc-sys
300318
shell: bash

aws-lc-sys/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "aws-lc-sys"
33
description = "AWS-LC is a general-purpose cryptographic library maintained by the AWS Cryptography team for AWS and their customers. It іs based on code from the Google BoringSSL project and the OpenSSL project."
4-
version = "0.32.0"
5-
links = "aws_lc_0_32_0"
4+
version = "0.32.1"
5+
links = "aws_lc_0_32_1"
66
authors = ["AWS-LC"]
77
edition = "2021"
88
repository = "https://github.com/aws/aws-lc-rs"
@@ -79,7 +79,7 @@ bindgen = { workspace = true, optional = true }
7979
bindgen.workspace = true
8080

8181
[package.metadata.aws-lc-sys]
82-
commit-hash = "0fa8839018a3d98bae2fb24c557183d8ca02e6c5"
82+
commit-hash = "8ca0b29b141bb8c7eae06ef324e2091d5648d819"
8383

8484
[package.metadata.cargo-udeps.ignore]
8585
build = ["libloading"]

aws-lc-sys/aws-lc

Submodule aws-lc updated 90 files

aws-lc-sys/builder/cc_builder.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,14 @@ impl CcBuilder {
637637
self.compiler_features.set(compiler_features);
638638
cc_build.define("MY_ASSEMBLER_SUPPORTS_NEON_SHA3_EXTENSION", Some("1"));
639639
}
640+
if target_os() == "linux" {
641+
if self.compiler_check("linux_random_h", Vec::<&'static str>::new()) {
642+
cc_build.define("HAVE_LINUX_RANDOM_H", Some("1"));
643+
} else if self.compiler_check("linux_random_h", vec!["-DDEFINE_U32"]) {
644+
cc_build.define("HAVE_LINUX_RANDOM_H", Some("1"));
645+
cc_build.define("AWS_LC_URANDOM_NEEDS_U32", Some("1"));
646+
}
647+
}
640648
self.memcmp_check();
641649
}
642650
}

aws-lc-sys/builder/cc_builder/aarch64_apple_darwin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR ISC
3-
// Fri Sep 19 11:49:10 UTC 2025
3+
// Fri Sep 26 20:49:09 UTC 2025
44

55
use crate::cc_builder::Library;
66

aws-lc-sys/builder/cc_builder/aarch64_unknown_linux_gnu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR ISC
3-
// Fri Sep 19 11:53:25 UTC 2025
3+
// Fri Sep 26 20:52:30 UTC 2025
44

55
use crate::cc_builder::Library;
66

aws-lc-sys/builder/cc_builder/aarch64_unknown_linux_musl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR ISC
3-
// Fri Sep 19 11:52:48 UTC 2025
3+
// Fri Sep 26 20:52:18 UTC 2025
44

55
use crate::cc_builder::Library;
66

aws-lc-sys/builder/cc_builder/i686_unknown_linux_gnu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR ISC
3-
// Fri Sep 19 11:53:13 UTC 2025
3+
// Fri Sep 26 20:52:20 UTC 2025
44

55
use crate::cc_builder::Library;
66

aws-lc-sys/builder/cc_builder/riscv64gc_unknown_linux_gnu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR ISC
3-
// Fri Sep 19 11:54:19 UTC 2025
3+
// Fri Sep 26 20:52:24 UTC 2025
44

55
use crate::cc_builder::Library;
66

0 commit comments

Comments
 (0)