Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions documentation/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@
- Alternatively you could install and use [cargo expand](https://github.com/dtolnay/cargo-expand) which adds syntax highlighting to the terminal output.
- Additionally get pager by piping to `less` ( on Unix systems ): `cargo expand --color always | less -R`
- Print output during macro compilation using `eprintln!("hi");`

## Preview Doc

```sh
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --example all_tuples --no-deps --open
```
2 changes: 2 additions & 0 deletions examples/demonstrations/all_tuples.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! An example of using `all_tuples!`

#![cfg_attr(any(docsrs), feature(rustdoc_internals))]

use variadics_please::all_tuples;

fn main() {}
Expand Down
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ impl Parse for AllTuples {
///
/// ```
/// // `rustdoc_internals` is needed for `#[doc(fake_variadics)]`
/// #![allow(internal_features)]
/// #![cfg_attr(any(docsrs, docsrs_dep), feature(rustdoc_internals))]
/// ```
///
Expand Down Expand Up @@ -377,7 +376,6 @@ pub fn all_tuples_enumerated(input: TokenStream) -> TokenStream {
///
/// ```
/// // `rustdoc_internals` is needed for `#[doc(fake_variadics)]`
/// #![allow(internal_features)]
/// #![cfg_attr(any(docsrs, docsrs_dep), feature(rustdoc_internals))]
/// ```
///
Expand Down
Loading