From 1657d646f02c7edce7a22da37887a7408e1cedc0 Mon Sep 17 00:00:00 2001 From: tanneberger Date: Fri, 20 Sep 2024 20:25:02 +0200 Subject: [PATCH] more clean up --- src/package/mod.rs | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/package/mod.rs b/src/package/mod.rs index 6bddea1..6ccb29c 100644 --- a/src/package/mod.rs +++ b/src/package/mod.rs @@ -4,28 +4,30 @@ pub mod tree; pub mod target_properties; -use crate::args::{BuildSystem, InitArgs, Platform, TargetLanguage}; -use crate::util::{analyzer, copy_recursively}; use git2::Repository; use serde::de::{Error, Visitor}; use serde::{Deserializer, Serializer}; use serde_derive::{Deserialize, Serialize}; use std::collections::HashMap; -use std::fs::{read_to_string, remove_dir_all, remove_file, write}; -use std::io::ErrorKind; -use std::path::{Path, PathBuf}; -use std::{env, fmt, io}; use tempfile::tempdir; use versions::Versioning; use which::which; -use crate::args::BuildSystem::{CMake, LFC}; -use crate::package::target_properties::{ - AppTargetProperties, AppTargetPropertiesFile, LibraryTargetProperties, - LibraryTargetPropertiesFile, +use std::fs::{read_to_string, remove_dir_all, remove_file, write}; +use std::io::ErrorKind; +use std::path::{Path, PathBuf}; +use std::{env, fmt, io}; +use std::str::FromStr; + +use crate::util::{analyzer, copy_recursively, errors::{BuildResult, LingoError}}; +use crate::args::{BuildSystem, InitArgs, Platform, TargetLanguage, BuildSystem::{CMake, LFC}}; +use crate::package::{ + tree::PackageDetails, + target_properties::{ + AppTargetProperties, AppTargetPropertiesFile, LibraryTargetProperties, + LibraryTargetPropertiesFile, + } }; -use crate::package::tree::PackageDetails; -use crate::util::errors::{BuildResult, LingoError}; /// place where are the build artifacts will be dropped pub const OUTPUT_DIRECTORY: &str = "build";