Skip to content

Commit b8e0a23

Browse files
authored
Optimize code. (#37)
1 parent 3069548 commit b8e0a23

File tree

23 files changed

+249
-86
lines changed

23 files changed

+249
-86
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ jobs:
9494
command: build
9595
args: --release
9696

97-
# - name: Cargo clippy
98-
# uses: actions-rs/cargo@v1
99-
# with:
100-
# toolchain: stable
101-
# command: clippy
102-
# args: --release
97+
- name: Cargo clippy
98+
uses: actions-rs/cargo@v1
99+
with:
100+
toolchain: stable
101+
command: clippy
102+
args: --release
103103

104104
- name: Cargo test
105105
uses: actions-rs/cargo@v1
@@ -117,6 +117,7 @@ jobs:
117117
command: doc
118118
args: --workspace --no-deps --all-features
119119

120+
# Test every features for single crate.
120121
check:
121122
name: Check
122123
strategy:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## Rust ❤️ PHP
1010

11-
A library that allows us to write PHP extensions using pure Rust and using safe Rust whenever possible.
11+
The framework that allows us to write PHP extensions using pure and safe Rust whenever possible.
1212

1313
## Requirement
1414

examples/hello/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ path = "src/_reexport.rs"
2929
crate-type = ["cdylib"]
3030

3131
[dependencies]
32-
phper = { version = "0.4.0-alpha.4", path = "../../phper" }
32+
phper = { version = "0.4.0", path = "../../phper" }
3333

3434
[dev-dependencies]
35-
phper-test = { version = "0.4.0-alpha.4", path = "../../phper-test" }
35+
phper-test = { version = "0.4.0", path = "../../phper-test" }
3636

3737
[build-dependencies]
38-
phper-build = { version = "0.4.0-alpha.4", path = "../../phper-build" }
38+
phper-build = { version = "0.4.0", path = "../../phper-build" }

examples/http-client/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ crate-type = ["cdylib"]
3232
anyhow = "1.0.58"
3333
bytes = "1.1.0"
3434
indexmap = "1.9.1"
35-
phper = { version = "0.4.0-alpha.4", path = "../../phper" }
35+
phper = { version = "0.4.0", path = "../../phper" }
3636
reqwest = { version = "0.11.11", features = ["blocking", "cookies"] }
3737
thiserror = "1.0.31"
3838

3939
[dev-dependencies]
40-
phper-test = { version = "0.4.0-alpha.4", path = "../../phper-test" }
40+
phper-test = { version = "0.4.0", path = "../../phper-test" }

examples/http-server/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ crate-type = ["cdylib"]
3030

3131
[dependencies]
3232
hyper = { version = "0.14.20", features = ["http1", "runtime", "server"] }
33-
phper = { version = "0.4.0-alpha.4", path = "../../phper" }
33+
phper = { version = "0.4.0", path = "../../phper" }
3434
thiserror = "1.0.31"
3535
tokio = { version = "1.19.2", features = ["full"] }
3636

3737
[dev-dependencies]
38-
phper-test = { version = "0.4.0-alpha.4", path = "../../phper-test" }
38+
phper-test = { version = "0.4.0", path = "../../phper-test" }
3939
reqwest = "0.11.11"

examples/logging/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ crate-type = ["cdylib"]
3030

3131
[dependencies]
3232
anyhow = "1.0.58"
33-
phper = { version = "0.4.0-alpha.4", path = "../../phper" }
33+
phper = { version = "0.4.0", path = "../../phper" }
3434

3535
[dev-dependencies]
36-
phper-test = { version = "0.4.0-alpha.4", path = "../../phper-test" }
36+
phper-test = { version = "0.4.0", path = "../../phper-test" }
3737

3838
[build-dependencies]
39-
phper-build = { version = "0.4.0-alpha.4", path = "../../phper-build" }
39+
phper-build = { version = "0.4.0", path = "../../phper-build" }

phper-alloc/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
[package]
1212
name = "phper-alloc"
13-
version = "0.4.0-alpha.4"
13+
version = "0.4.0"
1414
authors = ["jmjoy <918734043@qq.com>"]
1515
edition = "2021"
1616
rust-version = "1.56"
@@ -22,7 +22,7 @@ keywords = ["php", "alloc"]
2222
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
2323

2424
[dependencies]
25-
phper-sys = { version = "0.4.0-alpha.4", path = "../phper-sys" }
25+
phper-sys = { version = "0.4.0", path = "../phper-sys" }
2626

2727
[build-dependencies]
28-
phper-build = { version = "0.4.0-alpha.4", path = "../phper-build" }
28+
phper-build = { version = "0.4.0", path = "../phper-build" }

phper-build/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
[package]
1212
name = "phper-build"
13-
version = "0.4.0-alpha.4"
13+
version = "0.4.0"
1414
authors = ["jmjoy <918734043@qq.com>"]
1515
edition = "2021"
1616
rust-version = "1.56"
@@ -22,4 +22,4 @@ keywords = ["php", "binding"]
2222
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
2323

2424
[dependencies]
25-
phper-sys = { version = "0.4.0-alpha.4", path = "../phper-sys" }
25+
phper-sys = { version = "0.4.0", path = "../phper-sys" }

phper-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
[package]
1212
name = "phper-macros"
13-
version = "0.4.0-alpha.4"
13+
version = "0.4.0"
1414
authors = ["jmjoy <918734043@qq.com>"]
1515
edition = "2021"
1616
rust-version = "1.56"

phper-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
[package]
1212
name = "phper-sys"
13-
version = "0.4.0-alpha.4"
13+
version = "0.4.0"
1414
authors = ["jmjoy <918734043@qq.com>"]
1515
edition = "2021"
1616
rust-version = "1.56"

0 commit comments

Comments
 (0)