File tree Expand file tree Collapse file tree 5 files changed +15
-36
lines changed Expand file tree Collapse file tree 5 files changed +15
-36
lines changed Original file line number Diff line number Diff line change 9
9
docs :
10
10
name : Build and Deploy
11
11
runs-on : ubuntu-latest
12
- strategy :
13
- matrix :
14
- rust-toolchain :
15
- - nightly
16
- php :
17
- - ' 8.0'
18
- llvm :
19
- - ' 11.0'
20
12
steps :
21
13
- name : Checkout code
22
14
uses : actions/checkout@v2
23
15
- name : Setup PHP
24
16
uses : shivammathur/setup-php@v2
25
17
with :
26
- php-version : ${{ matrix.php }}
18
+ php-version : 8.0
27
19
- name : Setup Rust
28
20
uses : actions-rs/toolchain@v1
29
21
with :
30
- toolchain : ${{ matrix.rust-toolchain }}
22
+ toolchain : nightly
31
23
override : true
32
24
- name : Setup LLVM & Clang
33
25
uses : KyleMayes/install-llvm-action@v1
34
26
with :
35
- version : ${{ matrix.llvm }}
36
- directory : ${{ runner.temp }}/llvm-${{ matrix.llvm }}
27
+ version : 11.0
28
+ directory : ${{ runner.temp }}/llvm-11.0
37
29
- name : Install mdbook
38
30
uses : peaceiris/actions-mdbook@v1
39
31
with :
40
32
mdbook-version : latest
41
- - name : Build docs
42
- env :
43
- LIBCLANG_PATH : ${{ runner.temp }}/llvm-${{ matrix.llvm }}/lib
44
- RUSTDOCFLAGS : --cfg docs
45
- run : cargo doc --release
46
33
- name : Build guide
47
- run : |
48
- mdbook build guide
49
- mv guide/book target/doc/guide
50
- - name : Create index redirect
51
- run : |
52
- echo '<meta http-equiv=refresh content=0;url=/ext-php-rs/ext_php_rs>' > target/doc/index.html
34
+ run : mdbook build guide
53
35
- name : Publish docs
54
36
55
37
with :
56
38
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57
39
BRANCH : gh-pages
58
- FOLDER : target/doc
40
+ FOLDER : guide/book
59
41
CLEAN : true
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ repository = "https://github.com/davidcole1340/ext-php-rs"
5
5
homepage = " https://github.com/davidcole1340/ext-php-rs"
6
6
license = " MIT OR Apache-2.0"
7
7
keywords = [" php" , " ffi" , " zend" ]
8
- version = " 0.3 .0"
8
+ version = " 0.4 .0"
9
9
authors = [
" David Cole <[email protected] >" ]
10
10
edition = " 2018"
11
11
categories = [" api-bindings" ]
12
12
13
13
[dependencies ]
14
14
bitflags = " 1.2.1"
15
- ext-php-rs-derive = { version = " =0.3 .0" , path = " ./ext-php-rs-derive" }
15
+ ext-php-rs-derive = { version = " =0.4 .0" , path = " ./ext-php-rs-derive" }
16
16
17
17
[build-dependencies ]
18
18
bindgen = { version = " >= 0.57.0, < 0.58.1" }
@@ -28,3 +28,6 @@ members = [
28
28
" ext-php-rs-derive" ,
29
29
" example/skel"
30
30
]
31
+
32
+ [package .metadata .docs .rs ]
33
+ rustdoc-args = [" --cfg" , " docs" ]
Original file line number Diff line number Diff line change @@ -62,14 +62,7 @@ The library guide can be read
62
62
[ here] ( https://davidcole1340.github.io/ext-php-rs/guide ) .
63
63
64
64
The project is documented in-line, so viewing the ` cargo ` documentation is the
65
- best resource at the moment.
66
-
67
- We are currently unable to deploy our documentation to ` docs.rs ` due to the
68
- crate requiring PHP 8.0, which is unavailable in the default Ubuntu
69
- repositories. Documentation can be viewed
70
- [ here] ( https://davidcole1340.github.io/ext-php-rs/ ) . It is generated from the
71
- latest ` master ` branch. Documentation will be moved to ` docs.rs ` when Ubuntu
72
- updates its repositories to PHP 8.0.
65
+ best resource at the moment. This can be viewed at [ docs.rs] .
73
66
74
67
## Requirements
75
68
@@ -132,3 +125,4 @@ at your option.
132
125
133
126
[ LICENSE_APACHE ] : https://github.com/davidcole1340/ext-php-rs/blob/master/LICENSE_APACHE
134
127
[ LICENSE_MIT ] : https://github.com/davidcole1340/ext-php-rs/blob/master/LICENSE_MIT
128
+ [ docs.rs ] : https://docs.rs/ext-php-rs
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ description = "Derive macros for ext-php-rs."
4
4
repository = " https://github.com/davidcole1340/ext-php-rs"
5
5
homepage = " https://github.com/davidcole1340/ext-php-rs"
6
6
license = " MIT OR Apache-2.0"
7
- version = " 0.3 .0"
7
+ version = " 0.4 .0"
8
8
authors = [
" David Cole <[email protected] >" ]
9
9
edition = " 2018"
10
10
Original file line number Diff line number Diff line change @@ -35,4 +35,4 @@ future. It's recommended to lock the version at the patch level.
35
35
## Documentation
36
36
37
37
- This guide!
38
- - [ Rust docs] ( https://davidcole1340.github.io /ext-php-rs )
38
+ - [ Rust docs] ( https://docs.rs /ext-php-rs )
You can’t perform that action at this time.
0 commit comments