WIP: Re-structure application in pure rust #12

Draft
Snootic wants to merge 29 commits from feat/rewrite-translator-in-rust into main
Snootic commented 2025-11-09 15:40:58 -03:00 (Migrated from github.com)

To optimize the app, minimizing the use of middlewares and improve the memory consumption, I will try to rewrite most of the backend python code in rust, where possible.

  • Implement Deepl client
  • Implement Deepl Glossary
  • Implement ChatGPT client
  • Handle File loading, parsing and writing
  • Rewrite old scripts with better structure and code legibility
  • Implement file translation
  • Ensure that translation affect the formatting of the file as minimum as possible
  • Improve handlers
  • call python methods from pyo3 where necessary to directly invoke GIO
To optimize the app, minimizing the use of middlewares and improve the memory consumption, I will try to rewrite most of the backend python code in rust, where possible. - [x] Implement Deepl client - [x] Implement Deepl Glossary - [x] Implement ChatGPT client - [ ] Handle File loading, parsing and writing - [ ] Rewrite old scripts with better structure and code legibility - [ ] Implement file translation - [ ] Ensure that translation affect the formatting of the file as minimum as possible - [x] Improve handlers - [ ] call python methods from pyo3 where necessary to directly invoke GIO
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/rewrite-translator-in-rust:feat/rewrite-translator-in-rust
git switch feat/rewrite-translator-in-rust

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff feat/rewrite-translator-in-rust
git switch feat/rewrite-translator-in-rust
git rebase main
git switch main
git merge --ff-only feat/rewrite-translator-in-rust
git switch feat/rewrite-translator-in-rust
git rebase main
git switch main
git merge --no-ff feat/rewrite-translator-in-rust
git switch main
git merge --squash feat/rewrite-translator-in-rust
git switch main
git merge --ff-only feat/rewrite-translator-in-rust
git switch main
git merge feat/rewrite-translator-in-rust
git push origin main
Sign in to join this conversation.
No description provided.