@@ -193,9 +193,33 @@ jobs:
193193 name : api-python
194194 path : lang/py/docs/build/
195195
196+ build-api-rust :
197+ name : Build Rust API docs
198+ runs-on : ubuntu-latest
199+ steps :
200+ - name : Checkout
201+ uses : actions/checkout@v4
202+ with :
203+ repository : ' apache/avro-rs'
204+
205+ - name : Rust Toolchain
206+ uses : dtolnay/rust-toolchain@stable
207+ with :
208+ toolchain : stable
209+
210+ - name : Build Rustdocs
211+ run : |
212+ set -x
213+ cargo doc --all-features
214+ - uses : actions/upload-artifact@v4
215+ with :
216+ name : api-rust
217+ path : target/doc
218+
219+
196220 push-website :
197221 name : Push website
198- needs : [build-website, build-api-c, build-api-cpp, build-api-csharp, build-api-java , build-api-python]
222+ needs : [build-website, build-api-c, build-api-cpp, build-api-csharp, build-api-rust , build-api-python]
199223 runs-on : ubuntu-latest
200224 steps :
201225 - name : Checkout
@@ -245,6 +269,12 @@ jobs:
245269 name : api-python
246270 path : api-python
247271
272+ - name : Download api-rust
273+ uses : actions/download-artifact@v4
274+ with :
275+ name : api-rust
276+ path : api-rust
277+
248278 - name : Copy the generated HTML
249279 run : |
250280 set -x
@@ -257,7 +287,8 @@ jobs:
257287 mv api-csharp/* $WEBSITE_API/csharp/html/
258288 mv api-java/* $WEBSITE_API/java/
259289 mv api-python/* $WEBSITE_API/py/
260- rmdir api-c api-c++ api-csharp api-java api-python
290+ mv api-python/* $WEBSITE_API/rust/
291+ rmdir api-c api-c++ api-csharp api-java api-python api-rust
261292
262293 - name : Checkout old docs versions from Subversion
263294 run : |
0 commit comments