diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8123939..19d167e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -183,7 +183,7 @@ jobs: working-directory: www - name: cd lib/v3 && cargo +nightly doc env: - RUSTDOCFLAGS: --deny=warnings + RUSTDOCFLAGS: --deny=warnings --cfg=docsrs run: cargo +nightly doc working-directory: lib/v3 - name: cd lib && cargo +nightly doc diff --git a/LICENSE b/LICENSE index 9a75083..65c4b11 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,7 @@ The MIT License (MIT) -Copyright (c) 2015-2020 Julien Cretin -Copyright (c) 2017-2020 Google Inc. +Copyright (c) 2015 Julien Cretin +Copyright (c) 2017 Google Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/lib/v3/CHANGELOG.md b/lib/v3/CHANGELOG.md index 88ffbf6..7e2a9aa 100644 --- a/lib/v3/CHANGELOG.md +++ b/lib/v3/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.1.3-git + +### Patch + +- Use `doc_cfg` instead of `doc_auto_cfg` + ## 0.1.2 ### Patch diff --git a/lib/v3/Cargo.toml b/lib/v3/Cargo.toml index 46bff1e..8285c7e 100644 --- a/lib/v3/Cargo.toml +++ b/lib/v3/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "data-encoding-v3" -version = "0.1.2" +version = "0.1.3-git" license = "MIT" edition = "2024" rust-version = "1.85" diff --git a/lib/v3/src/lib.rs b/lib/v3/src/lib.rs index 8231479..3071d7e 100644 --- a/lib/v3/src/lib.rs +++ b/lib/v3/src/lib.rs @@ -2,7 +2,7 @@ #![doc = ""] #![doc = include_str!("../README.md")] #![no_std] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #[cfg(feature = "alloc")] extern crate alloc; diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 67269aa..9298dd7 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -146,7 +146,7 @@ impl Action { &[&["--no-default-features", "--features=alloc"], &["--no-default-features"]]; } } - if self.dir == Dir::Lib && self.task == Task::Doc { + if matches!(self.dir, Dir::LibV3 | Dir::Lib) && self.task == Task::Doc { instructions.0[0].env[0].1.push_str(" --cfg=docsrs"); } if self.dir == Dir::Nostd && self.task == Task::Test {