aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-09 11:22:59 +0900
committernsfisis <nsfisis@gmail.com>2026-08-09 11:22:59 +0900
commit738a258496318edb6e264b13b8a6d0dc313795d3 (patch)
tree68c293ba2c45d105c7e85cc006918ef9c6b2d843 /crates/shirabe
parent548ec1ffb232da4411ae8890080bcfd63300cda0 (diff)
downloadphp-shirabe-738a258496318edb6e264b13b8a6d0dc313795d3.tar.gz
php-shirabe-738a258496318edb6e264b13b8a6d0dc313795d3.tar.zst
php-shirabe-738a258496318edb6e264b13b8a6d0dc313795d3.zip
refactor(ca-bundle): extract composer/ca_bundle into the shirabe-ca-bundle crate
Move `Composer\CaBundle` out of shirabe-external-packages and into its own crate, so the path is `shirabe_ca_bundle::CaBundle` instead of `shirabe_external_packages::composer::ca_bundle::CaBundle`. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe')
-rw-r--r--crates/shirabe/Cargo.toml1
-rw-r--r--crates/shirabe/src/util/stream_context_factory.rs2
-rw-r--r--crates/shirabe/src/util/tls_helper.rs2
3 files changed, 3 insertions, 2 deletions
diff --git a/crates/shirabe/Cargo.toml b/crates/shirabe/Cargo.toml
index eef7daf4..469b7e32 100644
--- a/crates/shirabe/Cargo.toml
+++ b/crates/shirabe/Cargo.toml
@@ -4,6 +4,7 @@ version.workspace = true
edition.workspace = true
[dependencies]
+shirabe-ca-bundle.workspace = true
shirabe-class-map-generator.workspace = true
shirabe-external-packages.workspace = true
shirabe-metadata-minifier.workspace = true
diff --git a/crates/shirabe/src/util/stream_context_factory.rs b/crates/shirabe/src/util/stream_context_factory.rs
index b407e897..6a63537d 100644
--- a/crates/shirabe/src/util/stream_context_factory.rs
+++ b/crates/shirabe/src/util/stream_context_factory.rs
@@ -7,7 +7,7 @@ use crate::util::Filesystem;
use crate::util::Platform;
use crate::util::http::ProxyManager;
use indexmap::IndexMap;
-use shirabe_external_packages::composer::ca_bundle::CaBundle;
+use shirabe_ca_bundle::CaBundle;
use shirabe_php_shim::{
HHVM_VERSION, PHP_MAJOR_VERSION, PHP_MINOR_VERSION, PHP_RELEASE_VERSION, PhpMixed,
array_replace_recursive, extension_loaded, function_exists, php_uname, stream_context_create,
diff --git a/crates/shirabe/src/util/tls_helper.rs b/crates/shirabe/src/util/tls_helper.rs
index 0df30b1a..0c3f44dc 100644
--- a/crates/shirabe/src/util/tls_helper.rs
+++ b/crates/shirabe/src/util/tls_helper.rs
@@ -1,6 +1,6 @@
//! ref: composer/src/Composer/Util/TlsHelper.php
-use shirabe_external_packages::composer::ca_bundle::ca_bundle::CaBundle;
+use shirabe_ca_bundle::ca_bundle::CaBundle;
use shirabe_pcre::Preg;
use shirabe_php_shim::{
PhpMixed, ltrim, php_regex, preg_quote, str_replace, strtolower, substr, substr_count,