Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package cargo-auditable for openSUSE:Factory 
checked in at 2026-11-27 21:02:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cargo-auditable (Old)
 and      /work/SRC/openSUSE:Factory/.cargo-auditable.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cargo-auditable"

Fri Nov 27 21:02:58 2026 rev:13 rq:1400698 version:0.7.8~0

Changes:
--------
--- /work/SRC/openSUSE:Factory/cargo-auditable/cargo-auditable.changes  
2026-10-10 14:58:46.397457544 +0200
+++ 
/work/SRC/openSUSE:Factory/.cargo-auditable.new.1340718/cargo-auditable.changes 
    2026-11-27 21:03:16.650210077 +0100
@@ -1,0 +2,15 @@
+Thu Nov 26 01:26:10 UTC 2026 - [email protected]
+
+- Update to version 0.7.8~0:
+  * Bump versions
+  * Fix purl qualifiers in auditable2cdx
+  * Release v0.7.8
+  * Bump format revision
+  * fix: read rustc arguments from argfiles
+  * Add test that exercises the proc macro with bin and test targets edge case
+  * Consider proc macro crates with test targets as build-time-only
+  * Upgrade cargo-dist to work around macos 14 deprecation
+  * Upgrade cargo-dist to fix eMudhra CA revocation
+  * Update "What about embedded platforms?" in the README now that embedded is 
explicitly supported
+
+-------------------------------------------------------------------

Old:
----
  cargo-auditable-0.7.7~0.tar.zst

New:
----
  cargo-auditable-0.7.8~0.tar.zst

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cargo-auditable.spec ++++++
--- /var/tmp/diff_new_pack.KBSpr0/_old  2026-11-27 21:03:18.768299067 +0100
+++ /var/tmp/diff_new_pack.KBSpr0/_new  2026-11-27 21:03:18.770299151 +0100
@@ -21,7 +21,7 @@
 %define __cargo_common_opts %{?_smp_mflags}
 
 Name:           cargo-auditable
-Version:        0.7.7~0
+Version:        0.7.8~0
 Release:        0
 Summary:        A tool to embed auditing information in ELF sections of rust 
binaries
 #               If you know the license, put it's SPDX string here.

++++++ _service ++++++
--- /var/tmp/diff_new_pack.KBSpr0/_old  2026-11-27 21:03:18.804300580 +0100
+++ /var/tmp/diff_new_pack.KBSpr0/_new  2026-11-27 21:03:18.807300706 +0100
@@ -3,7 +3,7 @@
     <param 
name="url">https://github.com/rust-secure-code/cargo-auditable.git</param>
     <param name="versionformat">@PARENT_TAG@~@TAG_OFFSET@</param>
     <param name="scm">git</param>
-    <param name="revision">v0.7.7</param>
+    <param name="revision">v0.7.8</param>
     <param name="match-tag">v*</param>
     <param name="versionrewrite-pattern">v(\d+\.\d+\.\d+)</param>
     <param name="versionrewrite-replacement">\1</param>

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.KBSpr0/_old  2026-11-27 21:03:18.842302177 +0100
+++ /var/tmp/diff_new_pack.KBSpr0/_new  2026-11-27 21:03:18.847302387 +0100
@@ -1,6 +1,6 @@
 <servicedata>
 <service name="tar_scm">
                 <param 
name="url">https://github.com/rust-secure-code/cargo-auditable.git</param>
-              <param 
name="changesrevision">3d3bb574f97dc09a264cfc666ec5d40790f6b3ba</param></service></servicedata>
+              <param 
name="changesrevision">74ae287406c16070a2410bd0b9791cd515ca9e16</param></service></servicedata>
 (No newline at EOF)
 

++++++ cargo-auditable-0.7.7~0.tar.zst -> cargo-auditable-0.7.8~0.tar.zst ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cargo-auditable-0.7.7~0/.github/workflows/release.yml 
new/cargo-auditable-0.7.8~0/.github/workflows/release.yml
--- old/cargo-auditable-0.7.7~0/.github/workflows/release.yml   2026-10-02 
14:59:47.000000000 +0200
+++ new/cargo-auditable-0.7.8~0/.github/workflows/release.yml   2026-11-25 
12:44:30.000000000 +0100
@@ -64,9 +64,9 @@
         # we specify bash to get pipefail; it guards against the `curl` command
         # failing. otherwise `sh` won't catch that `curl` returned non-0
         shell: bash
-        run: "curl --proto '=https' --tlsv1.2 -LsSf 
https://github.com/axodotdev/cargo-dist/releases/download/v0.31.0/cargo-dist-installer.sh
 | sh"
