Skip to content

Commit 88db607

Browse files
authored
Bump to 0.5.1, with dependencies and document updated. (#46)
1 parent d6d9594 commit 88db607

File tree

14 files changed

+102
-50
lines changed

14 files changed

+102
-50
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,23 @@ jobs:
8888
override: true
8989
components: clippy
9090

91+
- name: Cargo generate lockfile
92+
uses: actions-rs/cargo@v1
93+
with:
94+
toolchain: stable
95+
command: generate-lockfile
96+
97+
- name: Setup cargo cache
98+
uses: actions/cache@v3
99+
with:
100+
path: |
101+
~/.cargo/bin/
102+
~/.cargo/registry/index/
103+
~/.cargo/registry/cache/
104+
~/.cargo/git/db/
105+
target/
106+
key: ${{ matrix.os }}-ci-${{ matrix.php-version }}-${{ hashFiles('**/Cargo.lock') }}
107+
91108
- name: Cargo fmt
92109
uses: actions-rs/cargo@v1
93110
with:
@@ -159,6 +176,23 @@ jobs:
159176
toolchain: stable
160177
override: true
161178

179+
- name: Cargo generate lockfile
180+
uses: actions-rs/cargo@v1
181+
with:
182+
toolchain: stable
183+
command: generate-lockfile
184+
185+
- name: Setup cargo cache
186+
uses: actions/cache@v3
187+
with:
188+
path: |
189+
~/.cargo/bin/
190+
~/.cargo/registry/index/
191+
~/.cargo/registry/cache/
192+
~/.cargo/git/db/
193+
target/
194+
key: ${{ matrix.os }}-check-${{ matrix.php-version }}-${{ matrix.features }}-${{ hashFiles('**/Cargo.lock') }}
195+
162196
- name: Cargo check phper-sys
163197
uses: actions-rs/cargo@v1
164198
with:

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,18 @@ The framework that allows us to write PHP extensions using pure and safe Rust wh
7878
}
7979
```
8080

81+
1. Create the `build.rs` ( Adapting MacOS ).
82+
83+
```rust,no_run
84+
fn main() {
85+
#[cfg(target_os = "macos")]
86+
{
87+
println!("cargo:rustc-link-arg=-undefined");
88+
println!("cargo:rustc-link-arg=dynamic_lookup");
89+
}
90+
}
91+
```
92+
8193
1. Write you owned extension logic in `lib.rs`.
8294

8395
```rust
@@ -125,6 +137,10 @@ The framework that allows us to write PHP extensions using pure and safe Rust wh
125137

126138
See [examples](https://github.com/phper-framework/phper/tree/master/examples).
127139

140+
## The projects using PHPER
141+
142+
- [apache/skywalking-php](https://github.com/apache/skywalking-php) - The PHP Agent for Apache SkyWalking, which provides the native tracing abilities for PHP project.
143+
128144
## License
129145

130146
[MulanPSL-2.0](https://github.com/phper-framework/phper/blob/master/LICENSE).

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.5.0", path = "../../phper" }
32+
phper = { version = "0.5.1", path = "../../phper" }
3333

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

3737
[build-dependencies]
38-
phper-build = { version = "0.5.0", path = "../../phper-build" }
38+
phper-build = { version = "0.5.1", 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.5.0", path = "../../phper" }
35+
phper = { version = "0.5.1", 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.5.0", path = "../../phper-test" }
40+
phper-test = { version = "0.5.1", 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.5.0", path = "../../phper" }
33+
phper = { version = "0.5.1", path = "../../phper" }
3434
thiserror = "1.0.31"
3535
tokio = { version = "1.19.2", features = ["full"] }
3636

3737
[dev-dependencies]
38-
phper-test = { version = "0.5.0", path = "../../phper-test" }
38+
phper-test = { version = "0.5.1", 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.5.0", path = "../../phper" }
33+
phper = { version = "0.5.1", path = "../../phper" }
3434

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

3838
[build-dependencies]
39-
phper-build = { version = "0.5.0", path = "../../phper-build" }
39+
phper-build = { version = "0.5.1", 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.5.0"
13+
version = "0.5.1"
1414
authors = ["PHPER Framework Team", "jmjoy <jmjoy@apache.org>"]
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.5.0", path = "../phper-sys" }
25+
phper-sys = { version = "0.5.1", path = "../phper-sys" }
2626

2727
[build-dependencies]
28-
phper-build = { version = "0.5.0", path = "../phper-build" }
28+
phper-build = { version = "0.5.1", 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.5.0"
13+
version = "0.5.1"
1414
authors = ["PHPER Framework Team", "jmjoy <jmjoy@apache.org>"]
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.5.0", path = "../phper-sys" }
25+
phper-sys = { version = "0.5.1", 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.5.0"
13+
version = "0.5.1"
1414
authors = ["PHPER Framework Team", "jmjoy <jmjoy@apache.org>"]
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.5.0"
13+
version = "0.5.1"
1414
authors = ["PHPER Framework Team", "jmjoy <jmjoy@apache.org>"]
1515
edition = "2021"
1616
rust-version = "1.56"

0 commit comments

Comments
 (0)