Skip to content

Commit

Permalink
docs(derive): Draw more attention to derive feature
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jun 23, 2023
1 parent a0e6bdc commit c2e6f1b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/_derive/_tutorial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@
//! ## Quick Start
//!
//! You can create an application declaratively with a `struct` and some
//! attributes. **This requires enabling the [`derive` feature flag][crate::_features].**
//! attributes.
//!
//! First, ensure `clap` is available with the [`derive` feature flag][crate::_features]:
//! ```console
//! $ cargo add clap --features derive
//! ```
//!
//! ```rust
#![doc = include_str!("../../examples/tutorial_derive/01_quick.rs")]
Expand Down
5 changes: 5 additions & 0 deletions src/_tutorial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
//!
//! You can create an application with several arguments using usage strings.
//!
//! First, ensure `clap` is available:
//! ```console
//! $ cargo add clap
//! ```
//!
//! ```rust
#![doc = include_str!("../examples/tutorial_builder/01_quick.rs")]
//! ```
Expand Down

0 comments on commit c2e6f1b

Please sign in to comment.