diff --git a/src/config/file_info.rs b/src/config/file_info.rs index c51ae88..620da88 100644 --- a/src/config/file_info.rs +++ b/src/config/file_info.rs @@ -108,7 +108,11 @@ impl FileInfo<'_, '_, '_, '_> { parent: P, idx: usize, ) -> Result, ConfigError> { - let profile = build_target.profile.as_deref().unwrap_or("release"); + let profile = match build_target.profile.as_deref() { + Some(v) if v == "dev" => "debug", + Some(v) => v, + None => "release", + }; let source = self .source .strip_prefix("target/release/")