build(deps): bump num-bigint-dig from 0.8.4 to 0.8.5 #632
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: docs | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - uses: dtolnay/install@cargo-docs-rs | |
| - name: Fetch dependencies and patch generic-array | |
| run: | | |
| # Fetch dependencies first to download the crates | |
| cargo fetch | |
| # Now patch crates that use doc_auto_cfg | |
| # Patch generic-array crate | |
| find ~/.cargo/registry/src -name "lib.rs" -path "*/generic-array-*/src/lib.rs" -exec \ | |
| sed -i 's/doc_auto_cfg/doc_cfg/g' {} \; || true | |
| # Patch getrandom crate | |
| find ~/.cargo/registry/src -name "lib.rs" -path "*/getrandom-*/src/lib.rs" -exec \ | |
| sed -i 's/doc_auto_cfg/doc_cfg/g' {} \; || true | |
| # Patch winnow crate (remove doc_auto_cfg line entirely since it already has doc_cfg) | |
| find ~/.cargo/registry/src -name "lib.rs" -path "*/winnow-*/src/lib.rs" -exec \ | |
| sed -i '/doc_auto_cfg/d' {} \; || true | |
| # Patch toml_datetime crate | |
| find ~/.cargo/registry/src -name "lib.rs" -path "*/toml_datetime-*/src/lib.rs" -exec \ | |
| sed -i 's/doc_auto_cfg/doc_cfg/g' {} \; || true | |
| # Patch toml_edit crate | |
| find ~/.cargo/registry/src -name "lib.rs" -path "*/toml_edit-*/src/lib.rs" -exec \ | |
| sed -i 's/doc_auto_cfg/doc_cfg/g' {} \; || true | |
| # Patch rand_core crate | |
| find ~/.cargo/registry/src -name "lib.rs" -path "*/rand_core-*/src/lib.rs" -exec \ | |
| sed -i 's/doc_auto_cfg/doc_cfg/g' {} \; || true | |
| # Patch socket2 crate | |
| find ~/.cargo/registry/src -name "lib.rs" -path "*/socket2-*/src/lib.rs" -exec \ | |
| sed -i 's/doc_auto_cfg/doc_cfg/g' {} \; || true | |
| - run: cargo docs-rs --package oo7 | |
| - name: Fix permissions | |
| run: | | |
| chmod -c -R +rX "target/doc/" | while read line; do | |
| echo "::warning title=Invalid file permissions automatically fixed::$line" | |
| done | |
| - name: Upload docs artifact | |
| if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: docs-reports | |
| path: ./target/doc/ | |
| retention-days: 30 |