Skip to content

Commit bf49ab7

Browse files
author
admin
committedJan 14, 2025·
error: extern block cannot be declared unsafe
issue: rust-lang/rust-bindgen#3015 rust-lang/rust-bindgen#2901 error[E0433]: failed to resolve: could not find `offset_of` in mem issue: rust-lang/rust-bindgen#2960 Use unsafe extern instead of extern in blocks for any Rust target after 1.82
1 parent 17865ac commit bf49ab7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
 

‎.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ jobs:
201201
echo "PKG_CONFIG_PATH=$PWD/ffmpeg-libs/lib/amd64/pkgconfig" >> "$GITHUB_ENV"
202202
echo "LD_LIBRARY_PATH=$PWD/ffmpeg-libs" >> "$GITHUB_ENV"
203203
# rust-version from Cargo.toml
204-
- name: Install Rust 1.70.0
205-
uses: dtolnay/rust-toolchain@1.70.0
204+
- name: Install Rust 1.82.0
205+
uses: dtolnay/rust-toolchain@1.82.0
206206
- uses: Swatinem/rust-cache@v2
207207
with:
208208
prefix-key: "v2-rust"

‎Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ categories = ["multimedia"]
1616
include = ["LICENSE", "build.rs", "src/"]
1717

1818
# When changing MSRV: Also update build.yml and README.md
19-
rust-version = "1.70.0"
19+
rust-version = "1.82.0"
2020

2121
[dependencies]
2222
libc = "0.2"

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ If you have significant, demonstrable experience in Rust and multimedia-related
2727

2828
## Minimum supported Rust version (MSRV)
2929

30-
Both `ffmpeg-the-third` and `ffmpeg-sys-the-third` currently require a Rust version of 1.70.0 or higher. Increases in MSRV will result in a semver MINOR version increase.
30+
Both `ffmpeg-the-third` and `ffmpeg-sys-the-third` currently require a Rust version of 1.82.0 or higher. Increases in MSRV will result in a semver MINOR version increase.
3131

3232
If you are having issues compiling this crate on your version of Rust, there are two tools you can use to help find MSRV-compatible dependency versions:
3333

‎ffmpeg-sys-third/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ keywords = ["audio", "video"]
1919
categories = ["multimedia", "external-ffi-bindings"]
2020

2121
# When changing MSRV: Also update build.yml and README.md
22-
rust-version = "1.70.0"
22+
rust-version = "1.82.0"
2323

2424
[lib]
2525
# Disable doctests as a workaround for https://github.com/rust-lang/rust-bindgen/issues/1313

0 commit comments

Comments
 (0)
Please sign in to comment.