Skip to content

Commit 8dcb3c4

Browse files
authored
Replace phper depeidencies into workspace. (#125)
1 parent 09215f7 commit 8dcb3c4

File tree

13 files changed

+34
-26
lines changed

13 files changed

+34
-26
lines changed

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,11 @@ edition = "2021"
3434
license = "MulanPSL-2.0"
3535
repository = "https://github.com/jmjoy/phper.git"
3636
rust-version = "1.65"
37+
38+
[workspace.dependencies]
39+
phper = { version = "0.11.0", path = "./phper" }
40+
phper-alloc = { version = "0.11.0", path = "./phper-alloc" }
41+
phper-build = { version = "0.11.0", path = "./phper-build" }
42+
phper-macros = { version = "0.11.0", path = "./phper-macros" }
43+
phper-sys = { version = "0.11.0", path = "./phper-sys" }
44+
phper-test = { version = "0.11.0", path = "./phper-test" }

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The framework that allows us to write PHP extensions using pure and safe Rust wh
2828
- **OS**
2929
- [x] linux
3030
- [x] macos
31-
- [ ] windows
31+
- [ ] ~~windows~~
3232
- **PHP**
3333
- **version**
3434
- [x] 7.0
@@ -41,13 +41,13 @@ The framework that allows us to write PHP extensions using pure and safe Rust wh
4141
- [x] 8.2
4242
- **mode**
4343
- [x] nts
44-
- [ ] zts
44+
- [ ] ~~zts~~
4545
- **sapi**
4646
- [x] cli
4747
- [x] fpm
4848
- **debug**
4949
- [x] disable
50-
- [ ] enable
50+
- [ ] ~~enable~~
5151

5252
## Examples
5353

examples/complex/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ license = { workspace = true }
2121
crate-type = ["lib", "cdylib"]
2222

2323
[dependencies]
24-
phper = { version = "0.11.0", path = "../../phper" }
24+
phper = { workspace = true }
2525

2626
[dev-dependencies]
27-
phper-test = { version = "0.11.0", path = "../../phper-test" }
27+
phper-test = { workspace = true }
2828

2929
[build-dependencies]
30-
phper-build = { version = "0.11.0", path = "../../phper-build" }
30+
phper-build = { workspace = true }

examples/hello/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ license = { workspace = true }
2121
crate-type = ["lib", "cdylib"]
2222

2323
[dependencies]
24-
phper = { version = "0.11.0", path = "../../phper" }
24+
phper = { workspace = true }

examples/http-client/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ license = { workspace = true }
2121
crate-type = ["lib", "cdylib"]
2222

2323
[dependencies]
24-
phper = { version = "0.11.0", path = "../../phper" }
24+
phper = { workspace = true }
2525
reqwest = { version = "0.11.13", features = ["blocking", "cookies"] }
2626
thiserror = "1.0.37"
2727

2828
[dev-dependencies]
29-
phper-test = { version = "0.11.0", path = "../../phper-test" }
29+
phper-test = { workspace = true }

examples/http-server/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ crate-type = ["lib", "cdylib"]
2323
[dependencies]
2424
hyper = { version = "0.14.26", features = ["http1", "runtime", "server"] }
2525
axum = "0.6.16"
26-
phper = { version = "0.11.0", path = "../../phper" }
26+
phper = { workspace = true }
2727
thiserror = "1.0.40"
2828
tokio = { version = "1.27.0", features = ["full"] }
2929
reqwest = { version = "0.11.16", features = ["blocking"] }
3030

3131
[dev-dependencies]
32-
phper-test = { version = "0.11.0", path = "../../phper-test" }
32+
phper-test = { workspace = true }
3333
reqwest = "0.11.16"

examples/logging/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ license = { workspace = true }
2121
crate-type = ["lib", "cdylib"]
2222

2323
[dependencies]
24-
phper = { version = "0.11.0", path = "../../phper" }
24+
phper = { workspace = true }
2525

2626
[dev-dependencies]
27-
phper-test = { version = "0.11.0", path = "../../phper-test" }
27+
phper-test = { workspace = true }
2828

2929
[build-dependencies]
30-
phper-build = { version = "0.11.0", path = "../../phper-build" }
30+
phper-build = { workspace = true }

phper-alloc/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repository = { workspace = true }
2020
license = { workspace = true }
2121

2222
[dependencies]
23-
phper-sys = { version = "0.11.0", path = "../phper-sys" }
23+
phper-sys = { workspace = true }
2424

2525
[build-dependencies]
26-
phper-build = { version = "0.11.0", path = "../phper-build" }
26+
phper-build = { workspace = true }

phper-build/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ repository = { workspace = true }
2020
license = { workspace = true }
2121

2222
[dependencies]
23-
phper-sys = { version = "0.11.0", path = "../phper-sys" }
23+
phper-sys = { workspace = true }

phper-doc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repository = { workspace = true }
2020
license = { workspace = true }
2121

2222
[dependencies]
23-
phper = { version = "0.11.0", path = "../phper" }
23+
phper = { workspace = true }
2424

2525
[dev-dependencies]
2626
thiserror = "1.0.37"

0 commit comments

Comments
 (0)