Merge pull request #858 from teloxide/fixdocbuild

Fix `docs.rs` build
This commit is contained in:
Sima Kinsart 2023-02-15 20:38:04 +00:00 committed by GitHub
commit a55eee5c3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## unreleased ## unreleased
## 0.12.2 - 2023-02-15
### Fixed
- `docs.rs` documentation build
## 0.12.1 - 2023-02-15 ## 0.12.1 - 2023-02-15
### Fixed ### Fixed

View file

@ -1,6 +1,6 @@
[package] [package]
name = "teloxide" name = "teloxide"
version = "0.12.1" version = "0.12.2"
description = "An elegant Telegram bots framework for Rust" description = "An elegant Telegram bots framework for Rust"
rust-version.workspace = true rust-version.workspace = true
@ -120,7 +120,8 @@ tokio-stream = "0.1"
[package.metadata.docs.rs] [package.metadata.docs.rs]
all-features = true # NB: can't use `all-features = true`, because `sqlite-storage` conflicts with `sqlite-storage-rustls`
features = ["full", "nightly"]
# FIXME: Add back "-Znormalize-docs" when https://github.com/rust-lang/rust/issues/93703 is fixed # FIXME: Add back "-Znormalize-docs" when https://github.com/rust-lang/rust/issues/93703 is fixed
rustdoc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"]
rustc-args = ["--cfg", "dep_docsrs"] rustc-args = ["--cfg", "dep_docsrs"]