Code Monkey home page Code Monkey logo

csaf-rs's People

Contributors

ctron avatar dependabot[bot] avatar lulf avatar voteblake avatar

Watchers

 avatar  avatar  avatar

csaf-rs's Issues

Release 0.4.0

Hi! I was happy to find this crate and wanted to use it in my project. Are there any 'blockers' for releasing the 0.4.0 version of this crate? I need some of the functionality that has been added since 0.3.2

Implement Clone, and maybe PartialEq, Eq

In order to use this with Yew in a WebAssembly environment it would be necessary sometimes to clone the Csaf document. Also, it would be helpful in some cases to have PartialEq and Eq.

If you like, I can submit a PR for this.

Parsing a document might panic

Having a vector string with an unknown metric might panic. It should report an error instead:

You should not have been able to construct a cvss_json::Cvss3 except from a cvss::v3::Base which should always have a valid vector string: UnknownMetric { name: "E" }

I think the cause for this is:

impl From<Cvss3> for cvss::v3::Base {
fn from(b: Cvss3) -> Self {
cvss::v3::Base::from_str(&b.vector_string)
.expect("You should not have been able to construct a cvss_json::Cvss3 except from a cvss::v3::Base which should always have a valid vector string")
}
}

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.