Giter Site home page Giter Site logo

Comments (9)

amy-keibler avatar amy-keibler commented on May 30, 2024 2

These are all good questions

  1. Some of my customers want to exclude certain features from builds. Is this tool feature aware?

Not currently. In this issue, I outlined a few potential areas I want to investigate. It's one of my highest priority items after we complete the work to integrate the library with the cargo plugin.

  1. Can the tool exclude build-only dependencies? I've noticed that by default is includes them.

Not currently. This somewhat falls under the first point, but it's probably worth having a separate GitHub issue to track it.

  1. Is the purl standardized for Rust somewhere in the spec? What should the purl be for crates not distributed via crates.io?

The purl specification does not indicate a required type specific to Rust, beyond

type: the package "type" or package "protocol" such as maven, npm, nuget, gem, pypi, etc. Required.

We could interpret this to mean that cargo is the "protocol", which would cover third party repositories. This probably needs its own GitHub issue for tracking.

from cyclonedx-rust-cargo.

lfrancke avatar lfrancke commented on May 30, 2024 1

Thanks. I believe we can close this issue now as everything has either been tackled or there are more specific issues.
Unless there are any objections I'll do so in a few days.

from cyclonedx-rust-cargo.

jadamcrain avatar jadamcrain commented on May 30, 2024

Thanks for these detailed answers!

from cyclonedx-rust-cargo.

lfrancke avatar lfrancke commented on May 30, 2024

We should now exclude build only dependencies in main and #512 and #513 will help with selecting features and targets

from cyclonedx-rust-cargo.

Shnatsel avatar Shnatsel commented on May 30, 2024

To clarify: only dev-dependencies are excluded. Build dependencies are included in the SBOM because unlike dev-dependencies they can influence the final binary.

from cyclonedx-rust-cargo.

lfrancke avatar lfrancke commented on May 30, 2024

Ah yes, sorry, my bad.

from cyclonedx-rust-cargo.

jadamcrain avatar jadamcrain commented on May 30, 2024

Including build dependencies make sense! Thanks for the update.

from cyclonedx-rust-cargo.

lfrancke avatar lfrancke commented on May 30, 2024

So that should fix points 1 and 2 of your list. I don't think we have tackled purls for non crates things yet anywhere but I might have missed it as well.

from cyclonedx-rust-cargo.

Shnatsel avatar Shnatsel commented on May 30, 2024

There is a tracking issue fir pURL from sources other than crates.io: #501

I am not aware of any standardization around that though.

from cyclonedx-rust-cargo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.