Code Monkey home page Code Monkey logo

Comments (5)

mbrubeck avatar mbrubeck commented on August 23, 2024 1

As a maintainer, I would prefer to keep this repo writeable for now so we can apply updates and fixes to benefit the few people still using this library. However, I do think that we should do what we can to encourage most people not to use this library. Perhaps that should include a RustSec advisory so tools like cargo-audit will complain. Documentation pointing to alternatives is definitely a good idea.

The upstream C library always has many open security bugs, and as a matter of policy its maintainers do not intend the code to be usable with untrusted input or in any other security-sensitive context. Most Rust projects expect rather different standards regarding security and undefined behavior, and should be using the pure Rust image libraries instead. Most contributions should be (and are) going toward improving those libraries, including making sure their performance is competitive with stb_image.

from rust-stb-image.

workingjubilee avatar workingjubilee commented on August 23, 2024

cc @MarijnS95 in #105 you indicated you were using it and alluded to doing more maintenance to this crate. Could you explain your use case a bit more? Does this crate offer significant features that e.g. image does not?

from rust-stb-image.

MarijnS95 avatar MarijnS95 commented on August 23, 2024

"We" as in "collectively the open source community" should put more effort in maintaining this crate.

If I remember correctly it was - maybe still is - much faster at loading images.

The stb_image_rust crate you linked, in typical Rust NIH fashion (πŸ™), looks to have been created as quickly as it got abandoned :/

from rust-stb-image.

workingjubilee avatar workingjubilee commented on August 23, 2024

@MarijnS95

The stb_image_rust crate you linked, in typical Rust NIH fashion (πŸ™), looks to have been created as quickly as it got abandoned :/

yeah I unlinked it as soon as I looked a bit more closely because yeah that's 🫠

If I remember correctly it was - maybe still is - much faster at loading images.

Ah, something to benchmark! cool, that can be done.

@mbrubeck:

As a maintainer, I would prefer to keep this repo writeable for now so we can apply updates and fixes to benefit the few people still using this library. However, I do think that we should do what we can to encourage most people not to use this library. Perhaps that should include a RustSec advisory so tools like cargo-audit will complain. Documentation pointing to alternatives is definitely a good idea.

aha! that makes sense then.

from rust-stb-image.

workingjubilee avatar workingjubilee commented on August 23, 2024

@mbrubeck Thank you. I opened issues for the two action items that seem directly associated with this crate, to catch up with later, and obviously we can table this one for now.

from rust-stb-image.

Related Issues (17)

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.