@@ -20,6 +20,7 @@ pub mod system_tools;
2020pub mod tool_configuration;
2121#[ cfg( feature = "tui" ) ]
2222pub mod tui;
23+ pub mod types;
2324pub mod used_variables;
2425pub mod utils;
2526pub mod variant_config;
@@ -40,7 +41,6 @@ mod windows;
4041mod package_cache_reporter;
4142pub mod source_code;
4243
43- use crate :: render:: resolved_dependencies:: RunExportsDownload ;
4444use std:: {
4545 collections:: { BTreeMap , HashMap } ,
4646 path:: { Path , PathBuf } ,
@@ -55,10 +55,6 @@ use dialoguer::Confirm;
5555use dunce:: canonicalize;
5656use fs_err as fs;
5757use futures:: FutureExt ;
58- use metadata:: {
59- BuildConfiguration , BuildSummary , Directories , Output , PackageIdentifier , PackagingSettings ,
60- build_reindexed_channels,
61- } ;
6258use miette:: { Context , IntoDiagnostic } ;
6359pub use normalized_key:: NormalizedKey ;
6460use opt:: * ;
@@ -73,15 +69,20 @@ use rattler_solve::SolveStrategy;
7369use rattler_virtual_packages:: VirtualPackageOverrides ;
7470use recipe:: parser:: { Dependency , TestType , find_outputs_from_src} ;
7571use recipe:: variable:: Variable ;
72+ use render:: resolved_dependencies:: RunExportsDownload ;
7673use selectors:: SelectorConfig ;
7774use source:: patch:: apply_patch_custom;
7875use source_code:: Source ;
7976use system_tools:: SystemTools ;
8077use tool_configuration:: { Configuration , ContinueOnFailure , SkipExisting , TestStrategy } ;
78+ use types:: Directories ;
79+ use types:: {
80+ BuildConfiguration , BuildSummary , PackageIdentifier , PackagingSettings ,
81+ build_reindexed_channels,
82+ } ;
8183use variant_config:: VariantConfig ;
8284
83- use crate :: metadata:: Debug ;
84- use crate :: metadata:: PlatformWithVirtualPackages ;
85+ use crate :: metadata:: { Debug , Output , PlatformWithVirtualPackages } ;
8586
8687/// Returns the recipe path.
8788pub fn get_recipe_path ( path : & Path ) -> miette:: Result < PathBuf > {
@@ -354,7 +355,7 @@ pub async fn get_build_output(
354355
355356 let timestamp = chrono:: Utc :: now ( ) ;
356357 let virtual_package_override = VirtualPackageOverrides :: from_env ( ) ;
357- let output = metadata :: Output {
358+ let output = Output {
358359 recipe : recipe. clone ( ) ,
359360 build_configuration : BuildConfiguration {
360361 target_platform : discovered_output. target_platform ,
@@ -821,7 +822,7 @@ pub async fn rebuild(
821822 let rendered_recipe =
822823 fs:: read_to_string ( temp_dir. join ( "rendered_recipe.yaml" ) ) . into_diagnostic ( ) ?;
823824
824- let mut output: metadata :: Output = serde_yaml:: from_str ( & rendered_recipe) . into_diagnostic ( ) ?;
825+ let mut output: Output = serde_yaml:: from_str ( & rendered_recipe) . into_diagnostic ( ) ?;
825826
826827 // set recipe dir to the temp folder
827828 output. build_configuration . directories . recipe_dir = temp_dir;
0 commit comments