refactor: crate docs metadata [skip ci]
Diff
.github/workflows/release.crate.yml | 5 +----
Cargo.toml | 8 ++++----
Makefile | 2 --
3 files changed, 5 insertions(+), 10 deletions(-)
@@ -35,7 +35,4 @@ jobs:
- name: Publish workspace packages
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}
RUSTFLAGS: "--cfg docsrs"
RUSTDOCFLAGS: "--cfg docsrs"
run: |
cargo publish -p static-web-server --all-features
run: cargo publish -p static-web-server
@@ -24,10 +24,6 @@ include = [
autotests = true
autoexamples = true
[package.metadata.docs.rs]
all-features = true
rustc-args = ["--cfg", "docsrs"]
[lib]
name = "static_web_server"
path = "src/lib.rs"
@@ -109,3 +105,7 @@ opt-level = 3
panic = "abort"
rpath = false
strip = true
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
@@ -262,14 +262,12 @@ crate-docs:
crate-docs-dev:
@env \
RUSTFLAGS="--cfg docsrs" \
RUSTDOCFLAGS="--cfg docsrs" \
cargo doc --lib --no-deps --all-features --document-private-items
@echo "Crate documentation: http://localhost:8787/static_web_server"
@static-web-server -p 8787 -d target/doc/ \
& watchman-make -p 'src/**/*.rs' --run '\
env \
RUSTFLAGS="--cfg docsrs" \
RUSTDOCFLAGS="--cfg docsrs" \
cargo doc --lib --no-deps --all-features --document-private-items'
.PHONY: crate-docs-dev