+        run: "curl --proto '=https' --tlsv1.2 -LsSf 
https://github.com/axodotdev/cargo-dist/releases/download/v0.34.0/cargo-dist-installer.sh
 | sh"
       - name: Cache dist
-        uses: actions/upload-artifact@v6
+        uses: actions/upload-artifact@v7
         with:
           name: cargo-dist-cache
           path: ~/.cargo/bin/dist
@@ -82,7 +82,7 @@
           cat plan-dist-manifest.json
           echo "manifest=$(jq -c "." plan-dist-manifest.json)" >> 
"$GITHUB_OUTPUT"
       - name: "Upload dist-manifest.json"
-        uses: actions/upload-artifact@v6
+        uses: actions/upload-artifact@v7
         with:
           name: artifacts-plan-dist-manifest
           path: plan-dist-manifest.json
@@ -131,7 +131,7 @@
         run: ${{ matrix.install_dist.run }}
       # Get the dist-manifest
       - name: Fetch local artifacts
-        uses: actions/download-artifact@v7
+        uses: actions/download-artifact@v8
         with:
           pattern: artifacts-*
           path: target/distrib/
@@ -158,7 +158,7 @@
 
           cp dist-manifest.json "$BUILD_MANIFEST_NAME"
       - name: "Upload artifacts"
-        uses: actions/upload-artifact@v6
+        uses: actions/upload-artifact@v7
         with:
           name: artifacts-build-local-${{ join(matrix.targets, '_') }}
           path: |
@@ -180,14 +180,14 @@
           persist-credentials: false
           submodules: recursive
       - name: Install cached dist
-        uses: actions/download-artifact@v7
+        uses: actions/download-artifact@v8
         with:
           name: cargo-dist-cache
           path: ~/.cargo/bin/
       - run: chmod +x ~/.cargo/bin/dist
       # Get all the local artifacts for the global tasks to use (for e.g. 
checksums)
       - name: Fetch local artifacts
-        uses: actions/download-artifact@v7
+        uses: actions/download-artifact@v8
         with:
           pattern: artifacts-*
           path: target/distrib/
@@ -205,7 +205,7 @@
 
           cp dist-manifest.json "$BUILD_MANIFEST_NAME"
       - name: "Upload artifacts"
-        uses: actions/upload-artifact@v6
+        uses: actions/upload-artifact@v7
         with:
           name: artifacts-build-global
           path: |
@@ -230,14 +230,14 @@
           persist-credentials: false
           submodules: recursive
       - name: Install cached dist
-        uses: actions/download-artifact@v7
+        uses: actions/download-artifact@v8
         with:
           name: cargo-dist-cache
           path: ~/.cargo/bin/
       - run: chmod +x ~/.cargo/bin/dist
       # Fetch artifacts from scratch-storage
       - name: Fetch artifacts
-        uses: actions/download-artifact@v7
+        uses: actions/download-artifact@v8
         with:
           pattern: artifacts-*
           path: target/distrib/
@@ -250,14 +250,14 @@
           cat dist-manifest.json
           echo "manifest=$(jq -c "." dist-manifest.json)" >> "$GITHUB_OUTPUT"
       - name: "Upload dist-manifest.json"
-        uses: actions/upload-artifact@v6
+        uses: actions/upload-artifact@v7
         with:
           # Overwrite the previous copy
           name: artifacts-dist-manifest
           path: dist-manifest.json
       # Create a GitHub Release while uploading all files to it
       - name: "Download GitHub Artifacts"
-        uses: actions/download-artifact@v7
+        uses: actions/download-artifact@v8
         with:
           pattern: artifacts-*
           path: artifacts
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cargo-auditable-0.7.7~0/Cargo.lock 
new/cargo-auditable-0.7.8~0/Cargo.lock
--- old/cargo-auditable-0.7.7~0/Cargo.lock      2026-10-02 14:59:47.000000000 
+0200
+++ new/cargo-auditable-0.7.8~0/Cargo.lock      2026-11-25 12:44:30.000000000 
+0100
@@ -19,7 +19,7 @@
 
 [[package]]
 name = "auditable-cyclonedx"
