Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace tg-rust-g with rust_utils #988

Merged
merged 3 commits into from
Jan 14, 2025
Merged

Conversation

Gaxeer
Copy link
Collaborator

@Gaxeer Gaxeer commented Jan 14, 2025

Что этот PR делает

Удаляем tg-rust-g версию сс220 и заменяем его rust_utils

Summary by Sourcery

Replace the tg-rust-g library with rust_utils.

Build:

  • Update the CI configuration to install rust_utils instead of rust-g-ss220.

Chores:

  • Remove the now-unused tg-rust-g code and definitions.

Copy link

sourcery-ai bot commented Jan 14, 2025

Reviewer's Guide by Sourcery

This PR replaces the tg-rust-g library with rust_utils library. It removes all calls to tg-rust-g functions and replaces them with their rust_utils counterparts. It also updates the CI scripts to install rust_utils instead of tg-rust-g.

Class diagram showing updated dependencies and functions

classDiagram
    class RustUtils {
        +file_write_b64decode(text, fname)
        +regex_replace(text, re, re_params, replacement)
        +cyrillic_to_latin(text)
        +latin_to_cyrillic(text)
        +get_version()
    }
    class TTSSystem {
        +cleanup_tts_file()
        +process_text()
    }
    TTSSystem --> RustUtils : uses
    note for RustUtils "New replacement library"
    note for TTSSystem "Updated to use rust_utils"
Loading

File-Level Changes

Change Details Files
Replaced tg-rust-g with rust_utils.
  • Removed tg-rust-g specific defines.
  • Removed calls to rustgss220_* functions.
  • Updated CI scripts to install rust_utils.
  • Replaced calls to rustgss220_* functions with rustutils_* functions.
  • Updated dependencies to include rust_utils.
  • Added rust_utils modpack.
  • Removed _tts_rust_g_ss220.dm file.
modular_bandastation/tts/code/~undefs/~undefs.dm
modular_bandastation/tts/code/SSHttp.dm
tools/ci/install_rust_g.sh
modular_bandastation/tts/code/tts_subsystem.dm
dependencies.sh
modular_bandastation/modular_bandastation.dme
modular_bandastation/tts/_tts.dme
modular_bandastation/_rust_utils/code/rust_utils.dm
modular_bandastation/_rust_utils/_rust_utils.dm
modular_bandastation/_rust_utils/_rust_utils.dme
modular_bandastation/tts/code/_tts_rust_g_ss220.dm

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@github-actions github-actions bot added the 🎸 Инструменты Мы выдаем себя за реальное сообщество разработчиков. label Jan 14, 2025
@Legendaxe Legendaxe merged commit e81add7 into ss220club:master Jan 14, 2025
18 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎸 Инструменты Мы выдаем себя за реальное сообщество разработчиков.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants