aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-php-shim/src/lib.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-12 03:28:37 +0900
committernsfisis <nsfisis@gmail.com>2026-05-12 03:28:37 +0900
commitee6161c2e64956632a24bfa2697d8f8b5f917cbe (patch)
tree6389bfa676f55be9dd79fc19dd8c8290d533cf82 /crates/shirabe-php-shim/src/lib.rs
parentdf8b44c06667b366917ab2fbc7dae0034c10b1e6 (diff)
downloadphp-shirabe-ee6161c2e64956632a24bfa2697d8f8b5f917cbe.tar.gz
php-shirabe-ee6161c2e64956632a24bfa2697d8f8b5f917cbe.tar.zst
php-shirabe-ee6161c2e64956632a24bfa2697d8f8b5f917cbe.zip
feat(port): port PharDownloader.php
Diffstat (limited to 'crates/shirabe-php-shim/src/lib.rs')
-rw-r--r--crates/shirabe-php-shim/src/lib.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs
index 03db936..ff9909d 100644
--- a/crates/shirabe-php-shim/src/lib.rs
+++ b/crates/shirabe-php-shim/src/lib.rs
@@ -40,6 +40,21 @@ pub fn hash(algo: &str, data: &str) -> String {
}
#[derive(Debug)]
+pub struct Phar {
+ path: String,
+}
+
+impl Phar {
+ pub fn new(a: String) -> Self {
+ todo!()
+ }
+
+ pub fn extract_to(&self, a: &str, b: Option<()>, c: bool) {
+ todo!()
+ }
+}
+
+#[derive(Debug)]
pub struct PharData {
path: String,
}