-version = "0.2.0"
+version = "0.2.1"
 dependencies = [
  "auditable-serde",
  "cyclonedx-bom",
@@ -56,7 +56,7 @@
 
 [[package]]
 name = "auditable2cdx"
-version = "0.1.1"
+version = "0.1.2"
 dependencies = [
  "auditable-cyclonedx",
  "auditable-info",
@@ -116,7 +116,7 @@
 
 [[package]]
 name = "cargo-auditable"
-version = "0.7.7"
+version = "0.7.8"
 dependencies = [
  "auditable-info",
  "auditable-serde",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cargo-auditable-0.7.7~0/Cargo.toml 
new/cargo-auditable-0.7.8~0/Cargo.toml
--- old/cargo-auditable-0.7.7~0/Cargo.toml      2026-10-02 14:59:47.000000000 
+0200
+++ new/cargo-auditable-0.7.8~0/Cargo.toml      2026-11-25 12:44:30.000000000 
+0100
@@ -13,7 +13,7 @@
 # Config for 'dist'
 [workspace.metadata.dist]
 # The preferred dist version to use in CI (Cargo.toml SemVer syntax)
-cargo-dist-version = "0.31.0"
+cargo-dist-version = "0.34.0"
 # CI backends to support
 ci = "github"
 # The installers to generate for each app
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cargo-auditable-0.7.7~0/README.md 
new/cargo-auditable-0.7.8~0/README.md
--- old/cargo-auditable-0.7.7~0/README.md       2026-10-02 14:59:47.000000000 
+0200
+++ new/cargo-auditable-0.7.8~0/README.md       2026-11-25 12:44:30.000000000 
+0100
@@ -97,7 +97,7 @@
 
 ### What about embedded platforms?
 
-Embedded platforms where you cannot spare a byte should not add anything in 
the executable. Instead they should record the hash of every executable in a 
database and associate the hash with its Cargo.lock, compiler and LLVM version, 
build date, etc. This would make for an excellent Cargo wrapper or plugin. 
Since that can be done in a 5-line shell script, writing that tool is left as 
an exercise to the reader.
+The audit data is embedded in the firmware image, but is not flashed onto the 
space-constrained microcontroller. This keeps the image auditable without 
wasting precious ROM.
 
 ### Does this impact reproducible builds?
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cargo-auditable-0.7.7~0/auditable-cyclonedx/Cargo.toml 
new/cargo-auditable-0.7.8~0/auditable-cyclonedx/Cargo.toml
--- old/cargo-auditable-0.7.7~0/auditable-cyclonedx/Cargo.toml  2026-10-02 
14:59:47.000000000 +0200
+++ new/cargo-auditable-0.7.8~0/auditable-cyclonedx/Cargo.toml  2026-11-25 
12:44:30.000000000 +0100
@@ -1,6 +1,6 @@
 [package]
 name = "auditable-cyclonedx"
-version = "0.2.0"
+version = "0.2.1"
 edition = "2021"
 authors = ["Sergey \"Shnatsel\" Davidoff <[email protected]>"]
 license = "MIT OR Apache-2.0"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cargo-auditable-0.7.7~0/auditable-cyclonedx/src/lib.rs 
new/cargo-auditable-0.7.8~0/auditable-cyclonedx/src/lib.rs
--- old/cargo-auditable-0.7.7~0/auditable-cyclonedx/src/lib.rs  2026-10-02 
14:59:47.000000000 +0200
+++ new/cargo-auditable-0.7.8~0/auditable-cyclonedx/src/lib.rs  2026-11-25 
12:44:30.000000000 +0100
@@ -118,13 +118,21 @@
     // (but percent-encoding is underspecified and not interoperable anyway,
     // see e.g. https://github.com/package-url/purl-spec/pull/261)
     let mut purl = format!("pkg:cargo/{}@{}", pkg.name, pkg.version);
-    purl.push_str(match &pkg.source {
-        Source::CratesIo => "", // this is the default, nothing to qualify
-        Source::Git => "&vcs_url=redacted",
-        Source::Local => "&download_url=redacted",
-        Source::Registry => "&repository_url=redacted",
-        Source::Other(_) => "&download_url=redacted",
+    // Qualifiers are delimited from the version by `?`, and from each other 
by `&`.
+    // Getting the leading `?` wrong makes PURL parsers treat the qualifier as 
part of the version.
+    let qualifier = match &pkg.source {
+        Source::CratesIo => None, // this is the default, nothing to qualify
+        Source::Git => Some(("vcs_url", "redacted")),
+        Source::Local => Some(("download_url", "redacted")),
+        Source::Registry => Some(("repository_url", "redacted")),
+        Source::Other(_) => Some(("download_url", "redacted")),
         unknown => panic!("Unknown source: {unknown:?}"),
-    });
+    };
+    if let Some((key, value)) = qualifier {
+        purl.push('?');
+        purl.push_str(key);
+        purl.push('=');
+        purl.push_str(value);
+    }
     purl
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cargo-auditable-0.7.7~0/auditable-serde/src/lib.rs 
new/cargo-auditable-0.7.8~0/auditable-serde/src/lib.rs
--- old/cargo-auditable-0.7.7~0/auditable-serde/src/lib.rs      2026-10-02 
14:59:47.000000000 +0200
+++ new/cargo-auditable-0.7.8~0/auditable-serde/src/lib.rs      2026-11-25 
12:44:30.000000000 +0100
@@ -63,6 +63,13 @@
     ///
     /// May still include slightly more dependencies than are actually used, 
especially in workspaces.
     ///
+    /// ## 2
+    ///
+    /// Same as 1, but correctly records proc-macro crates that have targets 
other than the proc macro itself
+    /// (such as tests, examples or a build script) as build-time dependencies.
+    /// Format 1 only recognized proc-macro crates consisting of a single 
target,
+    /// so a proc macro shipping tests or examples was mistaken for a runtime 
dependency.
+    ///
     /// ## 8
     ///
     /// Generated using Cargo's [SBOM 
precursor](https://doc.rust-lang.org/cargo/reference/unstable.html#sbom) as the 
data source.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cargo-auditable-0.7.7~0/auditable2cdx/Cargo.toml 
new/cargo-auditable-0.7.8~0/auditable2cdx/Cargo.toml
--- old/cargo-auditable-0.7.7~0/auditable2cdx/Cargo.toml        2026-10-02 
14:59:47.000000000 +0200
+++ new/cargo-auditable-0.7.8~0/auditable2cdx/Cargo.toml        2026-11-25 
12:44:30.000000000 +0100
@@ -1,6 +1,6 @@
 [package]
 name = "auditable2cdx"
-version = "0.1.1"
+version = "0.1.2"
 edition = "2021"
 authors = ["Sergey \"Shnatsel\" Davidoff <[email protected]>"]
 license = "MIT OR Apache-2.0"
@@ -11,7 +11,7 @@
 
 [dependencies]
 auditable-info = {version = "0.10.0", path = "../auditable-info"}
-auditable-cyclonedx = {version = "0.2.0", path = "../auditable-cyclonedx"}
+auditable-cyclonedx = {version = "0.2.1", path = "../auditable-cyclonedx"}
 serde_json = {version = "1.0.114", features = ["preserve_order"] } # the 
feature is needed for workarounds module only
 
 [package.metadata.dist]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cargo-auditable-0.7.7~0/cargo-auditable/CHANGELOG.md 
new/cargo-auditable-0.7.8~0/cargo-auditable/CHANGELOG.md
--- old/cargo-auditable-0.7.7~0/cargo-auditable/CHANGELOG.md    2026-10-02 
14:59:47.000000000 +0200
+++ new/cargo-auditable-0.7.8~0/cargo-auditable/CHANGELOG.md    2026-11-25 
12:44:30.000000000 +0100
@@ -5,6 +5,13 @@
 The format is based on [Keep a 
Changelog](https://keepachangelog.com/en/1.0.0/),
 and this project adheres to [Semantic 
Versioning](https://semver.org/spec/v2.0.0.html).
 
+## [0.7.8] - 2026-11-25
+
+### Fixed
+
+ - Fixed audit data not being embedded on Windows on Rust 1.100 or later in 
large projects due to Cargo running into command-line argument length limit and 
passing arguments as an argfile.
+ - Fixed proc macros with additional targets (tests, examples) being 
incorrectly treated as runtime dependencies, when not using `-Z sbom`. Data 
with this fix is written as format revision 2.
+
 ## [0.7.7] - 2026-10-02
 
 ### Added
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cargo-auditable-0.7.7~0/cargo-auditable/Cargo.toml 
new/cargo-auditable-0.7.8~0/cargo-auditable/Cargo.toml
--- old/cargo-auditable-0.7.7~0/cargo-auditable/Cargo.toml      2026-10-02 
14:59:47.000000000 +0200
+++ new/cargo-auditable-0.7.8~0/cargo-auditable/Cargo.toml      2026-11-25 
12:44:30.000000000 +0100
@@ -1,6 +1,6 @@
 [package]
 name = "cargo-auditable"
-version = "0.7.7"
+version = "0.7.8"
 edition = "2021"
 authors = ["Sergey \"Shnatsel\" Davidoff <[email protected]>"]
 license = "MIT OR Apache-2.0"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cargo-auditable-0.7.7~0/cargo-auditable/src/auditable_from_metadata.rs 
new/cargo-auditable-0.7.8~0/cargo-auditable/src/auditable_from_metadata.rs
--- old/cargo-auditable-0.7.7~0/cargo-auditable/src/auditable_from_metadata.rs  
2026-10-02 14:59:47.000000000 +0200
+++ new/cargo-auditable-0.7.8~0/cargo-auditable/src/auditable_from_metadata.rs  
2026-11-25 12:44:30.000000000 +0100
@@ -221,7 +221,7 @@
     }
     Ok(VersionInfo {
         packages,
-        format: 1,
+        format: 2,
     })
 }
 
@@ -237,12 +237,13 @@
         .packages
         .iter()
         .filter_map(|pkg| {
-            // As of Rust 1.88 a single crate cannot be both a proc macro and 
something else.
-            // Checking that length is 1 is purely to hedge against support 
for it being added in the future.
-            if pkg.targets.len() == 1
-                && pkg.targets[0].kind.len() == 1
-                && pkg.targets[0].kind[0] == TargetKind::ProcMacro
-            {
+            // As of Rust 1.100 a single crate cannot be both a proc macro and 
something else.
+            // There may be extra targets such as tests or a build script, so 
we ignore those.
+            let is_proc_macro = pkg
+                .targets
+                .iter()
+                .any(|target| target.kind.len() == 1 && target.kind[0] == 
TargetKind::ProcMacro);
+            if is_proc_macro {
                 Some(pkg.id.repr.as_str())
             } else {
                 None
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cargo-auditable-0.7.7~0/cargo-auditable/src/rustc_arguments.rs 
new/cargo-auditable-0.7.8~0/cargo-auditable/src/rustc_arguments.rs
--- old/cargo-auditable-0.7.7~0/cargo-auditable/src/rustc_arguments.rs  
2026-10-02 14:59:47.000000000 +0200
+++ new/cargo-auditable-0.7.8~0/cargo-auditable/src/rustc_arguments.rs  
2026-11-25 12:44:30.000000000 +0100
@@ -1,6 +1,6 @@
 //! Parses rustc arguments to extract the info not provided via environment 
variables.
 
-use std::{ffi::OsString, path::PathBuf};
+use std::{error::Error, ffi::OsString, fs, io, path::PathBuf};
 
 // We use pico-args because we only need to extract a few specific arguments 
out of a larger set,
 // and other parsers (rustc's `getopts`, cargo's `clap`) make that difficult.
@@ -101,9 +101,34 @@
     }
 }
 
-pub fn parse_args() -> Result<RustcArgs, pico_args::Error> {
-    let raw_args: Vec<OsString> = std::env::args_os().skip(2).collect();
-    RustcArgs::from_vec(raw_args)
+pub fn parse_args() -> Result<RustcArgs, Box<dyn Error>> {
+    let raw_args = expand_argfiles(std::env::args_os().skip(2))?;
+    Ok(RustcArgs::from_vec(raw_args)?)
+}
+
+/// Expands `@path` argfiles like rustc does. Cargo uses them when the command 
line is too long.
+/// `@shell:path` is left as is, since rustc only reads it with 
`-Zshell-argfiles`.
+fn expand_argfiles(raw_args: impl IntoIterator<Item = OsString>) -> 
io::Result<Vec<OsString>> {
+    let mut expanded = Vec::new();
+    for arg in raw_args {
+        let argfile = arg
+            .to_str()
+            .and_then(|s| s.strip_prefix('@'))
+            .filter(|path| !path.starts_with("shell:"));
+        match argfile {
+            Some(path) => {
+                let contents = fs::read_to_string(path).map_err(|err| {
+                    io::Error::new(
+                        err.kind(),
+                        format!("failed to read rustc argument file {path}: 
{err}"),
+                    )
+                })?;
+                expanded.extend(contents.lines().map(OsString::from));
+            }
+            None => expanded.push(arg),
+        }
+    }
+    Ok(expanded)
 }
 
 pub fn should_embed_audit_data(args: &RustcArgs) -> bool {
@@ -265,4 +290,11 @@
 
         assert!(!args.bare_linker().unwrap());
     }
+
+    #[test]
+    fn shell_argfile_is_not_expanded() {
+        // Users can pass `-Zshell-argfiles @shell:file` to rustc via RUSTFLAGS
+        let raw_args = vec![OsString::from("@shell:missing-file")];
+        assert_eq!(expand_argfiles(raw_args.clone()).unwrap(), raw_args);
+    }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/Cargo.toml
 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/Cargo.toml
--- 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/Cargo.toml
 1970-01-01 01:00:00.000000000 +0100
+++ 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/Cargo.toml
 2026-11-25 12:44:30.000000000 +0100
@@ -0,0 +1,3 @@
+[workspace]
+resolver = "2"
+members = ["app", "derive", "macro_only_dep", "shared"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/app/Cargo.toml
 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/app/Cargo.toml
--- 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/app/Cargo.toml
     1970-01-01 01:00:00.000000000 +0100
+++ 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/app/Cargo.toml
     2026-11-25 12:44:30.000000000 +0100
@@ -0,0 +1,8 @@
+[package]
+name = "app"
+version = "0.1.0"
+edition = "2021"
+
+[dependencies]
+derive = { path = "../derive" }
+shared = { path = "../shared" }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/app/src/main.rs
 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/app/src/main.rs
--- 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/app/src/main.rs
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/app/src/main.rs
    2026-11-25 12:44:30.000000000 +0100
@@ -0,0 +1 @@
+fn main() {}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/derive/Cargo.toml
 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/derive/Cargo.toml
--- 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/derive/Cargo.toml
  1970-01-01 01:00:00.000000000 +0100
+++ 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/derive/Cargo.toml
  2026-11-25 12:44:30.000000000 +0100
@@ -0,0 +1,11 @@
+[package]
+name = "derive"
+version = "0.1.0"
+edition = "2021"
+
+[lib]
+proc-macro = true
+
+[dependencies]
+macro_only_dep = { path = "../macro_only_dep" }
+shared = { path = "../shared" }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/derive/src/lib.rs
 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/derive/src/lib.rs
--- 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/derive/src/lib.rs
  1970-01-01 01:00:00.000000000 +0100
+++ 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/derive/src/lib.rs
  2026-11-25 12:44:30.000000000 +0100
@@ -0,0 +1,8 @@
+extern crate proc_macro;
+
+use proc_macro::TokenStream;
+
+#[proc_macro]
+pub fn derive(_input: TokenStream) -> TokenStream {
+    TokenStream::new()
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/derive/tests/smoke.rs
 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/derive/tests/smoke.rs
--- 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/derive/tests/smoke.rs
      1970-01-01 01:00:00.000000000 +0100
+++ 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/derive/tests/smoke.rs
      2026-11-25 12:44:30.000000000 +0100
@@ -0,0 +1,2 @@
+#[test]
+fn smoke() {}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/macro_only_dep/Cargo.toml
 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/macro_only_dep/Cargo.toml
--- 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/macro_only_dep/Cargo.toml
  1970-01-01 01:00:00.000000000 +0100
+++ 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/macro_only_dep/Cargo.toml
  2026-11-25 12:44:30.000000000 +0100
@@ -0,0 +1,4 @@
+[package]
+name = "macro_only_dep"
+version = "0.1.0"
+edition = "2021"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/macro_only_dep/src/lib.rs
 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/macro_only_dep/src/lib.rs
--- 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/macro_only_dep/src/lib.rs
  1970-01-01 01:00:00.000000000 +0100
+++ 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/macro_only_dep/src/lib.rs
  2026-11-25 12:44:30.000000000 +0100
@@ -0,0 +1 @@
+pub fn helper() {}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/shared/Cargo.toml
 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/shared/Cargo.toml
--- 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/shared/Cargo.toml
  1970-01-01 01:00:00.000000000 +0100
+++ 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/shared/Cargo.toml
  2026-11-25 12:44:30.000000000 +0100
@@ -0,0 +1,4 @@
+[package]
+name = "shared"
+version = "0.1.0"
+edition = "2021"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/shared/src/lib.rs
 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/shared/src/lib.rs
--- 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/proc_macro_dependency/shared/src/lib.rs
  1970-01-01 01:00:00.000000000 +0100
+++ 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/proc_macro_dependency/shared/src/lib.rs
  2026-11-25 12:44:30.000000000 +0100
@@ -0,0 +1 @@
+pub fn runtime() {}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/rustc_args_in_argfile/Cargo.toml
 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/rustc_args_in_argfile/Cargo.toml
--- 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/rustc_args_in_argfile/Cargo.toml
 1970-01-01 01:00:00.000000000 +0100
+++ 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/rustc_args_in_argfile/Cargo.toml
 2026-11-25 12:44:30.000000000 +0100
@@ -0,0 +1,6 @@
+[package]
+name = "rustc_args_in_argfile"
+version = "0.1.0"
+edition = "2021"
+
+[workspace]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/rustc_args_in_argfile/src/main.rs
 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/rustc_args_in_argfile/src/main.rs
--- 
old/cargo-auditable-0.7.7~0/cargo-auditable/tests/fixtures/rustc_args_in_argfile/src/main.rs
        1970-01-01 01:00:00.000000000 +0100
+++ 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/fixtures/rustc_args_in_argfile/src/main.rs
        2026-11-25 12:44:30.000000000 +0100
@@ -0,0 +1,3 @@
+fn main() {
+    println!("Hello, world!");
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cargo-auditable-0.7.7~0/cargo-auditable/tests/it.rs 
new/cargo-auditable-0.7.8~0/cargo-auditable/tests/it.rs
--- old/cargo-auditable-0.7.7~0/cargo-auditable/tests/it.rs     2026-10-02 
14:59:47.000000000 +0200
+++ new/cargo-auditable-0.7.8~0/cargo-auditable/tests/it.rs     2026-11-25 
12:44:30.000000000 +0100
@@ -487,6 +487,32 @@
 }
 
 #[test]
+fn test_rustc_arguments_in_argfile() {
+    test_rustc_arguments_in_argfile_inner(false);
+    test_rustc_arguments_in_argfile_inner(true);
+}
+fn test_rustc_arguments_in_argfile_inner(sbom: bool) {
+    // Makes Cargo pass the rustc arguments in an `@argfile`, as it does for 
long command lines
+    let workspace_cargo_toml = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
+        .join("tests/fixtures/rustc_args_in_argfile/Cargo.toml");
+    let bins = run_cargo_auditable(
+        workspace_cargo_toml,
+        &[],
+        &[("__CARGO_TEST_FORCE_ARGFILE", OsStr::new("1"))],
+        sbom,
+    );
+    eprintln!("Test fixture binary map: {bins:?}");
+
+    let bin = &bins.get("rustc_args_in_argfile").unwrap()[0];
+    let dep_info = get_dependency_info(bin);
+    eprintln!("{bin} dependency info: {dep_info:?}");
+    assert!(dep_info
+        .packages
+        .iter()
+        .any(|p| p.name == "rustc_args_in_argfile"));
+}
+
+#[test]
 fn test_workspace_member_version_info() {
     // Test that `/path/to/cargo-auditable rustc -vV works when compiling a 
workspace member
     //
@@ -587,6 +613,48 @@
 }
 
 #[test]
+fn test_proc_macro_with_test_target() {
+    test_proc_macro_with_test_target_inner(false);
+    test_proc_macro_with_test_target_inner(true);
+}
+
+fn test_proc_macro_with_test_target_inner(sbom: bool) {
+    // The proc macro crate has an integration test target, so it has more 
than one target.
+    // It must still be recorded as a build-time-only dependency.
+    let workspace_cargo_toml = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
+        .join("tests/fixtures/proc_macro_dependency/Cargo.toml");
+    let bins = run_cargo_auditable(workspace_cargo_toml, &[], &[], sbom);
+    eprintln!("Proc macro with test target binary map: {bins:?}");
+
+    let binary = &bins.get("app").unwrap()[0];
+    let dep_info = get_dependency_info(binary);
+    eprintln!("{binary} dependency info: {dep_info:?}");
+
+    let derive_info = dep_info
+        .packages
+        .iter()
+        .find(|p| p.name == "derive")
+        .expect("Could not find 'derive' in the embedded dependency list!");
+    assert_eq!(derive_info.kind, DependencyKind::Build);
+
+    // Dependencies only reachable through the proc macro are also 
build-time-only.
+    let macro_only_dep_info = dep_info
+        .packages
+        .iter()
+        .find(|p| p.name == "macro_only_dep")
+        .expect("Could not find 'macro_only_dep' in the embedded dependency 
list!");
+    assert_eq!(macro_only_dep_info.kind, DependencyKind::Build);
+
+    // A dependency used by both the app and the proc macro remains a runtime 
dependency.
+    let shared_info = dep_info
+        .packages
+        .iter()
+        .find(|p| p.name == "shared")
+        .expect("Could not find 'shared' in the embedded dependency list!");
+    assert_eq!(shared_info.kind, DependencyKind::Runtime);
+}
+
+#[test]
 fn test_bare_linker() {
     test_bare_linker_inner(false);
     test_bare_linker_inner(true);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/cargo-auditable-0.7.7~0/cargo-auditable.schema.json 
new/cargo-auditable-0.7.8~0/cargo-auditable.schema.json
--- old/cargo-auditable-0.7.7~0/cargo-auditable.schema.json     2026-10-02 
14:59:47.000000000 +0200
+++ new/cargo-auditable-0.7.8~0/cargo-auditable.schema.json     2026-11-25 
12:44:30.000000000 +0100
@@ -9,7 +9,7 @@
   ],
   "properties": {
     "format": {
-      "description": "Format revision. Identifies the data source for the 
audit data.\n\nFormat revisions are **backwards compatible.** If an unknown 
format is encountered, it should be treated as the highest known preceding 
format. For example, if formats `0`, `1` and `8` are known, format `4` should 
be treated as if it's `1`.\n\n# Known formats\n\n## 0 (or the field is 
absent)\n\nGenerated based on the data provided by [`cargo 
metadata`](https://doc.rust-lang.org/cargo/commands/cargo-metadata.html).\n\nThere
 are multiple [known](https://github.com/rust-lang/cargo/issues/7754) 
[issues](https://github.com/rust-lang/cargo/issues/10718) with this data 
source, leading to the audit data sometimes including more dependencies than 
are really used in the build.\n\nHowever, is the only machine-readable data 
source available on stable Rust as of v1.88.\n\nAdditionally, this format 
incorrectly includes [procedural 
macros](https://doc.rust-lang.org/reference/procedural-macros.html) and their d
 ependencies as runtime dependencies while in reality they are build-time 
dependencies.\n\n## 1\n\nSame as 0, but correctly records proc-macros and their 
dependencies as build-time dependencies.\n\nMay still include slightly more 
dependencies than are actually used, especially in workspaces.\n\n## 
8\n\nGenerated using Cargo's [SBOM 
precursor](https://doc.rust-lang.org/cargo/reference/unstable.html#sbom) as the 
data source.\n\nThis data is highly accurate, but as of Rust v1.88 can only be 
generated using a nightly build of Cargo.",
+      "description": "Format revision. Identifies the data source for the 
audit data.\n\nFormat revisions are **backwards compatible.** If an unknown 
format is encountered, it should be treated as the highest known preceding 
format. For example, if formats `0`, `1` and `8` are known, format `4` should 
be treated as if it's `1`.\n\n# Known formats\n\n## 0 (or the field is 
absent)\n\nGenerated based on the data provided by [`cargo 
metadata`](https://doc.rust-lang.org/cargo/commands/cargo-metadata.html).\n\nThere
 are multiple [known](https://github.com/rust-lang/cargo/issues/7754) 
[issues](https://github.com/rust-lang/cargo/issues/10718) with this data 
source, leading to the audit data sometimes including more dependencies than 
are really used in the build.\n\nHowever, is the only machine-readable data 
source available on stable Rust as of v1.88.\n\nAdditionally, this format 
incorrectly includes [procedural 
macros](https://doc.rust-lang.org/reference/procedural-macros.html) and their d
 ependencies as runtime dependencies while in reality they are build-time 
dependencies.\n\n## 1\n\nSame as 0, but correctly records proc-macros and their 
dependencies as build-time dependencies.\n\nMay still include slightly more 
dependencies than are actually used, especially in workspaces.\n\n## 2\n\nSame 
as 1, but correctly records proc-macro crates that have targets other than the 
proc macro itself (such as tests, examples or a build script) as build-time 
dependencies. Format 1 only recognized proc-macro crates consisting of a single 
target, so a proc macro shipping tests or examples was mistaken for a runtime 
dependency.\n\n## 8\n\nGenerated using Cargo's [SBOM 
precursor](https://doc.rust-lang.org/cargo/reference/unstable.html#sbom) as the 
data source.\n\nThis data is highly accurate, but as of Rust v1.88 can only be 
generated using a nightly build of Cargo.",
       "type": "integer",
       "format": "uint32",
       "minimum": 0.0

++++++ cargo-auditable.obsinfo ++++++
--- /var/tmp/diff_new_pack.KBSpr0/_old  2026-11-27 21:03:18.976307807 +0100
+++ /var/tmp/diff_new_pack.KBSpr0/_new  2026-11-27 21:03:18.981308017 +0100
@@ -1,5 +1,5 @@
 name: cargo-auditable
-version: 0.7.7~0
-mtime: 1790945987
-commit: 3d3bb574f97dc09a264cfc666ec5d40790f6b3ba
+version: 0.7.8~0
+mtime: 1795607070
+commit: 74ae287406c16070a2410bd0b9791cd515ca9e16
 

++++++ vendor.tar.zst ++++++
/work/SRC/openSUSE:Factory/cargo-auditable/vendor.tar.zst 
/work/SRC/openSUSE:Factory/.cargo-auditable.new.1340718/vendor.tar.zst differ: 
char 8, line 1

Reply via email to