Skip to content

Commit c2e6f1b

Browse files
committed
docs(derive): Draw more attention to derive feature
1 parent a0e6bdc commit c2e6f1b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/_derive/_tutorial.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@
3131
//! ## Quick Start
3232
//!
3333
//! You can create an application declaratively with a `struct` and some
34-
//! attributes. **This requires enabling the [`derive` feature flag][crate::_features].**
34+
//! attributes.
35+
//!
36+
//! First, ensure `clap` is available with the [`derive` feature flag][crate::_features]:
37+
//! ```console
38+
//! $ cargo add clap --features derive
39+
//! ```
3540
//!
3641
//! ```rust
3742
#![doc = include_str!("../../examples/tutorial_derive/01_quick.rs")]

src/_tutorial.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
//!
3333
//! You can create an application with several arguments using usage strings.
3434
//!
35+
//! First, ensure `clap` is available:
36+
//! ```console
37+
//! $ cargo add clap
38+
//! ```
39+
//!
3540
//! ```rust
3641
#![doc = include_str!("../examples/tutorial_builder/01_quick.rs")]
3742
//! ```

0 commit comments

Comments
 (0)