You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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! @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 :)
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.
The text was updated successfully, but these errors were encountered: