diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-09 09:14:11 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-09 09:14:11 +0900 |
| commit | 6643eb8b7d305818f80c910144b3b29b1af34ba7 (patch) | |
| tree | 3baee8b2291725add75e9963d7666890aae62760 /crates/shirabe/src/lib.rs | |
| parent | be514aeff17ab7d8debcc59acddd07f7c7b72bd7 (diff) | |
| download | php-shirabe-6643eb8b7d305818f80c910144b3b29b1af34ba7.tar.gz php-shirabe-6643eb8b7d305818f80c910144b3b29b1af34ba7.tar.zst php-shirabe-6643eb8b7d305818f80c910144b3b29b1af34ba7.zip | |
refactor(installed-versions): drop the Rust port, which has no readers
InstalledVersions is a runtime API for plugins and project code; Composer
itself never reads it. Its consumers run in the PHP worker against the copy
FilesystemRepository dumps to vendor/composer/InstalledVersions.php, whose
static state is already kept in sync by __shirabe_installed_versions_reload.
Nothing in Rust read the mirrored statics, so reload() and the reflection
setters were no-ops.
The tests covered only the Rust port, not the PHP class the worker loads, so
they assert nothing about compatibility; they are left as todo!() skeletons.
This also removes the shim functions method_exists, php_dir and
require_php_file, whose only caller was the deleted module.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/lib.rs')
| -rw-r--r-- | crates/shirabe/src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/shirabe/src/lib.rs b/crates/shirabe/src/lib.rs index 4667e7c9..e5624988 100644 --- a/crates/shirabe/src/lib.rs +++ b/crates/shirabe/src/lib.rs @@ -11,7 +11,6 @@ pub mod event_dispatcher; pub mod exception; pub mod factory; pub mod filter; -pub mod installed_versions; pub mod installer; pub mod io; pub mod json; @@ -25,6 +24,10 @@ pub mod script; pub mod self_update; pub mod util; +// InstalledVersions is intentionally unported to Rust. It is a runtime API for plugins and project +// code, never read by Composer itself. Its real state is stored in PHP's InstalledVersions class. +// See also `__shirabe_installed_versions_reload` in crates/shirabe-php-rpc/php/worker.php. + /// ref: composer/bin/composer pub fn run(argv: Vec<String>) -> anyhow::Result<i32> { use crate::console::ApplicationHandle; |
