Repository navigation
הסרת קוד מת: תלות הפיתוח flutter_rust_bridge שאינה בשימוש - #4360
Merged
Y-PLONI merged 1 commit intoNov 6, 2026
Merged
Conversation
Y-PLONI
force-pushed
the
refactor/unused-rust-bridge-dev-dependency
branch
from
November 6, 2026 01:58
099557f to
b77690e
Compare
התלות נוספה ל-dev_dependencies ב-fe335530d (05.07.2026) עבור import יחיד של ExternalLibrary ב-test/utils/text_manipulation_test.dart. ה-import הוסר כעבור שעתיים ב-4b417ba9a, כשאתחול המנוע בטסטים עבר ל-test/support/search_engine_test_init.dart, ומאז אף קובץ לא מייבא את package:flutter_rust_bridge. ExternalLibrary מגיע מ-otzaria_search_engine, שמייצא אותו מחדש. החבילה נשארת בגרף כתלות עקיפה של otzaria_search_engine, שנועל אותה ל-2.13.0 בדיוק. ב-pubspec.lock משתנה רק סוג התלות (direct dev → transitive), בלי שינוי גרסאות.
Y-PLONI
force-pushed
the
refactor/unused-rust-bridge-dev-dependency
branch
from
November 6, 2026 02:00
b77690e to
efe02c5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
הסרת התלות
flutter_rust_bridgeמ-dev_dependencies. אף קובץ בפרויקט לא מייבא אותה.היסטוריה
dev_dependenciesב-fe335530d (palmoni5, 05.07.2026, "העברת רג'קס הדגשת התוצאות למנוע") עם ההערה "לטעינת ספריית המנוע הנייטיבית בטסטים (ExternalLibrary)". המשתמש היחיד היהimport 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart' show ExternalLibraryב-test/utils/text_manipulation_test.dart.test/support/search_engine_test_init.dart. מאז איןpackage:flutter_rust_bridgeבאף קובץ Dart (git log -Sמראה רק את שני הקומיטים האלה).^2.13.0יחד עם שאר החבילות.dependency_overrides, לא דרך התלות הזו, וההצמדה הוסרה ב-6c093888c.למה ההסרה בטוחה
ExternalLibrary, שבשבילו נוספה התלות, מגיע היום מ-otzaria_search_engine, שמייצא אותו מחדש. כך משתמשים בוlib/search/search_engine_library.dart,test/support/search_engine_test_init.dartו-test/search/library_line_source_isolate_test.dart.otzaria_search_engine7.0.1, שנועל אותה ל-"2.13.0"בדיוק. ב-pubspec.lockמשתנה שורה אחת:dependency: "direct dev"→transitive. אין שינוי בגרסה, ב-sha256 או בשום חבילה אחרת.flutter_rust_bridge.yaml, הרצה שלflutter_rust_bridge_codegenאוdart run flutter_rust_bridgeב-workflows או בסקריפטים. הקוד המחולל נוצר במאגר המנוע, ו-hook הבנייה שלו לא תלוי בתלות הזו.PRs פתוחים שמשנים את pubspec
#3971, #3981, #4132, #4149, #4223, #4269, #4272, #4277, #4300, #4302, #4323 משנים את
pubspec.yamlו-pubspec.lock. כולם מתמזגים נקי עם הענף, חוץ מ-#4269 שמתנגש גם מול dev עצמו. אף אחד מהם לא נוגע ב-flutter_rust_bridge, ובעץ הממוזג עם כל אחד מהם הרשומה ב-pubspec.lockנשארתtransitive.בדיקות
flutter pub get:pubspec.lockזהה לקומיט, כלומר מול dev השתנתה רק שורת סוג התלות.dart analyzeעל 195 קובצי Dart שמייבאים אתotzaria_search_engineאו משתמשים ב-RustLib/ExternalLibrary(64 ב-lib, 129 ב-test, 2 ב-integration_test): No issues found.flutter test -j 1 test/utils/text_manipulation_test.dart test/search/library_line_source_isolate_test.dart test/search/library_line_source_test.dartעם מנוע 7.0.1 שנבנה מראש, כך שהמנוע נטען בפועל דרךExternalLibrary: 178 עברו, 0 נכשלו, 0 דולגו.