matrix-org / matrix-org/matrix-rust-sdk

Ensure that most / all async methods in the SDK return futures that are `Send` (except on WASM)

Open
#935 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
2.3k
Forks
500
Avg merge
1d 16h
Merged PRs (30d)
106

Description

Currently, we have `#[cfg_attr(not(target_arch = "wasm32"), deny(clippy::future_not_send))]` in a few select places. We should apply it more broadly and fix all of the issues it finds.

Contributor guide

Open the contributing guide

Research direction

Locate the existing #[cfg_attr(not(target_arch = "wasm32"), deny(clippy::future_not_send))] uses and inspect the async SDK methods covered by those modules. Run Clippy with future_not_send enabled on non-WASM targets, then address the reported methods and verify that the lint passes while WASM remains exempt.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend-api-design
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.