From fc6fdf5e2596ff88706c4d3d9f910203e1758956 Mon Sep 17 00:00:00 2001 From: Jacob Pratt Date: Thu, 16 Jan 2020 22:19:12 -0500 Subject: [PATCH] Show panicking APIs in docs --- .github/workflows/docs.yaml | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 8ce0de618..af057f214 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -21,11 +21,11 @@ jobs: toolchain: nightly # rust-lang/rust#43466, rust-lang/rust#43781 override: true - - name: Run `cargo doc --features serde,deprecated` + - name: Run `cargo doc --features serde,deprecated,panicking-api` uses: actions-rs/cargo@v1 with: command: doc - args: --features serde,deprecated + args: --features serde,deprecated,panicking-api - name: Build & publish documentation uses: JamesIves/github-pages-deploy-action@releases/v2 diff --git a/Cargo.toml b/Cargo.toml index 29d3b73ec..4c67bbec5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ license = "MIT OR Apache-2.0" description = "Date and time library. Fully interoperable with the standard library. Mostly compatible with #![no_std]." [package.metadata.docs.rs] -all-features = true +features = ["deprecated", "panicking-api", "serde"] [features] default = ["deprecated"]