👷 Add cargo spellcheck tool
All checks were successful
ci/woodpecker/pr/validate Pipeline was successful

This commit is contained in:
2025-04-27 21:12:32 +02:00
parent cd0a763c0a
commit 8684086c74
5 changed files with 32 additions and 6 deletions

View File

@@ -14,6 +14,13 @@ steps:
# Not ready to block PR on fail # Not ready to block PR on fail
failure: ignore failure: ignore
- name: lint - spellcheck
image: rust:1.86
commands: |
apt update && apt install -y libclang-dev hunspell
cargo install --locked cargo-spellcheck
cargo spellcheck
- name: lint - dependencies - name: lint - dependencies
image: rust:1.86 image: rust:1.86
commands: | commands: |

View File

@@ -7,6 +7,9 @@ license = "AGPL-3.0-or-later"
[features] [features]
default = [] default = []
[package.metadata.spellcheck]
config = "./spellcheck.toml"
[dependencies] [dependencies]
# Errors # Errors
anyhow = "1.0.75" anyhow = "1.0.75"

View File

@@ -14,8 +14,8 @@ reinvent the wheel. This solution provides:
- [Open-source protocol](https://spec.matrix.org/v1.9/). - [Open-source protocol](https://spec.matrix.org/v1.9/).
- Features expected for a messaging solution in 2024 (multi-devices management, emojis, integrations, redaction, - Features expected for a messaging solution in 2024 (multi-devices management, emojis, integrations, redaction,
spaces, ...). spaces, ...).
- Multi-platforms clients (Android, iOS and Webclient). - Multi-platforms clients (Android, iOS and web-client).
- SDK available for each platform and a new Rust sdk supporting all the previously listed platforms. - SDK available for each platform and a new Rust SDK supporting all the previously listed platforms.
- Conference stack ([Element Call](https://github.com/element-hq/element-call)). - Conference stack ([Element Call](https://github.com/element-hq/element-call)).
- End-to-end encryption. - End-to-end encryption.
- Federation management. - Federation management.
@@ -28,16 +28,16 @@ API)](https://spec.matrix.org/v1.9/client-server-api/) protocol.
Even if the Rust SDK is still in beta, it seems to be the future one (cf. [Element X - experience the future of Even if the Rust SDK is still in beta, it seems to be the future one (cf. [Element X - experience the future of
Element!](https://element.io/blog/element-x-experience-the-future-of-element/)) and a good choice for someone starting a Element!](https://element.io/blog/element-x-experience-the-future-of-element/)) and a good choice for someone starting a
new client... from my point of vue. new client... from my point of view.
The SDK choosen, a Rust (to avoid to use the bindings provided by the matrix-rust-sdk and mostly because I want to The SDK chosen, a Rust (to avoid to use the bindings provided by the matrix-rust-sdk and mostly because I want to
learn Rust) graphical library should be selected. The [Dioxus](https://dioxuslabs.com/) one seems to do the job: learn Rust) graphical library should be selected. The [Dioxus](https://dioxuslabs.com/) one seems to do the job:
- React-inspired library for Rust. - React-inspired library for Rust.
- Multi-platforms (use of Webview or WGPU-enabled renderers). - Multi-platforms (use of Web-view or WGPU-enabled renderers).
# TODO # TODO
- [ ] Test dioxus-radio. - [ ] Test dioxus-radio.
- [ ] Design system ? - [ ] Design system ?
- [ ] Implement MSN messenger features using Matrix.org sdk... - [ ] Implement MSN messenger features using Matrix.org SDK...

6
spellcheck.dic Normal file
View File

@@ -0,0 +1,6 @@
5
Dioxus
MSN
renderers
SDK
TODO

10
spellcheck.toml Normal file
View File

@@ -0,0 +1,10 @@
# Also take into account developer comments
dev_comments = false
# Skip the README.md file as defined in the cargo manifest
skip_readme = false
[Hunspell]
lang = "en_US"
search_dirs = [ "." ]
extra_dictionaries = [ "./spellcheck.dic" ]