mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
parent
6bfa21a02e
commit
41197bf515
2 changed files with 14 additions and 6 deletions
12
.cargo/config.toml
Normal file
12
.cargo/config.toml
Normal file
|
@ -0,0 +1,12 @@
|
|||
[alias]
|
||||
# We pass "--cfg docsrs" when building docs to turn on nightly-only rustdoc features like
|
||||
# `This is supported on feature="..." only.`
|
||||
#
|
||||
# "--cfg dep_docsrs" is used for the same reason, but for `teloxide-core`.
|
||||
docs = """
|
||||
doc
|
||||
--all-features
|
||||
--config build.rustflags=["--cfg=dep_docsrs"]
|
||||
--config build.rustdocflags=["--cfg=docsrs","-Znormalize-docs"]
|
||||
-Zrustdoc-scrape-examples=examples
|
||||
"""
|
|
@ -44,15 +44,11 @@
|
|||
html_logo_url = "https://github.com/teloxide/teloxide/raw/master/ICON.png",
|
||||
html_favicon_url = "https://github.com/teloxide/teloxide/raw/master/ICON.png"
|
||||
)]
|
||||
// We pass "--cfg docsrs" when building docs to add `This is supported on
|
||||
// feature="..." only.`
|
||||
//
|
||||
// "--cfg dep_docsrs" is used for the same reason, but for `teloxide-core`.
|
||||
//
|
||||
// To properly build docs of this crate run
|
||||
// ```console
|
||||
// $ RUSTFLAGS="--cfg dep_docsrs" RUSTDOCFLAGS="--cfg docsrs -Znormalize-docs" cargo +nightly doc --open --all-features
|
||||
// $ cargo docs --open
|
||||
// ```
|
||||
// (docs is an alias from `.cargo/config.toml`)
|
||||
#![cfg_attr(all(docsrs, feature = "nightly"), feature(doc_cfg, doc_auto_cfg))]
|
||||
#![forbid(unsafe_code)]
|
||||
#![warn(rustdoc::broken_intra_doc_links)]
|
||||
|
|
Loading…
Reference in a new issue