Skip to content

Commit

Permalink
docs: improve instructions for installing cargo-expand (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijackson authored Mar 30, 2024
1 parent d5ac20a commit e4bc0c5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,16 @@
//! First of all, the [`cargo expand`] tool must be present. You can install it via cargo:
//!
//! ```bash
//! cargo install cargo-expand
//! cargo install --locked cargo-expand
//! ```
//!
//! (In CI, you'll want to pin to a particular version,
//! since
//! [cargo expand's output is not stable across versions](https://github.com/dtolnay/cargo-expand/issues/179).
//! Look up the
//! [current version](https://crates.io/crates/cargo-expand)
//! and do something like `cargo install --locked --version 1.0.81 cargo-expand`.)
//!
//! ## Setting up a test project
//!
//! In your crate that provides procedural or declarative macros, under the `tests` directory,
Expand Down

0 comments on commit e4bc0c5

Please sign in to comment.