aboutsummaryrefslogtreecommitdiffhomepage
path: root/Cargo.lock
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-21 10:09:58 +0900
committernsfisis <nsfisis@gmail.com>2026-02-21 10:09:58 +0900
commit0b5d333083f1317391338d3aa67b1290e93922cc (patch)
tree3842907fc1b2ac64c925b477b4daf33f529a5869 /Cargo.lock
parent999fc4157cf631f967a5adedeccb83ae6d0cb0f8 (diff)
downloadphp-mozart-0b5d333083f1317391338d3aa67b1290e93922cc.tar.gz
php-mozart-0b5d333083f1317391338d3aa67b1290e93922cc.tar.zst
php-mozart-0b5d333083f1317391338d3aa67b1290e93922cc.zip
feat(require): implement require command with Packagist version resolution
Add the require command that updates composer.json with new package dependencies. When no version constraint is specified, the best version is resolved from the Packagist p2 API based on minimum-stability. Includes packagist API client, version comparison/stability detection, and RawPackageData deserialization support for roundtrip editing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'Cargo.lock')
-rw-r--r--Cargo.lock14
1 files changed, 14 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index bfe3344..930ce63 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -368,6 +368,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"
dependencies = [
"futures-core",
+ "futures-sink",
]
[[package]]
@@ -377,6 +378,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
[[package]]
+name = "futures-io"
+version = "0.3.31"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"
+
+[[package]]
name = "futures-sink"
version = "0.3.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -395,7 +402,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"
dependencies = [
"futures-core",
+ "futures-io",
+ "futures-sink",
"futures-task",
+ "memchr",
"pin-project-lite",
"pin-utils",
"slab",
@@ -1055,7 +1065,9 @@ dependencies = [
"base64",
"bytes",
"encoding_rs",
+ "futures-channel",
"futures-core",
+ "futures-util",
"h2",
"http",
"http-body",
@@ -1072,6 +1084,8 @@ dependencies = [
"rustls",
"rustls-pki-types",
"rustls-platform-verifier",
+ "serde",
+ "serde_json",
"sync_wrapper",
"tokio",
"tokio-rustls",