Crates.io | cargo-docs-rs |
lib.rs | cargo-docs-rs |
version | |
source | src |
created_at | 2023-09-24 00:17:59.369744 |
updated_at | 2024-10-31 18:51:22.673824 |
description | Imitate the documentation build that docs.rs would do |
homepage | |
repository | https://github.com/dtolnay/cargo-docs-rs |
max_upload_size | |
id | 981619 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Run cargo rustdoc
with the same options that would be used by docs.rs, taking
into account the package.metadata.docs.rs
configured in Cargo.toml.
If the following GitHub Actions job succeeds, it's likely that docs.rs will succeed in building your crate's documentation.
# .github/workflows/ci.yml
name: test suite
on: [push, pull_request]
jobs:
# ...
doc:
name: Documentation
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: dtolnay/install@cargo-docs-rs
- run: cargo docs-rs