diff options
| author | datdenkikniet <jcdra1@gmail.com> | 2023-04-15 10:03:52 +0200 |
|---|---|---|
| committer | datdenkikniet <jcdra1@gmail.com> | 2023-04-15 10:03:52 +0200 |
| commit | 480aa210594a1ea808da93614aa49a508f9f35af (patch) | |
| tree | 332ea8ea9fe6abe8597c56f4481c4005f35b540d /xtask/src/main.rs | |
| parent | f2115e3d474ac9b3c802e162af3dbec620598c4e (diff) | |
Always run stuff for all packages if none is specified
Diffstat (limited to 'xtask/src/main.rs')
| -rw-r--r-- | xtask/src/main.rs | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 8f6a556..f2d0180 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -24,7 +24,7 @@ use env_logger::Env; use log::{debug, error, info, log_enabled, trace, Level}; use crate::{ - argument_parsing::{Backends, BuildOrCheck, Cli, Commands, PackageOpt}, + argument_parsing::{Backends, BuildOrCheck, Cli, Commands}, build::init_build_dir, cargo_commands::{ build_and_check_size, cargo, cargo_book, cargo_clippy, cargo_doc, cargo_example, @@ -299,30 +299,6 @@ fn main() -> anyhow::Result<()> { Ok(()) } -/// Get the features needed given the selected package -/// -/// Without package specified the features for RTIC are required -/// With only a single package which is not RTIC, no special -/// features are needed -fn package_feature_extractor( - target: Target, - package: &PackageOpt, - backend: Backends, -) -> Option<String> { - let default_features = Some(target.and_features(backend.to_rtic_feature())); - - if let Some(package) = package.package { - debug!("\nTesting package: {package}"); - match package { - Package::Rtic => default_features, - Package::RticMacros => Some(backend.to_rtic_macros_feature().to_owned()), - _ => None, - } - } else { - default_features - } -} - // run example binary `example` fn command_parser(glob: &Globals, command: &CargoCommand, overwrite: bool) -> anyhow::Result<()> { let output_mode = if glob.stderr_inherited { |
