Skip to content

Commit

Permalink
fix: Add named debuginfo
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Oct 29, 2024
1 parent bf6559c commit dc9542d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ pub struct ArtifactProfile<'a> {
#[serde(borrow)]
pub opt_level: CowStr<'a>,
/// The amount of debug info. 0 for none, 1 for limited, 2 for full
pub debuginfo: Option<u32>,
pub debuginfo: Option<DebugInfo<'a>>,
/// State of the `cfg(debug_assertions)` directive, enabling macros like
/// `debug_assert!`
pub debug_assertions: bool,
Expand All @@ -148,6 +148,16 @@ pub struct ArtifactProfile<'a> {
pub test: bool,
}

#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[cfg_attr(feature = "strict_unstable", serde(deny_unknown_fields))]
#[serde(untagged)]
#[non_exhaustive]
pub enum DebugInfo<'a> {

Check failure

Code scanning / clippy

missing documentation for an enum Error

missing documentation for an enum
Level(u32),

Check failure

Code scanning / clippy

missing documentation for a variant Error

missing documentation for a variant
#[serde(borrow)]
Name(CowStr<'a>),

Check failure

Code scanning / clippy

missing documentation for a variant Error

missing documentation for a variant
}

/// Message left by the compiler
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[cfg_attr(feature = "strict_unstable", serde(deny_unknown_fields))]
Expand Down

0 comments on commit dc9542d

Please sign in to comment.