Open viccuad opened 2 years ago
Hi @viccuad, This issue looks interesting to me. I would like to work on it.
Hi @MdSahil-oss, I'm not maintainer of this repo, this was just a feature request from my side :). I suppose you would need to get in contact with them, or directly submit a PR for review!
Hi @MdSahil-oss, This looks like an enhancement that is more suited for https://github.com/opensbom-generator/parsers. cc: @puerco
HI! @nishakm Thanks for letting me know, sure I'll look in the repository for this enhancement But let me know whether this enhancement is approved officially or not :)
@nishakm @puerco Let me know if this enhancement needs to be implemented in the repository so that I can start working on it :)
Summary
For Rust, support detection of cross-compilation and list the system libraries used (glibc, musl, linker, compiler, etc).
This may mean supporting
.cargo/config.toml
.This file has sections of
[target.<triple>]
. These sections specify settings for specific platform targets, see the config.toml docs.. These triplets can be used to compile against a different system library (musl instead of glibc for example), different machine architecture, etc, as usual. Example:Note that key options for those sections can be also overridden via env vars. Maybe there's a way to call
cargo
to obtain the end evaluation that takes into account the env vars.Background
Right now, SBOM of a rust project compiled for amd64 and glibc is basically the same as if compiled for arm64 and musl. Instead, this information should be included in the SBOM.