Skip to content

Document profile(s) used to build examples #9806

@taqtiqa-mark

Description

@taqtiqa-mark

Problem

Steps

  1. Visit Profiles page in the Cargo Book
  2. Search for the word "example"
  3. Observe there is no detail regarding the profiles used to build examples.

Possible Solution(s)

Add details to the effect:

  1. cargo build --example x will be --debug by default.
  2. Pass the --release option if you need the release profile used.
  3. Document whether examples can be built under any of the other profiles?

Notes

Output of cargo version:

$ cargo --version
cargo 1.56.0-nightly (cc17afbb0 2021-08-02)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions