diff --git a/Cargo.toml b/Cargo.toml index 6bfe962..592450d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -96,6 +96,12 @@ members = ["registry"] [profile.dev.package.full_moon] opt-level = 3 +[profile.release] +opt-level = "s" +lto = true +incremental = true +codegen-units = 1 + [profile.release.package.pesde-registry] # add debug symbols for Sentry stack traces debug = "full" \ No newline at end of file diff --git a/src/cli/mod.rs b/src/cli/mod.rs index bacb572..5c68e5e 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -4,7 +4,7 @@ use fs_err::tokio as fs; use futures::StreamExt; use indicatif::MultiProgress; use pesde::{ - lockfile::{DownloadedGraph, Lockfile}, + lockfile::Lockfile, manifest::target::TargetKind, names::{PackageName, PackageNames}, source::{version_id::VersionId, workspace::specifier::VersionTypeOrReq}, @@ -124,7 +124,10 @@ impl, E: Into, N: FromStr, F: Into anyhow::Result<(PackageNames, VersionId)> { + fn get( + self, + graph: &pesde::lockfile::DownloadedGraph, + ) -> anyhow::Result<(PackageNames, VersionId)> { let version_id = match self.1 { Some(version) => version, None => {