ci: update Rust to 1.80.0

This commit is contained in:
link2xt
2024-07-26 19:59:11 +00:00
parent b9b9ed197e
commit 3b040fd4b5
9 changed files with 24 additions and 18 deletions

View File

@@ -24,7 +24,7 @@ jobs:
name: Lint Rust name: Lint Rust
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
RUSTUP_TOOLCHAIN: 1.79.0 RUSTUP_TOOLCHAIN: 1.80.0
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@@ -95,11 +95,11 @@ jobs:
matrix: matrix:
include: include:
- os: ubuntu-latest - os: ubuntu-latest
rust: 1.79.0 rust: 1.80.0
- os: windows-latest - os: windows-latest
rust: 1.79.0 rust: 1.80.0
- os: macos-latest - os: macos-latest
rust: 1.79.0 rust: 1.80.0
# Minimum Supported Rust Version = 1.77.0 # Minimum Supported Rust Version = 1.77.0
- os: ubuntu-latest - os: ubuntu-latest

View File

@@ -190,3 +190,6 @@ vendored = [
"rusqlite/bundled-sqlcipher-vendored-openssl", "rusqlite/bundled-sqlcipher-vendored-openssl",
"reqwest/native-tls-vendored" "reqwest/native-tls-vendored"
] ]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] }

View File

@@ -7,7 +7,7 @@ set -euo pipefail
# #
# Avoid using rustup here as it depends on reading /proc/self/exe and # Avoid using rustup here as it depends on reading /proc/self/exe and
# has problems running under QEMU. # has problems running under QEMU.
RUST_VERSION=1.79.0 RUST_VERSION=1.80.0
ARCH="$(uname -m)" ARCH="$(uname -m)"
test -f "/lib/libc.musl-$ARCH.so.1" && LIBC=musl || LIBC=gnu test -f "/lib/libc.musl-$ARCH.so.1" && LIBC=musl || LIBC=gnu

View File

@@ -82,9 +82,11 @@ impl Chatlist {
/// not needed when DC_GCL_ARCHIVED_ONLY is already set) /// not needed when DC_GCL_ARCHIVED_ONLY is already set)
/// - if the flag DC_GCL_ADD_ALLDONE_HINT is set, DC_CHAT_ID_ALLDONE_HINT /// - if the flag DC_GCL_ADD_ALLDONE_HINT is set, DC_CHAT_ID_ALLDONE_HINT
/// is added as needed. /// is added as needed.
///
/// `query`: An optional query for filtering the list. Only chats matching this query /// `query`: An optional query for filtering the list. Only chats matching this query
/// are returned. When `is:unread` is contained in the query, the chatlist is /// are returned. When `is:unread` is contained in the query, the chatlist is
/// filtered such that only chats with unread messages show up. /// filtered such that only chats with unread messages show up.
///
/// `query_contact_id`: An optional contact ID for filtering the list. Only chats including this contact ID /// `query_contact_id`: An optional contact ID for filtering the list. Only chats including this contact ID
/// are returned. /// are returned.
pub async fn try_load( pub async fn try_load(

View File

@@ -258,6 +258,7 @@ async fn maybe_warn_on_outdated(context: &Context, now: i64, approx_compile_time
/// Generate an ID. The generated ID should be as short and as unique as possible: /// Generate an ID. The generated ID should be as short and as unique as possible:
/// - short, because it may also used as part of Message-ID headers or in QR codes /// - short, because it may also used as part of Message-ID headers or in QR codes
/// - unique as two IDs generated on two devices should not be the same. However, collisions are not world-wide but only by the few contacts. /// - unique as two IDs generated on two devices should not be the same. However, collisions are not world-wide but only by the few contacts.
///
/// IDs generated by this function are 66 bit wide and are returned as 11 base64 characters. /// IDs generated by this function are 66 bit wide and are returned as 11 base64 characters.
/// ///
/// Additional information when used as a message-id or group-id: /// Additional information when used as a message-id or group-id: