mirror of
https://github.com/pesde-pkg/pesde.git
synced 2024-12-12 11:00:36 +00:00
chore: optimize exe size in release mode
This commit is contained in:
parent
c5d60549c9
commit
4866559025
2 changed files with 11 additions and 2 deletions
|
@ -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"
|
|
@ -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<V: FromStr<Err = E>, E: Into<anyhow::Error>, N: FromStr<Err = F>, F: Into<a
|
|||
|
||||
impl VersionedPackageName {
|
||||
#[cfg(feature = "patches")]
|
||||
fn get(self, graph: &DownloadedGraph) -> 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 => {
|
||||
|
|
Loading…
Reference in a new issue