@@ -38,6 +38,15 @@ pub struct Command {
3838 #[ interactive_clap( skip_interactive_input) ]
3939 #[ interactive_clap( verbatim_doc_comment) ]
4040 pub manifest_path : Option < crate :: types:: utf8_path_buf:: Utf8PathBuf > ,
41+ /// Space or comma separated list of features to activate
42+ ///
43+ /// e.g. --features 'feature0 crate3/feature1 feature3'
44+ /// This just passes the argument as `--features` argument to downstream `cargo` command.
45+ /// Unlike `cargo` argument, this argument doesn't support repetition, at most 1 argument can be specified.
46+ #[ interactive_clap( long) ]
47+ #[ interactive_clap( skip_interactive_input) ]
48+ #[ interactive_clap( verbatim_doc_comment) ]
49+ pub features : Option < String > ,
4150 /// Whether to color output to stdout and stderr by printing ANSI escape sequences: auto, always, never
4251 #[ interactive_clap( long) ]
4352 #[ interactive_clap( value_enum) ]
@@ -53,6 +62,7 @@ impl From<Command> for AbiOpts {
5362 compact_abi : value. compact_abi ,
5463 out_dir : value. out_dir . map ( Into :: into) ,
5564 manifest_path : value. manifest_path . map ( Into :: into) ,
65+ features : value. features ,
5666 color : value. color . map ( Into :: into) ,
5767 }
5868 }
@@ -72,6 +82,7 @@ impl AbiCommandlContext {
7282 compact_abi : scope. compact_abi ,
7383 out_dir : scope. out_dir . clone ( ) ,
7484 manifest_path : scope. manifest_path . clone ( ) ,
85+ features : scope. features . clone ( ) ,
7586 color : scope. color . clone ( ) ,
7687 } ;
7788 cargo_near_build:: abi:: build ( args. into ( ) ) ?;
0 commit comments