mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
Reapply "build: increase MSRV to 1.81.0"
This reverts commit 9d331483e9.
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -103,9 +103,9 @@ jobs:
|
|||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
rust: 1.84.0
|
rust: 1.84.0
|
||||||
|
|
||||||
# Minimum Supported Rust Version = 1.77.0
|
# Minimum Supported Rust Version = 1.81.0
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
rust: 1.77.0
|
rust: 1.81.0
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name = "deltachat"
|
|||||||
version = "1.154.3"
|
version = "1.154.3"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
rust-version = "1.77"
|
rust-version = "1.81"
|
||||||
repository = "https://github.com/deltachat/deltachat-core-rust"
|
repository = "https://github.com/deltachat/deltachat-core-rust"
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
|
|||||||
@@ -313,7 +313,7 @@ impl ChatId {
|
|||||||
|
|
||||||
/// Create a group or mailinglist raw database record with the given parameters.
|
/// Create a group or mailinglist raw database record with the given parameters.
|
||||||
/// The function does not add SELF nor checks if the record already exists.
|
/// The function does not add SELF nor checks if the record already exists.
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[expect(clippy::too_many_arguments)]
|
||||||
pub(crate) async fn create_multiuser_record(
|
pub(crate) async fn create_multiuser_record(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
chattype: Chattype,
|
chattype: Chattype,
|
||||||
@@ -4616,7 +4616,7 @@ pub(crate) async fn delete_and_reset_all_device_msgs(context: &Context) -> Resul
|
|||||||
///
|
///
|
||||||
/// For example, it can be a message showing that a member was added to a group.
|
/// For example, it can be a message showing that a member was added to a group.
|
||||||
/// Doesn't fail if the chat doesn't exist.
|
/// Doesn't fail if the chat doesn't exist.
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[expect(clippy::too_many_arguments)]
|
||||||
pub(crate) async fn add_info_msg_with_cmd(
|
pub(crate) async fn add_info_msg_with_cmd(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
chat_id: ChatId,
|
chat_id: ChatId,
|
||||||
|
|||||||
@@ -802,7 +802,6 @@ impl Contact {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let mut name = sanitize_name(name);
|
let mut name = sanitize_name(name);
|
||||||
#[allow(clippy::collapsible_if)]
|
|
||||||
if origin <= Origin::OutgoingTo {
|
if origin <= Origin::OutgoingTo {
|
||||||
// The user may accidentally have written to a "noreply" address with another MUA:
|
// The user may accidentally have written to a "noreply" address with another MUA:
|
||||||
if addr.contains("noreply")
|
if addr.contains("noreply")
|
||||||
|
|||||||
@@ -1331,7 +1331,7 @@ impl Session {
|
|||||||
/// Returns the last UID fetched successfully and the info about each downloaded message.
|
/// Returns the last UID fetched successfully and the info about each downloaded message.
|
||||||
/// If the message is incorrect or there is a failure to write a message to the database,
|
/// If the message is incorrect or there is a failure to write a message to the database,
|
||||||
/// it is skipped and the error is logged.
|
/// it is skipped and the error is logged.
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[expect(clippy::too_many_arguments)]
|
||||||
pub(crate) async fn fetch_many_msgs(
|
pub(crate) async fn fetch_many_msgs(
|
||||||
&mut self,
|
&mut self,
|
||||||
context: &Context,
|
context: &Context,
|
||||||
@@ -2726,7 +2726,6 @@ mod tests {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::too_many_arguments)]
|
|
||||||
async fn check_target_folder_combination(
|
async fn check_target_folder_combination(
|
||||||
folder: &str,
|
folder: &str,
|
||||||
mvbox_move: bool,
|
mvbox_move: bool,
|
||||||
|
|||||||
@@ -1150,7 +1150,6 @@ impl MimeFactory {
|
|||||||
part.body(text)
|
part.body(text)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::cognitive_complexity)]
|
|
||||||
async fn render_message(
|
async fn render_message(
|
||||||
&mut self,
|
&mut self,
|
||||||
context: &Context,
|
context: &Context,
|
||||||
|
|||||||
@@ -1290,7 +1290,7 @@ impl MimeMessage {
|
|||||||
Ok(self.parts.len() > old_part_count)
|
Ok(self.parts.len() > old_part_count)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[expect(clippy::too_many_arguments)]
|
||||||
async fn do_add_single_file_part(
|
async fn do_add_single_file_part(
|
||||||
&mut self,
|
&mut self,
|
||||||
context: &Context,
|
context: &Context,
|
||||||
|
|||||||
@@ -373,7 +373,6 @@ impl Params {
|
|||||||
/// Note that in the [ParamsFile::FsPath] case the blob can be
|
/// Note that in the [ParamsFile::FsPath] case the blob can be
|
||||||
/// created without copying if the path already refers to a valid
|
/// created without copying if the path already refers to a valid
|
||||||
/// blob. If so a [BlobObject] will be returned.
|
/// blob. If so a [BlobObject] will be returned.
|
||||||
#[allow(clippy::needless_lifetimes)]
|
|
||||||
pub async fn get_blob<'a>(
|
pub async fn get_blob<'a>(
|
||||||
&self,
|
&self,
|
||||||
key: Param,
|
key: Param,
|
||||||
|
|||||||
@@ -21,11 +21,9 @@ use tokio::runtime::Handle;
|
|||||||
use crate::constants::KeyGenType;
|
use crate::constants::KeyGenType;
|
||||||
use crate::key::{DcKey, Fingerprint};
|
use crate::key::{DcKey, Fingerprint};
|
||||||
|
|
||||||
#[allow(missing_docs)]
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
pub(crate) const HEADER_AUTOCRYPT: &str = "autocrypt-prefer-encrypt";
|
pub(crate) const HEADER_AUTOCRYPT: &str = "autocrypt-prefer-encrypt";
|
||||||
|
|
||||||
#[allow(missing_docs)]
|
|
||||||
pub const HEADER_SETUPCODE: &str = "passphrase-begin";
|
pub const HEADER_SETUPCODE: &str = "passphrase-begin";
|
||||||
|
|
||||||
/// Preferred symmetric encryption algorithm.
|
/// Preferred symmetric encryption algorithm.
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ mod tests {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::assertions_on_constants)]
|
#[expect(clippy::assertions_on_constants)]
|
||||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||||
async fn test_quota_thresholds() -> anyhow::Result<()> {
|
async fn test_quota_thresholds() -> anyhow::Result<()> {
|
||||||
assert!(QUOTA_ALLCLEAR_PERCENTAGE > 50);
|
assert!(QUOTA_ALLCLEAR_PERCENTAGE > 50);
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ async fn insert_tombstone(context: &Context, rfc724_mid: &str) -> Result<MsgId>
|
|||||||
/// If `is_partial_download` is set, it contains the full message size in bytes.
|
/// If `is_partial_download` is set, it contains the full message size in bytes.
|
||||||
/// Do not confuse that with `replace_msg_id` that will be set when the full message is loaded
|
/// Do not confuse that with `replace_msg_id` that will be set when the full message is loaded
|
||||||
/// later.
|
/// later.
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[expect(clippy::too_many_arguments)]
|
||||||
pub(crate) async fn receive_imf_inner(
|
pub(crate) async fn receive_imf_inner(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
folder: &str,
|
folder: &str,
|
||||||
@@ -696,7 +696,7 @@ pub async fn from_field_to_contact_id(
|
|||||||
/// Creates a `ReceivedMsg` from given parts which might consist of
|
/// Creates a `ReceivedMsg` from given parts which might consist of
|
||||||
/// multiple messages (if there are multiple attachments).
|
/// multiple messages (if there are multiple attachments).
|
||||||
/// Every entry in `mime_parser.parts` produces a new row in the `msgs` table.
|
/// Every entry in `mime_parser.parts` produces a new row in the `msgs` table.
|
||||||
#[allow(clippy::too_many_arguments, clippy::cognitive_complexity)]
|
#[expect(clippy::too_many_arguments)]
|
||||||
async fn add_parts(
|
async fn add_parts(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
mime_parser: &mut MimeMessage,
|
mime_parser: &mut MimeMessage,
|
||||||
@@ -1843,7 +1843,7 @@ async fn lookup_chat_by_reply(
|
|||||||
Ok(Some((parent_chat.id, parent_chat.blocked)))
|
Ok(Some((parent_chat.id, parent_chat.blocked)))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[expect(clippy::too_many_arguments)]
|
||||||
async fn lookup_chat_or_create_adhoc_group(
|
async fn lookup_chat_or_create_adhoc_group(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
mime_parser: &MimeMessage,
|
mime_parser: &MimeMessage,
|
||||||
@@ -1988,7 +1988,7 @@ async fn is_probably_private_reply(
|
|||||||
/// than two members, a new ad hoc group is created.
|
/// than two members, a new ad hoc group is created.
|
||||||
///
|
///
|
||||||
/// On success the function returns the created (chat_id, chat_blocked) tuple.
|
/// On success the function returns the created (chat_id, chat_blocked) tuple.
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[expect(clippy::too_many_arguments)]
|
||||||
async fn create_group(
|
async fn create_group(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
mime_parser: &mut MimeMessage,
|
mime_parser: &mut MimeMessage,
|
||||||
@@ -2205,7 +2205,6 @@ async fn update_chats_contacts_timestamps(
|
|||||||
///
|
///
|
||||||
/// * `to_ids` - contents of the `To` and `Cc` headers.
|
/// * `to_ids` - contents of the `To` and `Cc` headers.
|
||||||
/// * `past_ids` - contents of the `Chat-Group-Past-Members` header.
|
/// * `past_ids` - contents of the `Chat-Group-Past-Members` header.
|
||||||
#[allow(clippy::too_many_arguments)]
|
|
||||||
async fn apply_group_changes(
|
async fn apply_group_changes(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
mime_parser: &mut MimeMessage,
|
mime_parser: &mut MimeMessage,
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ impl Smtp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Connect using the provided login params.
|
/// Connect using the provided login params.
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[expect(clippy::too_many_arguments)]
|
||||||
pub async fn connect(
|
pub async fn connect(
|
||||||
&mut self,
|
&mut self,
|
||||||
context: &Context,
|
context: &Context,
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ async fn new_smtp_transport<S: AsyncBufRead + AsyncWrite + Unpin>(
|
|||||||
Ok(transport)
|
Ok(transport)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::too_many_arguments)]
|
#[expect(clippy::too_many_arguments)]
|
||||||
pub(crate) async fn connect_and_auth(
|
pub(crate) async fn connect_and_auth(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
proxy_config: &Option<ProxyConfig>,
|
proxy_config: &Option<ProxyConfig>,
|
||||||
|
|||||||
Reference in New Issue
Block a user