Merge pull request #3448 from epage/examples

docs(examples): Add missing feature flag reqs
This commit is contained in:
Ed Page 2022-02-11 07:41:06 -06:00 committed by GitHub
commit b076f81207
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,5 @@
// Note: this requires the `derive` feature
use clap::Parser;
#[derive(Parser)]

View file

@ -1,3 +1,5 @@
// Note: this requires the `cargo` feature
fn main() {
let app = clap::App::new("cargo")
.bin_name("cargo")

View file

@ -1,3 +1,5 @@
// Note: this requires the `cargo` feature
use std::path::PathBuf;
use clap::{arg, App, AppSettings};

View file

@ -1,3 +1,5 @@
// Note: this requires the `unstable-multicall` feature
use std::process::exit;
use clap::{App, AppSettings, Arg};

View file

@ -1,3 +1,5 @@
// Note: this requires the `unstable-multicall` feature
use clap::{App, AppSettings};
fn main() {