2022-07-03 12:33:46 +02:00
|
|
|
[alias]
|
2022-11-07 16:15:30 +01:00
|
|
|
# Using `--features=full --features=nightly` instead of `--all-features` because of
|
|
|
|
# https://github.com/rust-lang/cargo/issues/10333
|
2022-07-03 12:33:46 +02:00
|
|
|
#
|
2022-11-07 16:15:30 +01:00
|
|
|
# "tokio/macros" and "tokio/rt-multi-thread" are required for examples
|
2024-01-21 17:58:13 +01:00
|
|
|
#
|
|
|
|
# N.B.: when changing this, also change `package.metadata.docs.rs`
|
2022-11-07 16:15:30 +01:00
|
|
|
docs = """doc
|
2022-12-28 20:16:23 +01:00
|
|
|
-Zrustdoc-scrape-examples
|
2022-11-07 16:15:30 +01:00
|
|
|
--features=full --features=nightly
|
|
|
|
--features=tokio/macros --features=tokio/rt-multi-thread
|
2022-07-03 12:33:46 +02:00
|
|
|
"""
|
2022-11-07 16:15:30 +01:00
|
|
|
|
|
|
|
[build]
|
|
|
|
# We pass "--cfg docsrs" when building docs to add `This is supported on feature="..." only.`
|
2024-01-21 17:58:13 +01:00
|
|
|
#
|
|
|
|
# FIXME: add back `-Znormalize-docs` once <https://github.com/rust-lang/rust/issues/81091> is fixed
|
|
|
|
# or we don't depend on `generic-array` anymore
|
|
|
|
#
|
|
|
|
# N.B.: when changing this, also change `RUSTDOCFLAGS` in `.github/workflows/ci.yml` and
|
|
|
|
# `package.metadata.docs.rs.rustdoc-args` in `crates/teloxide/Cargo.toml`
|
|
|
|
rustdocflags = ["--cfg", "docsrs"]
|