diff --git a/.cargo/config.toml b/.cargo/config.toml index 4714cce..f399900 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,5 +1,6 @@ [build] rustflags = ["--cfg", "surrealdb_unstable"] +rustdocflags = ["--cfg", "surrealdb_unstable"] [net] git-fetch-with-cli = true diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 85083be..bc3128a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -82,6 +82,22 @@ jobs: name: code-coverage-report path: cobertura.xml + docs: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install stable toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Cache Rust dependencies + uses: Swatinem/rust-cache@v2 + + - name: Build documentation + run: cargo doc + cargo-deny: name: cargo-deny runs-on: ubuntu-latest