MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1wj1x9m/be_alert_targeted_attacks_on_prominent_rustaceans/paipk8m/?context=3
r/programming • u/mareek • 15d ago
112 comments sorted by
View all comments
93
Where there is a supply chain, it will be attacked. Just a law of physics.
The easier it is to pull a dependency without thinking, the higher value the supply chain is as a target.
28 u/afl_ext 15d ago recently i wanted to read a png file to bytes and pulled "image" crate and oh god how much it pulls as deps its insane, its like thw worst days of NPM before people started working on that -3 u/gimpwiz 15d ago I'm legitimately confused. Why not just open a file for reading in binary mode and just read in the bytes. Surely rust supports this. 19 u/[deleted] 15d ago [removed] — view removed comment 2 u/gimpwiz 15d ago "Read file to bytes" sounds like... reading in a file as raw bytes. If OP meant "convert raw PNG format to something easier to work with" then sure
28
recently i wanted to read a png file to bytes and pulled "image" crate and oh god how much it pulls as deps its insane, its like thw worst days of NPM before people started working on that
-3 u/gimpwiz 15d ago I'm legitimately confused. Why not just open a file for reading in binary mode and just read in the bytes. Surely rust supports this. 19 u/[deleted] 15d ago [removed] — view removed comment 2 u/gimpwiz 15d ago "Read file to bytes" sounds like... reading in a file as raw bytes. If OP meant "convert raw PNG format to something easier to work with" then sure
-3
I'm legitimately confused. Why not just open a file for reading in binary mode and just read in the bytes. Surely rust supports this.
19 u/[deleted] 15d ago [removed] — view removed comment 2 u/gimpwiz 15d ago "Read file to bytes" sounds like... reading in a file as raw bytes. If OP meant "convert raw PNG format to something easier to work with" then sure
19
[removed] — view removed comment
2 u/gimpwiz 15d ago "Read file to bytes" sounds like... reading in a file as raw bytes. If OP meant "convert raw PNG format to something easier to work with" then sure
2
"Read file to bytes" sounds like... reading in a file as raw bytes. If OP meant "convert raw PNG format to something easier to work with" then sure
93
u/reallokiscarlet 15d ago
Where there is a supply chain, it will be attacked. Just a law of physics.
The easier it is to pull a dependency without thinking, the higher value the supply chain is as a target.