Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions collector/compile-benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ They mostly consist of real-world crates.
- **image-0.24.1**: Basic image processing functions and methods for
converting to and from various image formats. Used often in graphics
programming.
- **image-0.25.6**: Basic image processing functions and methods for
converting to and from various image formats. Used often in graphics
programming.
- **libc-0.2.124**: An interface to `libc`. Contains many declarations of
types, constants, and functions, but relatively little normal code. Stresses
the parser. A very widely-used crate.
Expand Down
5 changes: 5 additions & 0 deletions collector/compile-benchmarks/REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ path = "image-0.24.1/**"
SPDX-FileCopyrightText = "The image-rs Developers"
SPDX-License-Identifier = "MIT"

[[annotations]]
path = "image-0.25.6/**"
SPDX-FileCopyrightText = "The image-rs Developers"
SPDX-License-Identifier = "MIT"

[[annotations]]
path = "inflate/**"
SPDX-FileCopyrightText = "inflate contributors"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"git": {
"sha1": "f337e27aadaae8b86484429bc6020fef8a019c95"
},
"path_in_vcs": ""
}
12 changes: 12 additions & 0 deletions collector/compile-benchmarks/image-0.25.6/0-println.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/src/dynimage.rs b/src/dynimage.rs
index 32da8c70..10e46ec2 100644
--- a/src/dynimage.rs
+++ b/src/dynimage.rs
@@ -1348,6 +1348,7 @@ pub fn load_from_memory(buffer: &[u8]) -> ImageResult<DynamicImage> {
/// [`load`]: fn.load.html
#[inline(always)]
pub fn load_from_memory_with_format(buf: &[u8], format: ImageFormat) -> ImageResult<DynamicImage> {
+ println!("testing");
let b = io::Cursor::new(buf);
free_functions::load(b, format)
}
Loading
Loading