Rust binaries can statically link to native libraries generated by build scripts. These libraries should be included in the SBOM.
cargo build JSON messages can show what libraries are linked (via the linked_libs field) , and the linker search paths configured by the build script. cargo-spdx could use this to look for the linked libraries.
Rust binaries can statically link to native libraries generated by build scripts. These libraries should be included in the SBOM.
cargo build
JSON messages can show what libraries are linked (via thelinked_libs
field) , and the linker search paths configured by the build script. cargo-spdx could use this to look for the linked libraries.Examples (from
cargo build --message-format json | grep build-script
of cargo-spdx itself):The out_dir typically contains the sources used to build the linked library - suspect we should include SBOM entries for all files in the out_dir.