[INFO] fetching crate turbojpeg-sys 1.0.0... [INFO] checking turbojpeg-sys-1.0.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate turbojpeg-sys 1.0.0 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate turbojpeg-sys 1.0.0 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate turbojpeg-sys 1.0.0 [INFO] finished tweaking crates.io crate turbojpeg-sys 1.0.0 [INFO] tweaked toml for crates.io crate turbojpeg-sys 1.0.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 55 packages to latest compatible versions [INFO] [stderr] Adding bindgen v0.57.0 (available: v0.70.1) [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.6.0) [INFO] [stderr] Adding cexpr v0.4.0 (available: v0.6.0) [INFO] [stderr] Adding clap v2.34.0 (available: v4.5.18) [INFO] [stderr] Adding env_logger v0.8.4 (available: v0.11.5) [INFO] [stderr] Adding hermit-abi v0.1.19 (available: v0.4.0) [INFO] [stderr] Adding nom v5.1.3 (available: v7.1.3) [INFO] [stderr] Adding peeking_take_while v0.1.2 (available: v1.0.0) [INFO] [stderr] Adding rustc-hash v1.1.0 (available: v2.0.0) [INFO] [stderr] Adding shlex v0.1.1 (available: v1.3.0) [INFO] [stderr] Adding strsim v0.8.0 (available: v0.11.1) [INFO] [stderr] Adding textwrap v0.11.0 (available: v0.16.1) [INFO] [stderr] Adding unicode-width v0.1.14 (available: v0.2.0) [INFO] [stderr] Adding which v3.1.1 (available: v6.0.3) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 16cb25ed16f6a87b30347597fa2ef517b2778d647bb727334263ea274a96d1a3 [INFO] running `Command { std: "docker" "start" "-a" "16cb25ed16f6a87b30347597fa2ef517b2778d647bb727334263ea274a96d1a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "16cb25ed16f6a87b30347597fa2ef517b2778d647bb727334263ea274a96d1a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16cb25ed16f6a87b30347597fa2ef517b2778d647bb727334263ea274a96d1a3", kill_on_drop: false }` [INFO] [stdout] 16cb25ed16f6a87b30347597fa2ef517b2778d647bb727334263ea274a96d1a3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] be046f2befa9f6127e3da9d576c9a4c0ade95b4a2e00d73b35fcbc08d0828bd6 [INFO] running `Command { std: "docker" "start" "-a" "be046f2befa9f6127e3da9d576c9a4c0ade95b4a2e00d73b35fcbc08d0828bd6", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed Cargo.toml (3 fixes) [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling cmake v0.1.51 [INFO] [stderr] Compiling turbojpeg-sys v1.0.0 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs (86 fixes) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.85s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling turbojpeg-sys v1.0.0 (/tmp/fixit) [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | / extern "C" { [INFO] [stdout] 99 | | pub static tjMCUWidth: [libc::c_int; 7usize]; [INFO] [stdout] 100 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:101:1 [INFO] [stdout] | [INFO] [stdout] 101 | / extern "C" { [INFO] [stdout] 102 | | pub static tjMCUHeight: [libc::c_int; 7usize]; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 171 | / extern "C" { [INFO] [stdout] 172 | | pub static tjRedOffset: [libc::c_int; 12usize]; [INFO] [stdout] 173 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / extern "C" { [INFO] [stdout] 175 | | pub static tjGreenOffset: [libc::c_int; 12usize]; [INFO] [stdout] 176 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:177:1 [INFO] [stdout] | [INFO] [stdout] 177 | / extern "C" { [INFO] [stdout] 178 | | pub static tjBlueOffset: [libc::c_int; 12usize]; [INFO] [stdout] 179 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:180:1 [INFO] [stdout] | [INFO] [stdout] 180 | / extern "C" { [INFO] [stdout] 181 | | pub static tjAlphaOffset: [libc::c_int; 12usize]; [INFO] [stdout] 182 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:183:1 [INFO] [stdout] | [INFO] [stdout] 183 | / extern "C" { [INFO] [stdout] 184 | | pub static tjPixelSize: [libc::c_int; 12usize]; [INFO] [stdout] 185 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:656:1 [INFO] [stdout] | [INFO] [stdout] 656 | / extern "C" { [INFO] [stdout] 657 | | pub static TJUNCROPPED: tjregion; [INFO] [stdout] 658 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:780:1 [INFO] [stdout] | [INFO] [stdout] 780 | / extern "C" { [INFO] [stdout] 781 | | pub static TJUNSCALED: tjscalingfactor; [INFO] [stdout] 782 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:783:1 [INFO] [stdout] | [INFO] [stdout] 783 | / extern "C" { [INFO] [stdout] 784 | | #[doc = " Create a new TurboJPEG instance."] [INFO] [stdout] 785 | | #[doc = ""] [INFO] [stdout] 786 | | #[doc = " @param initType one of the @ref TJINIT \"initialization options\""] [INFO] [stdout] ... | [INFO] [stdout] 790 | | pub fn tj3Init(initType: libc::c_int) -> tjhandle; [INFO] [stdout] 791 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:792:1 [INFO] [stdout] | [INFO] [stdout] 792 | / extern "C" { [INFO] [stdout] 793 | | #[doc = " Set the value of a parameter."] [INFO] [stdout] 794 | | #[doc = ""] [INFO] [stdout] 795 | | #[doc = " @param handle handle to a TurboJPEG instance"] [INFO] [stdout] ... | [INFO] [stdout] 803 | | pub fn tj3Set(handle: tjhandle, param: libc::c_int, value: libc::c_int) -> libc::c_int; [INFO] [stdout] 804 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:805:1 [INFO] [stdout] | [INFO] [stdout] 805 | / extern "C" { [INFO] [stdout] 806 | | #[doc = " Get the value of a parameter."] [INFO] [stdout] 807 | | #[doc = ""] [INFO] [stdout] 808 | | #[doc = " @param handle handle to a TurboJPEG instance"] [INFO] [stdout] ... | [INFO] [stdout] 813 | | pub fn tj3Get(handle: tjhandle, param: libc::c_int) -> libc::c_int; [INFO] [stdout] 814 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:815:1 [INFO] [stdout] | [INFO] [stdout] 815 | / extern "C" { [INFO] [stdout] 816 | | #[doc = " Compress an 8-bit-per-sample packed-pixel RGB, grayscale, or CMYK image into"] [INFO] [stdout] 817 | | #[doc = " an 8-bit-per-sample JPEG image."] [INFO] [stdout] 818 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 875 | | ) -> libc::c_int; [INFO] [stdout] 876 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:877:1 [INFO] [stdout] | [INFO] [stdout] 877 | / extern "C" { [INFO] [stdout] 878 | | #[doc = " Compress a 12-bit-per-sample packed-pixel RGB, grayscale, or CMYK image into"] [INFO] [stdout] 879 | | #[doc = " a 12-bit-per-sample JPEG image."] [INFO] [stdout] 880 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 891 | | ) -> libc::c_int; [INFO] [stdout] 892 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:893:1 [INFO] [stdout] | [INFO] [stdout] 893 | / extern "C" { [INFO] [stdout] 894 | | #[doc = " Compress a 16-bit-per-sample packed-pixel RGB, grayscale, or CMYK image into"] [INFO] [stdout] 895 | | #[doc = " a 16-bit-per-sample lossless JPEG image."] [INFO] [stdout] 896 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 907 | | ) -> libc::c_int; [INFO] [stdout] 908 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:909:1 [INFO] [stdout] | [INFO] [stdout] 909 | / extern "C" { [INFO] [stdout] 910 | | #[doc = " Compress an 8-bit-per-sample unified planar YUV image into an"] [INFO] [stdout] 911 | | #[doc = " 8-bit-per-sample JPEG image."] [INFO] [stdout] 912 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 969 | | ) -> libc::c_int; [INFO] [stdout] 970 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:971:1 [INFO] [stdout] | [INFO] [stdout] 971 | / extern "C" { [INFO] [stdout] 972 | | #[doc = " Compress a set of 8-bit-per-sample Y, U (Cb), and V (Cr) image planes into"] [INFO] [stdout] 973 | | #[doc = " an 8-bit-per-sample JPEG image."] [INFO] [stdout] 974 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1036 | | ) -> libc::c_int; [INFO] [stdout] 1037 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1038:1 [INFO] [stdout] | [INFO] [stdout] 1038 | / extern "C" { [INFO] [stdout] 1039 | | #[doc = " The maximum size of the buffer (in bytes) required to hold a JPEG image with"] [INFO] [stdout] 1040 | | #[doc = " the given parameters. The number of bytes returned by this function is"] [INFO] [stdout] 1041 | | #[doc = " larger than the size of the uncompressed source image. The reason for this"] [INFO] [stdout] ... | [INFO] [stdout] 1067 | | ) -> size_t; [INFO] [stdout] 1068 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1069:1 [INFO] [stdout] | [INFO] [stdout] 1069 | / extern "C" { [INFO] [stdout] 1070 | | #[doc = " The size of the buffer (in bytes) required to hold a unified planar YUV"] [INFO] [stdout] 1071 | | #[doc = " image with the given parameters."] [INFO] [stdout] 1072 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1091 | | ) -> size_t; [INFO] [stdout] 1092 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1093:1 [INFO] [stdout] | [INFO] [stdout] 1093 | / extern "C" { [INFO] [stdout] 1094 | | #[doc = " The size of the buffer (in bytes) required to hold a YUV image plane with"] [INFO] [stdout] 1095 | | #[doc = " the given parameters."] [INFO] [stdout] 1096 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1119 | | ) -> size_t; [INFO] [stdout] 1120 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1121:1 [INFO] [stdout] | [INFO] [stdout] 1121 | / extern "C" { [INFO] [stdout] 1122 | | #[doc = " The plane width of a YUV image plane with the given parameters. Refer to"] [INFO] [stdout] 1123 | | #[doc = " @ref YUVnotes \"YUV Image Format Notes\" for a description of plane width."] [INFO] [stdout] 1124 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1138 | | ) -> libc::c_int; [INFO] [stdout] 1139 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1140:1 [INFO] [stdout] | [INFO] [stdout] 1140 | / extern "C" { [INFO] [stdout] 1141 | | #[doc = " The plane height of a YUV image plane with the given parameters. Refer to"] [INFO] [stdout] 1142 | | #[doc = " @ref YUVnotes \"YUV Image Format Notes\" for a description of plane height."] [INFO] [stdout] 1143 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1157 | | ) -> libc::c_int; [INFO] [stdout] 1158 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1159:1 [INFO] [stdout] | [INFO] [stdout] 1159 | / extern "C" { [INFO] [stdout] 1160 | | #[doc = " Encode an 8-bit-per-sample packed-pixel RGB or grayscale image into an"] [INFO] [stdout] 1161 | | #[doc = " 8-bit-per-sample unified planar YUV image. This function performs color"] [INFO] [stdout] 1162 | | #[doc = " conversion (which is accelerated in the libjpeg-turbo implementation) but"] [INFO] [stdout] ... | [INFO] [stdout] 1210 | | ) -> libc::c_int; [INFO] [stdout] 1211 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1212:1 [INFO] [stdout] | [INFO] [stdout] 1212 | / extern "C" { [INFO] [stdout] 1213 | | #[doc = " Encode an 8-bit-per-sample packed-pixel RGB or grayscale image into separate"] [INFO] [stdout] 1214 | | #[doc = " 8-bit-per-sample Y, U (Cb), and V (Cr) image planes. This function performs"] [INFO] [stdout] 1215 | | #[doc = " color conversion (which is accelerated in the libjpeg-turbo implementation)"] [INFO] [stdout] ... | [INFO] [stdout] 1269 | | ) -> libc::c_int; [INFO] [stdout] 1270 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1271:1 [INFO] [stdout] | [INFO] [stdout] 1271 | / extern "C" { [INFO] [stdout] 1272 | | #[doc = " Retrieve information about a JPEG image without decompressing it, or prime"] [INFO] [stdout] 1273 | | #[doc = " the decompressor with quantization and Huffman tables. If a JPEG image is"] [INFO] [stdout] 1274 | | #[doc = " passed to this function, then the @ref TJPARAM \"parameters\" that describe"] [INFO] [stdout] ... | [INFO] [stdout] 1296 | | ) -> libc::c_int; [INFO] [stdout] 1297 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1298:1 [INFO] [stdout] | [INFO] [stdout] 1298 | / extern "C" { [INFO] [stdout] 1299 | | #[doc = " Returns a list of fractional scaling factors that the JPEG decompressor"] [INFO] [stdout] 1300 | | #[doc = " supports."] [INFO] [stdout] 1301 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1307 | | pub fn tj3GetScalingFactors(numScalingFactors: *mut libc::c_int) -> *mut tjscalingfactor; [INFO] [stdout] 1308 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1309:1 [INFO] [stdout] | [INFO] [stdout] 1309 | / extern "C" { [INFO] [stdout] 1310 | | #[doc = " Set the scaling factor for subsequent lossy decompression operations."] [INFO] [stdout] 1311 | | #[doc = ""] [INFO] [stdout] 1312 | | #[doc = " @param handle handle to a TurboJPEG instance that has been initialized for"] [INFO] [stdout] ... | [INFO] [stdout] 1332 | | pub fn tj3SetScalingFactor(handle: tjhandle, scalingFactor: tjscalingfactor) -> libc::c_int; [INFO] [stdout] 1333 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1334:1 [INFO] [stdout] | [INFO] [stdout] 1334 | / extern "C" { [INFO] [stdout] 1335 | | #[doc = " Set the cropping region for partially decompressing a lossy JPEG image into"] [INFO] [stdout] 1336 | | #[doc = " a packed-pixel image"] [INFO] [stdout] 1337 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1353 | | pub fn tj3SetCroppingRegion(handle: tjhandle, croppingRegion: tjregion) -> libc::c_int; [INFO] [stdout] 1354 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1355:1 [INFO] [stdout] | [INFO] [stdout] 1355 | / extern "C" { [INFO] [stdout] 1356 | | #[doc = " Decompress an 8-bit-per-sample JPEG image into an 8-bit-per-sample"] [INFO] [stdout] 1357 | | #[doc = " packed-pixel RGB, grayscale, or CMYK image. The @ref TJPARAM \"parameters\""] [INFO] [stdout] 1358 | | #[doc = " that describe the JPEG image will be set when this function returns."] [INFO] [stdout] ... | [INFO] [stdout] 1403 | | ) -> libc::c_int; [INFO] [stdout] 1404 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1405:1 [INFO] [stdout] | [INFO] [stdout] 1405 | / extern "C" { [INFO] [stdout] 1406 | | #[doc = " Decompress a 12-bit-per-sample JPEG image into a 12-bit-per-sample"] [INFO] [stdout] 1407 | | #[doc = " packed-pixel RGB, grayscale, or CMYK image."] [INFO] [stdout] 1408 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1417 | | ) -> libc::c_int; [INFO] [stdout] 1418 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1419:1 [INFO] [stdout] | [INFO] [stdout] 1419 | / extern "C" { [INFO] [stdout] 1420 | | #[doc = " Decompress a 16-bit-per-sample lossless JPEG image into a 16-bit-per-sample"] [INFO] [stdout] 1421 | | #[doc = " packed-pixel RGB, grayscale, or CMYK image."] [INFO] [stdout] 1422 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1431 | | ) -> libc::c_int; [INFO] [stdout] 1432 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1433:1 [INFO] [stdout] | [INFO] [stdout] 1433 | / extern "C" { [INFO] [stdout] 1434 | | #[doc = " Decompress an 8-bit-per-sample JPEG image into an 8-bit-per-sample unified"] [INFO] [stdout] 1435 | | #[doc = " planar YUV image. This function performs JPEG decompression but leaves out"] [INFO] [stdout] 1436 | | #[doc = " the color conversion step, so a planar YUV image is generated instead of a"] [INFO] [stdout] ... | [INFO] [stdout] 1469 | | ) -> libc::c_int; [INFO] [stdout] 1470 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | / extern "C" { [INFO] [stdout] 99 | | pub static tjMCUWidth: [libc::c_int; 7usize]; [INFO] [stdout] 100 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1471:1 [INFO] [stdout] | [INFO] [stdout] 1471 | / extern "C" { [INFO] [stdout] 1472 | | #[doc = " Decompress an 8-bit-per-sample JPEG image into separate 8-bit-per-sample Y,"] [INFO] [stdout] 1473 | | #[doc = " U (Cb), and V (Cr) image planes. This function performs JPEG decompression"] [INFO] [stdout] 1474 | | #[doc = " but leaves out the color conversion step, so a planar YUV image is generated"] [INFO] [stdout] ... | [INFO] [stdout] 1512 | | ) -> libc::c_int; [INFO] [stdout] 1513 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:101:1 [INFO] [stdout] | [INFO] [stdout] 101 | / extern "C" { [INFO] [stdout] 102 | | pub static tjMCUHeight: [libc::c_int; 7usize]; [INFO] [stdout] 103 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1514:1 [INFO] [stdout] | [INFO] [stdout] 1514 | / extern "C" { [INFO] [stdout] 1515 | | #[doc = " Decode an 8-bit-per-sample unified planar YUV image into an 8-bit-per-sample"] [INFO] [stdout] 1516 | | #[doc = " packed-pixel RGB or grayscale image. This function performs color"] [INFO] [stdout] 1517 | | #[doc = " conversion (which is accelerated in the libjpeg-turbo implementation) but"] [INFO] [stdout] ... | [INFO] [stdout] 1566 | | ) -> libc::c_int; [INFO] [stdout] 1567 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 171 | / extern "C" { [INFO] [stdout] 172 | | pub static tjRedOffset: [libc::c_int; 12usize]; [INFO] [stdout] 173 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:174:1 [INFO] [stdout] | [INFO] [stdout] 174 | / extern "C" { [INFO] [stdout] 175 | | pub static tjGreenOffset: [libc::c_int; 12usize]; [INFO] [stdout] 176 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:177:1 [INFO] [stdout] | [INFO] [stdout] 177 | / extern "C" { [INFO] [stdout] 178 | | pub static tjBlueOffset: [libc::c_int; 12usize]; [INFO] [stdout] 179 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:180:1 [INFO] [stdout] | [INFO] [stdout] 180 | / extern "C" { [INFO] [stdout] 181 | | pub static tjAlphaOffset: [libc::c_int; 12usize]; [INFO] [stdout] 182 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:183:1 [INFO] [stdout] | [INFO] [stdout] 183 | / extern "C" { [INFO] [stdout] 184 | | pub static tjPixelSize: [libc::c_int; 12usize]; [INFO] [stdout] 185 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:656:1 [INFO] [stdout] | [INFO] [stdout] 656 | / extern "C" { [INFO] [stdout] 657 | | pub static TJUNCROPPED: tjregion; [INFO] [stdout] 658 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:780:1 [INFO] [stdout] | [INFO] [stdout] 780 | / extern "C" { [INFO] [stdout] 781 | | pub static TJUNSCALED: tjscalingfactor; [INFO] [stdout] 782 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1568:1 [INFO] [stdout] | [INFO] [stdout] 1568 | / extern "C" { [INFO] [stdout] 1569 | | #[doc = " Decode a set of 8-bit-per-sample Y, U (Cb), and V (Cr) image planes into an"] [INFO] [stdout] 1570 | | #[doc = " 8-bit-per-sample packed-pixel RGB or grayscale image. This function"] [INFO] [stdout] 1571 | | #[doc = " performs color conversion (which is accelerated in the libjpeg-turbo"] [INFO] [stdout] ... | [INFO] [stdout] 1625 | | ) -> libc::c_int; [INFO] [stdout] 1626 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:783:1 [INFO] [stdout] | [INFO] [stdout] 783 | / extern "C" { [INFO] [stdout] 784 | | #[doc = " Create a new TurboJPEG instance."] [INFO] [stdout] 785 | | #[doc = ""] [INFO] [stdout] 786 | | #[doc = " @param initType one of the @ref TJINIT \"initialization options\""] [INFO] [stdout] ... | [INFO] [stdout] 790 | | pub fn tj3Init(initType: libc::c_int) -> tjhandle; [INFO] [stdout] 791 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:792:1 [INFO] [stdout] | [INFO] [stdout] 792 | / extern "C" { [INFO] [stdout] 793 | | #[doc = " Set the value of a parameter."] [INFO] [stdout] 794 | | #[doc = ""] [INFO] [stdout] 795 | | #[doc = " @param handle handle to a TurboJPEG instance"] [INFO] [stdout] ... | [INFO] [stdout] 803 | | pub fn tj3Set(handle: tjhandle, param: libc::c_int, value: libc::c_int) -> libc::c_int; [INFO] [stdout] 804 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:805:1 [INFO] [stdout] | [INFO] [stdout] 805 | / extern "C" { [INFO] [stdout] 806 | | #[doc = " Get the value of a parameter."] [INFO] [stdout] 807 | | #[doc = ""] [INFO] [stdout] 808 | | #[doc = " @param handle handle to a TurboJPEG instance"] [INFO] [stdout] ... | [INFO] [stdout] 813 | | pub fn tj3Get(handle: tjhandle, param: libc::c_int) -> libc::c_int; [INFO] [stdout] 814 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1627:1 [INFO] [stdout] | [INFO] [stdout] 1627 | / extern "C" { [INFO] [stdout] 1628 | | #[doc = " Losslessly transform a JPEG image into another JPEG image. Lossless"] [INFO] [stdout] 1629 | | #[doc = " transforms work by moving the raw DCT coefficients from one JPEG image"] [INFO] [stdout] 1630 | | #[doc = " structure to another without altering the values of the coefficients. While"] [INFO] [stdout] ... | [INFO] [stdout] 1694 | | ) -> libc::c_int; [INFO] [stdout] 1695 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1696:1 [INFO] [stdout] | [INFO] [stdout] 1696 | / extern "C" { [INFO] [stdout] 1697 | | #[doc = " Destroy a TurboJPEG instance."] [INFO] [stdout] 1698 | | #[doc = ""] [INFO] [stdout] 1699 | | #[doc = " @param handle handle to a TurboJPEG instance. If the handle is NULL, then"] [INFO] [stdout] 1700 | | #[doc = " this function has no effect."] [INFO] [stdout] 1701 | | pub fn tj3Destroy(handle: tjhandle); [INFO] [stdout] 1702 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1703:1 [INFO] [stdout] | [INFO] [stdout] 1703 | / extern "C" { [INFO] [stdout] 1704 | | #[doc = " Allocate a byte buffer for use with TurboJPEG. You should always use this"] [INFO] [stdout] 1705 | | #[doc = " function to allocate the JPEG destination buffer(s) for the compression and"] [INFO] [stdout] 1706 | | #[doc = " transform functions unless you are disabling automatic buffer (re)allocation"] [INFO] [stdout] ... | [INFO] [stdout] 1715 | | pub fn tj3Alloc(bytes: size_t) -> *mut libc::c_void; [INFO] [stdout] 1716 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1717:1 [INFO] [stdout] | [INFO] [stdout] 1717 | / extern "C" { [INFO] [stdout] 1718 | | #[doc = " Load an 8-bit-per-sample packed-pixel image from disk into memory."] [INFO] [stdout] 1719 | | #[doc = ""] [INFO] [stdout] 1720 | | #[doc = " @param handle handle to a TurboJPEG instance"] [INFO] [stdout] ... | [INFO] [stdout] 1768 | | ) -> *mut libc::c_uchar; [INFO] [stdout] 1769 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:815:1 [INFO] [stdout] | [INFO] [stdout] 815 | / extern "C" { [INFO] [stdout] 816 | | #[doc = " Compress an 8-bit-per-sample packed-pixel RGB, grayscale, or CMYK image into"] [INFO] [stdout] 817 | | #[doc = " an 8-bit-per-sample JPEG image."] [INFO] [stdout] 818 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 875 | | ) -> libc::c_int; [INFO] [stdout] 876 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1770:1 [INFO] [stdout] | [INFO] [stdout] 1770 | / extern "C" { [INFO] [stdout] 1771 | | #[doc = " Load a 12-bit-per-sample packed-pixel image from disk into memory."] [INFO] [stdout] 1772 | | #[doc = ""] [INFO] [stdout] 1773 | | #[doc = " \\details \\copydetails tj3LoadImage8()"] [INFO] [stdout] ... | [INFO] [stdout] 1781 | | ) -> *mut libc::c_short; [INFO] [stdout] 1782 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1783:1 [INFO] [stdout] | [INFO] [stdout] 1783 | / extern "C" { [INFO] [stdout] 1784 | | #[doc = " Load a 16-bit-per-sample packed-pixel image from disk into memory."] [INFO] [stdout] 1785 | | #[doc = ""] [INFO] [stdout] 1786 | | #[doc = " \\details \\copydetails tj3LoadImage8()"] [INFO] [stdout] ... | [INFO] [stdout] 1794 | | ) -> *mut libc::c_ushort; [INFO] [stdout] 1795 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:877:1 [INFO] [stdout] | [INFO] [stdout] 877 | / extern "C" { [INFO] [stdout] 878 | | #[doc = " Compress a 12-bit-per-sample packed-pixel RGB, grayscale, or CMYK image into"] [INFO] [stdout] 879 | | #[doc = " a 12-bit-per-sample JPEG image."] [INFO] [stdout] 880 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 891 | | ) -> libc::c_int; [INFO] [stdout] 892 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:893:1 [INFO] [stdout] | [INFO] [stdout] 893 | / extern "C" { [INFO] [stdout] 894 | | #[doc = " Compress a 16-bit-per-sample packed-pixel RGB, grayscale, or CMYK image into"] [INFO] [stdout] 895 | | #[doc = " a 16-bit-per-sample lossless JPEG image."] [INFO] [stdout] 896 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 907 | | ) -> libc::c_int; [INFO] [stdout] 908 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1796:1 [INFO] [stdout] | [INFO] [stdout] 1796 | / extern "C" { [INFO] [stdout] 1797 | | #[doc = " Save an 8-bit-per-sample packed-pixel image from memory to disk."] [INFO] [stdout] 1798 | | #[doc = ""] [INFO] [stdout] 1799 | | #[doc = " @param handle handle to a TurboJPEG instance"] [INFO] [stdout] ... | [INFO] [stdout] 1835 | | ) -> libc::c_int; [INFO] [stdout] 1836 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1837:1 [INFO] [stdout] | [INFO] [stdout] 1837 | / extern "C" { [INFO] [stdout] 1838 | | #[doc = " Save a 12-bit-per-sample packed-pixel image from memory to disk."] [INFO] [stdout] 1839 | | #[doc = ""] [INFO] [stdout] 1840 | | #[doc = " \\details \\copydetails tj3SaveImage8()"] [INFO] [stdout] ... | [INFO] [stdout] 1849 | | ) -> libc::c_int; [INFO] [stdout] 1850 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1851:1 [INFO] [stdout] | [INFO] [stdout] 1851 | / extern "C" { [INFO] [stdout] 1852 | | #[doc = " Save a 16-bit-per-sample packed-pixel image from memory to disk."] [INFO] [stdout] 1853 | | #[doc = ""] [INFO] [stdout] 1854 | | #[doc = " \\details \\copydetails tj3SaveImage8()"] [INFO] [stdout] ... | [INFO] [stdout] 1863 | | ) -> libc::c_int; [INFO] [stdout] 1864 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:909:1 [INFO] [stdout] | [INFO] [stdout] 909 | / extern "C" { [INFO] [stdout] 910 | | #[doc = " Compress an 8-bit-per-sample unified planar YUV image into an"] [INFO] [stdout] 911 | | #[doc = " 8-bit-per-sample JPEG image."] [INFO] [stdout] 912 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 969 | | ) -> libc::c_int; [INFO] [stdout] 970 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1865:1 [INFO] [stdout] | [INFO] [stdout] 1865 | / extern "C" { [INFO] [stdout] 1866 | | #[doc = " Free a byte buffer previously allocated by TurboJPEG. You should always use"] [INFO] [stdout] 1867 | | #[doc = " this function to free JPEG destination buffer(s) that were automatically"] [INFO] [stdout] 1868 | | #[doc = " (re)allocated by the compression and transform functions or that were"] [INFO] [stdout] ... | [INFO] [stdout] 1875 | | pub fn tj3Free(buffer: *mut libc::c_void); [INFO] [stdout] 1876 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1877:1 [INFO] [stdout] | [INFO] [stdout] 1877 | / extern "C" { [INFO] [stdout] 1878 | | #[doc = " Returns a descriptive error message explaining why the last command failed."] [INFO] [stdout] 1879 | | #[doc = ""] [INFO] [stdout] 1880 | | #[doc = " @param handle handle to a TurboJPEG instance, or NULL if the error was"] [INFO] [stdout] ... | [INFO] [stdout] 1886 | | pub fn tj3GetErrorStr(handle: tjhandle) -> *mut libc::c_char; [INFO] [stdout] 1887 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1888:1 [INFO] [stdout] | [INFO] [stdout] 1888 | / extern "C" { [INFO] [stdout] 1889 | | #[doc = " Returns a code indicating the severity of the last error. See"] [INFO] [stdout] 1890 | | #[doc = " @ref TJERR \"Error codes\"."] [INFO] [stdout] 1891 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1896 | | pub fn tj3GetErrorCode(handle: tjhandle) -> libc::c_int; [INFO] [stdout] 1897 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:971:1 [INFO] [stdout] | [INFO] [stdout] 971 | / extern "C" { [INFO] [stdout] 972 | | #[doc = " Compress a set of 8-bit-per-sample Y, U (Cb), and V (Cr) image planes into"] [INFO] [stdout] 973 | | #[doc = " an 8-bit-per-sample JPEG image."] [INFO] [stdout] 974 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1036 | | ) -> libc::c_int; [INFO] [stdout] 1037 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1898:1 [INFO] [stdout] | [INFO] [stdout] 1898 | / extern "C" { [INFO] [stdout] 1899 | | pub fn TJBUFSIZE(width: libc::c_int, height: libc::c_int) -> libc::c_ulong; [INFO] [stdout] 1900 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1901:1 [INFO] [stdout] | [INFO] [stdout] 1901 | / extern "C" { [INFO] [stdout] 1902 | | pub fn tjCompress( [INFO] [stdout] 1903 | | handle: tjhandle, [INFO] [stdout] 1904 | | srcBuf: *mut libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 1914 | | ) -> libc::c_int; [INFO] [stdout] 1915 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1038:1 [INFO] [stdout] | [INFO] [stdout] 1038 | / extern "C" { [INFO] [stdout] 1039 | | #[doc = " The maximum size of the buffer (in bytes) required to hold a JPEG image with"] [INFO] [stdout] 1040 | | #[doc = " the given parameters. The number of bytes returned by this function is"] [INFO] [stdout] 1041 | | #[doc = " larger than the size of the uncompressed source image. The reason for this"] [INFO] [stdout] ... | [INFO] [stdout] 1067 | | ) -> size_t; [INFO] [stdout] 1068 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1916:1 [INFO] [stdout] | [INFO] [stdout] 1916 | / extern "C" { [INFO] [stdout] 1917 | | pub fn tjDecompress( [INFO] [stdout] 1918 | | handle: tjhandle, [INFO] [stdout] 1919 | | jpegBuf: *mut libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 1927 | | ) -> libc::c_int; [INFO] [stdout] 1928 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1929:1 [INFO] [stdout] | [INFO] [stdout] 1929 | / extern "C" { [INFO] [stdout] 1930 | | pub fn tjDecompressHeader( [INFO] [stdout] 1931 | | handle: tjhandle, [INFO] [stdout] 1932 | | jpegBuf: *mut libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 1936 | | ) -> libc::c_int; [INFO] [stdout] 1937 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1069:1 [INFO] [stdout] | [INFO] [stdout] 1069 | / extern "C" { [INFO] [stdout] 1070 | | #[doc = " The size of the buffer (in bytes) required to hold a unified planar YUV"] [INFO] [stdout] 1071 | | #[doc = " image with the given parameters."] [INFO] [stdout] 1072 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1091 | | ) -> size_t; [INFO] [stdout] 1092 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1938:1 [INFO] [stdout] | [INFO] [stdout] 1938 | / extern "C" { [INFO] [stdout] 1939 | | pub fn tjDestroy(handle: tjhandle) -> libc::c_int; [INFO] [stdout] 1940 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1941:1 [INFO] [stdout] | [INFO] [stdout] 1941 | / extern "C" { [INFO] [stdout] 1942 | | pub fn tjGetErrorStr() -> *mut libc::c_char; [INFO] [stdout] 1943 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1944:1 [INFO] [stdout] | [INFO] [stdout] 1944 | / extern "C" { [INFO] [stdout] 1945 | | pub fn tjInitCompress() -> tjhandle; [INFO] [stdout] 1946 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1947:1 [INFO] [stdout] | [INFO] [stdout] 1947 | / extern "C" { [INFO] [stdout] 1948 | | pub fn tjInitDecompress() -> tjhandle; [INFO] [stdout] 1949 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1093:1 [INFO] [stdout] | [INFO] [stdout] 1093 | / extern "C" { [INFO] [stdout] 1094 | | #[doc = " The size of the buffer (in bytes) required to hold a YUV image plane with"] [INFO] [stdout] 1095 | | #[doc = " the given parameters."] [INFO] [stdout] 1096 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1119 | | ) -> size_t; [INFO] [stdout] 1120 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1950:1 [INFO] [stdout] | [INFO] [stdout] 1950 | / extern "C" { [INFO] [stdout] 1951 | | pub fn TJBUFSIZEYUV( [INFO] [stdout] 1952 | | width: libc::c_int, [INFO] [stdout] 1953 | | height: libc::c_int, [INFO] [stdout] 1954 | | jpegSubsamp: libc::c_int, [INFO] [stdout] 1955 | | ) -> libc::c_ulong; [INFO] [stdout] 1956 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1957:1 [INFO] [stdout] | [INFO] [stdout] 1957 | / extern "C" { [INFO] [stdout] 1958 | | pub fn tjDecompressHeader2( [INFO] [stdout] 1959 | | handle: tjhandle, [INFO] [stdout] 1960 | | jpegBuf: *mut libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 1965 | | ) -> libc::c_int; [INFO] [stdout] 1966 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1121:1 [INFO] [stdout] | [INFO] [stdout] 1121 | / extern "C" { [INFO] [stdout] 1122 | | #[doc = " The plane width of a YUV image plane with the given parameters. Refer to"] [INFO] [stdout] 1123 | | #[doc = " @ref YUVnotes \"YUV Image Format Notes\" for a description of plane width."] [INFO] [stdout] 1124 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1138 | | ) -> libc::c_int; [INFO] [stdout] 1139 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1967:1 [INFO] [stdout] | [INFO] [stdout] 1967 | / extern "C" { [INFO] [stdout] 1968 | | pub fn tjDecompressToYUV( [INFO] [stdout] 1969 | | handle: tjhandle, [INFO] [stdout] 1970 | | jpegBuf: *mut libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 1974 | | ) -> libc::c_int; [INFO] [stdout] 1975 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1140:1 [INFO] [stdout] | [INFO] [stdout] 1140 | / extern "C" { [INFO] [stdout] 1141 | | #[doc = " The plane height of a YUV image plane with the given parameters. Refer to"] [INFO] [stdout] 1142 | | #[doc = " @ref YUVnotes \"YUV Image Format Notes\" for a description of plane height."] [INFO] [stdout] 1143 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1157 | | ) -> libc::c_int; [INFO] [stdout] 1158 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1976:1 [INFO] [stdout] | [INFO] [stdout] 1976 | / extern "C" { [INFO] [stdout] 1977 | | pub fn tjEncodeYUV( [INFO] [stdout] 1978 | | handle: tjhandle, [INFO] [stdout] 1979 | | srcBuf: *mut libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 1987 | | ) -> libc::c_int; [INFO] [stdout] 1988 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1989:1 [INFO] [stdout] | [INFO] [stdout] 1989 | / extern "C" { [INFO] [stdout] 1990 | | pub fn tjAlloc(bytes: libc::c_int) -> *mut libc::c_uchar; [INFO] [stdout] 1991 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1992:1 [INFO] [stdout] | [INFO] [stdout] 1992 | / extern "C" { [INFO] [stdout] 1993 | | pub fn tjBufSize( [INFO] [stdout] 1994 | | width: libc::c_int, [INFO] [stdout] 1995 | | height: libc::c_int, [INFO] [stdout] 1996 | | jpegSubsamp: libc::c_int, [INFO] [stdout] 1997 | | ) -> libc::c_ulong; [INFO] [stdout] 1998 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1999:1 [INFO] [stdout] | [INFO] [stdout] 1999 | / extern "C" { [INFO] [stdout] 2000 | | pub fn tjBufSizeYUV( [INFO] [stdout] 2001 | | width: libc::c_int, [INFO] [stdout] 2002 | | height: libc::c_int, [INFO] [stdout] 2003 | | subsamp: libc::c_int, [INFO] [stdout] 2004 | | ) -> libc::c_ulong; [INFO] [stdout] 2005 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2006:1 [INFO] [stdout] | [INFO] [stdout] 2006 | / extern "C" { [INFO] [stdout] 2007 | | pub fn tjCompress2( [INFO] [stdout] 2008 | | handle: tjhandle, [INFO] [stdout] 2009 | | srcBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2019 | | ) -> libc::c_int; [INFO] [stdout] 2020 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2021:1 [INFO] [stdout] | [INFO] [stdout] 2021 | / extern "C" { [INFO] [stdout] 2022 | | pub fn tjDecompress2( [INFO] [stdout] 2023 | | handle: tjhandle, [INFO] [stdout] 2024 | | jpegBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2032 | | ) -> libc::c_int; [INFO] [stdout] 2033 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2034:1 [INFO] [stdout] | [INFO] [stdout] 2034 | / extern "C" { [INFO] [stdout] 2035 | | pub fn tjEncodeYUV2( [INFO] [stdout] 2036 | | handle: tjhandle, [INFO] [stdout] 2037 | | srcBuf: *mut libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2045 | | ) -> libc::c_int; [INFO] [stdout] 2046 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2047:1 [INFO] [stdout] | [INFO] [stdout] 2047 | / extern "C" { [INFO] [stdout] 2048 | | pub fn tjFree(buffer: *mut libc::c_uchar); [INFO] [stdout] 2049 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2050:1 [INFO] [stdout] | [INFO] [stdout] 2050 | / extern "C" { [INFO] [stdout] 2051 | | pub fn tjGetScalingFactors(numscalingfactors: *mut libc::c_int) -> *mut tjscalingfactor; [INFO] [stdout] 2052 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2053:1 [INFO] [stdout] | [INFO] [stdout] 2053 | / extern "C" { [INFO] [stdout] 2054 | | pub fn tjInitTransform() -> tjhandle; [INFO] [stdout] 2055 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2056:1 [INFO] [stdout] | [INFO] [stdout] 2056 | / extern "C" { [INFO] [stdout] 2057 | | pub fn tjTransform( [INFO] [stdout] 2058 | | handle: tjhandle, [INFO] [stdout] 2059 | | jpegBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2066 | | ) -> libc::c_int; [INFO] [stdout] 2067 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2068:1 [INFO] [stdout] | [INFO] [stdout] 2068 | / extern "C" { [INFO] [stdout] 2069 | | pub fn tjBufSizeYUV2( [INFO] [stdout] 2070 | | width: libc::c_int, [INFO] [stdout] 2071 | | align: libc::c_int, [INFO] [stdout] ... | [INFO] [stdout] 2074 | | ) -> libc::c_ulong; [INFO] [stdout] 2075 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2076:1 [INFO] [stdout] | [INFO] [stdout] 2076 | / extern "C" { [INFO] [stdout] 2077 | | pub fn tjCompressFromYUV( [INFO] [stdout] 2078 | | handle: tjhandle, [INFO] [stdout] 2079 | | srcBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2088 | | ) -> libc::c_int; [INFO] [stdout] 2089 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2090:1 [INFO] [stdout] | [INFO] [stdout] 2090 | / extern "C" { [INFO] [stdout] 2091 | | pub fn tjCompressFromYUVPlanes( [INFO] [stdout] 2092 | | handle: tjhandle, [INFO] [stdout] 2093 | | srcPlanes: *mut *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2102 | | ) -> libc::c_int; [INFO] [stdout] 2103 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2104:1 [INFO] [stdout] | [INFO] [stdout] 2104 | / extern "C" { [INFO] [stdout] 2105 | | pub fn tjDecodeYUV( [INFO] [stdout] 2106 | | handle: tjhandle, [INFO] [stdout] 2107 | | srcBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2116 | | ) -> libc::c_int; [INFO] [stdout] 2117 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2118:1 [INFO] [stdout] | [INFO] [stdout] 2118 | / extern "C" { [INFO] [stdout] 2119 | | pub fn tjDecodeYUVPlanes( [INFO] [stdout] 2120 | | handle: tjhandle, [INFO] [stdout] 2121 | | srcPlanes: *mut *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2130 | | ) -> libc::c_int; [INFO] [stdout] 2131 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2132:1 [INFO] [stdout] | [INFO] [stdout] 2132 | / extern "C" { [INFO] [stdout] 2133 | | pub fn tjDecompressHeader3( [INFO] [stdout] 2134 | | handle: tjhandle, [INFO] [stdout] 2135 | | jpegBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2141 | | ) -> libc::c_int; [INFO] [stdout] 2142 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2143:1 [INFO] [stdout] | [INFO] [stdout] 2143 | / extern "C" { [INFO] [stdout] 2144 | | pub fn tjDecompressToYUV2( [INFO] [stdout] 2145 | | handle: tjhandle, [INFO] [stdout] 2146 | | jpegBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2153 | | ) -> libc::c_int; [INFO] [stdout] 2154 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2155:1 [INFO] [stdout] | [INFO] [stdout] 2155 | / extern "C" { [INFO] [stdout] 2156 | | pub fn tjDecompressToYUVPlanes( [INFO] [stdout] 2157 | | handle: tjhandle, [INFO] [stdout] 2158 | | jpegBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2165 | | ) -> libc::c_int; [INFO] [stdout] 2166 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2167:1 [INFO] [stdout] | [INFO] [stdout] 2167 | / extern "C" { [INFO] [stdout] 2168 | | pub fn tjEncodeYUV3( [INFO] [stdout] 2169 | | handle: tjhandle, [INFO] [stdout] 2170 | | srcBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2179 | | ) -> libc::c_int; [INFO] [stdout] 2180 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2181:1 [INFO] [stdout] | [INFO] [stdout] 2181 | / extern "C" { [INFO] [stdout] 2182 | | pub fn tjEncodeYUVPlanes( [INFO] [stdout] 2183 | | handle: tjhandle, [INFO] [stdout] 2184 | | srcBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2193 | | ) -> libc::c_int; [INFO] [stdout] 2194 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2195:1 [INFO] [stdout] | [INFO] [stdout] 2195 | / extern "C" { [INFO] [stdout] 2196 | | pub fn tjPlaneHeight( [INFO] [stdout] 2197 | | componentID: libc::c_int, [INFO] [stdout] 2198 | | height: libc::c_int, [INFO] [stdout] 2199 | | subsamp: libc::c_int, [INFO] [stdout] 2200 | | ) -> libc::c_int; [INFO] [stdout] 2201 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1159:1 [INFO] [stdout] | [INFO] [stdout] 1159 | / extern "C" { [INFO] [stdout] 1160 | | #[doc = " Encode an 8-bit-per-sample packed-pixel RGB or grayscale image into an"] [INFO] [stdout] 1161 | | #[doc = " 8-bit-per-sample unified planar YUV image. This function performs color"] [INFO] [stdout] 1162 | | #[doc = " conversion (which is accelerated in the libjpeg-turbo implementation) but"] [INFO] [stdout] ... | [INFO] [stdout] 1210 | | ) -> libc::c_int; [INFO] [stdout] 1211 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2202:1 [INFO] [stdout] | [INFO] [stdout] 2202 | / extern "C" { [INFO] [stdout] 2203 | | pub fn tjPlaneSizeYUV( [INFO] [stdout] 2204 | | componentID: libc::c_int, [INFO] [stdout] 2205 | | width: libc::c_int, [INFO] [stdout] ... | [INFO] [stdout] 2209 | | ) -> libc::c_ulong; [INFO] [stdout] 2210 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2211:1 [INFO] [stdout] | [INFO] [stdout] 2211 | / extern "C" { [INFO] [stdout] 2212 | | pub fn tjPlaneWidth( [INFO] [stdout] 2213 | | componentID: libc::c_int, [INFO] [stdout] 2214 | | width: libc::c_int, [INFO] [stdout] 2215 | | subsamp: libc::c_int, [INFO] [stdout] 2216 | | ) -> libc::c_int; [INFO] [stdout] 2217 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2218:1 [INFO] [stdout] | [INFO] [stdout] 2218 | / extern "C" { [INFO] [stdout] 2219 | | pub fn tjGetErrorCode(handle: tjhandle) -> libc::c_int; [INFO] [stdout] 2220 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2221:1 [INFO] [stdout] | [INFO] [stdout] 2221 | / extern "C" { [INFO] [stdout] 2222 | | pub fn tjGetErrorStr2(handle: tjhandle) -> *mut libc::c_char; [INFO] [stdout] 2223 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1212:1 [INFO] [stdout] | [INFO] [stdout] 1212 | / extern "C" { [INFO] [stdout] 1213 | | #[doc = " Encode an 8-bit-per-sample packed-pixel RGB or grayscale image into separate"] [INFO] [stdout] 1214 | | #[doc = " 8-bit-per-sample Y, U (Cb), and V (Cr) image planes. This function performs"] [INFO] [stdout] 1215 | | #[doc = " color conversion (which is accelerated in the libjpeg-turbo implementation)"] [INFO] [stdout] ... | [INFO] [stdout] 1269 | | ) -> libc::c_int; [INFO] [stdout] 1270 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2224:1 [INFO] [stdout] | [INFO] [stdout] 2224 | / extern "C" { [INFO] [stdout] 2225 | | pub fn tjLoadImage( [INFO] [stdout] 2226 | | filename: *const libc::c_char, [INFO] [stdout] 2227 | | width: *mut libc::c_int, [INFO] [stdout] ... | [INFO] [stdout] 2232 | | ) -> *mut libc::c_uchar; [INFO] [stdout] 2233 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2234:1 [INFO] [stdout] | [INFO] [stdout] 2234 | / extern "C" { [INFO] [stdout] 2235 | | pub fn tjSaveImage( [INFO] [stdout] 2236 | | filename: *const libc::c_char, [INFO] [stdout] 2237 | | buffer: *mut libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2243 | | ) -> libc::c_int; [INFO] [stdout] 2244 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1271:1 [INFO] [stdout] | [INFO] [stdout] 1271 | / extern "C" { [INFO] [stdout] 1272 | | #[doc = " Retrieve information about a JPEG image without decompressing it, or prime"] [INFO] [stdout] 1273 | | #[doc = " the decompressor with quantization and Huffman tables. If a JPEG image is"] [INFO] [stdout] 1274 | | #[doc = " passed to this function, then the @ref TJPARAM \"parameters\" that describe"] [INFO] [stdout] ... | [INFO] [stdout] 1296 | | ) -> libc::c_int; [INFO] [stdout] 1297 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1298:1 [INFO] [stdout] | [INFO] [stdout] 1298 | / extern "C" { [INFO] [stdout] 1299 | | #[doc = " Returns a list of fractional scaling factors that the JPEG decompressor"] [INFO] [stdout] 1300 | | #[doc = " supports."] [INFO] [stdout] 1301 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1307 | | pub fn tj3GetScalingFactors(numScalingFactors: *mut libc::c_int) -> *mut tjscalingfactor; [INFO] [stdout] 1308 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1309:1 [INFO] [stdout] | [INFO] [stdout] 1309 | / extern "C" { [INFO] [stdout] 1310 | | #[doc = " Set the scaling factor for subsequent lossy decompression operations."] [INFO] [stdout] 1311 | | #[doc = ""] [INFO] [stdout] 1312 | | #[doc = " @param handle handle to a TurboJPEG instance that has been initialized for"] [INFO] [stdout] ... | [INFO] [stdout] 1332 | | pub fn tj3SetScalingFactor(handle: tjhandle, scalingFactor: tjscalingfactor) -> libc::c_int; [INFO] [stdout] 1333 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1334:1 [INFO] [stdout] | [INFO] [stdout] 1334 | / extern "C" { [INFO] [stdout] 1335 | | #[doc = " Set the cropping region for partially decompressing a lossy JPEG image into"] [INFO] [stdout] 1336 | | #[doc = " a packed-pixel image"] [INFO] [stdout] 1337 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1353 | | pub fn tj3SetCroppingRegion(handle: tjhandle, croppingRegion: tjregion) -> libc::c_int; [INFO] [stdout] 1354 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1355:1 [INFO] [stdout] | [INFO] [stdout] 1355 | / extern "C" { [INFO] [stdout] 1356 | | #[doc = " Decompress an 8-bit-per-sample JPEG image into an 8-bit-per-sample"] [INFO] [stdout] 1357 | | #[doc = " packed-pixel RGB, grayscale, or CMYK image. The @ref TJPARAM \"parameters\""] [INFO] [stdout] 1358 | | #[doc = " that describe the JPEG image will be set when this function returns."] [INFO] [stdout] ... | [INFO] [stdout] 1403 | | ) -> libc::c_int; [INFO] [stdout] 1404 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1405:1 [INFO] [stdout] | [INFO] [stdout] 1405 | / extern "C" { [INFO] [stdout] 1406 | | #[doc = " Decompress a 12-bit-per-sample JPEG image into a 12-bit-per-sample"] [INFO] [stdout] 1407 | | #[doc = " packed-pixel RGB, grayscale, or CMYK image."] [INFO] [stdout] 1408 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1417 | | ) -> libc::c_int; [INFO] [stdout] 1418 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1419:1 [INFO] [stdout] | [INFO] [stdout] 1419 | / extern "C" { [INFO] [stdout] 1420 | | #[doc = " Decompress a 16-bit-per-sample lossless JPEG image into a 16-bit-per-sample"] [INFO] [stdout] 1421 | | #[doc = " packed-pixel RGB, grayscale, or CMYK image."] [INFO] [stdout] 1422 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1431 | | ) -> libc::c_int; [INFO] [stdout] 1432 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1433:1 [INFO] [stdout] | [INFO] [stdout] 1433 | / extern "C" { [INFO] [stdout] 1434 | | #[doc = " Decompress an 8-bit-per-sample JPEG image into an 8-bit-per-sample unified"] [INFO] [stdout] 1435 | | #[doc = " planar YUV image. This function performs JPEG decompression but leaves out"] [INFO] [stdout] 1436 | | #[doc = " the color conversion step, so a planar YUV image is generated instead of a"] [INFO] [stdout] ... | [INFO] [stdout] 1469 | | ) -> libc::c_int; [INFO] [stdout] 1470 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1471:1 [INFO] [stdout] | [INFO] [stdout] 1471 | / extern "C" { [INFO] [stdout] 1472 | | #[doc = " Decompress an 8-bit-per-sample JPEG image into separate 8-bit-per-sample Y,"] [INFO] [stdout] 1473 | | #[doc = " U (Cb), and V (Cr) image planes. This function performs JPEG decompression"] [INFO] [stdout] 1474 | | #[doc = " but leaves out the color conversion step, so a planar YUV image is generated"] [INFO] [stdout] ... | [INFO] [stdout] 1512 | | ) -> libc::c_int; [INFO] [stdout] 1513 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1514:1 [INFO] [stdout] | [INFO] [stdout] 1514 | / extern "C" { [INFO] [stdout] 1515 | | #[doc = " Decode an 8-bit-per-sample unified planar YUV image into an 8-bit-per-sample"] [INFO] [stdout] 1516 | | #[doc = " packed-pixel RGB or grayscale image. This function performs color"] [INFO] [stdout] 1517 | | #[doc = " conversion (which is accelerated in the libjpeg-turbo implementation) but"] [INFO] [stdout] ... | [INFO] [stdout] 1566 | | ) -> libc::c_int; [INFO] [stdout] 1567 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1568:1 [INFO] [stdout] | [INFO] [stdout] 1568 | / extern "C" { [INFO] [stdout] 1569 | | #[doc = " Decode a set of 8-bit-per-sample Y, U (Cb), and V (Cr) image planes into an"] [INFO] [stdout] 1570 | | #[doc = " 8-bit-per-sample packed-pixel RGB or grayscale image. This function"] [INFO] [stdout] 1571 | | #[doc = " performs color conversion (which is accelerated in the libjpeg-turbo"] [INFO] [stdout] ... | [INFO] [stdout] 1625 | | ) -> libc::c_int; [INFO] [stdout] 1626 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1627:1 [INFO] [stdout] | [INFO] [stdout] 1627 | / extern "C" { [INFO] [stdout] 1628 | | #[doc = " Losslessly transform a JPEG image into another JPEG image. Lossless"] [INFO] [stdout] 1629 | | #[doc = " transforms work by moving the raw DCT coefficients from one JPEG image"] [INFO] [stdout] 1630 | | #[doc = " structure to another without altering the values of the coefficients. While"] [INFO] [stdout] ... | [INFO] [stdout] 1694 | | ) -> libc::c_int; [INFO] [stdout] 1695 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1696:1 [INFO] [stdout] | [INFO] [stdout] 1696 | / extern "C" { [INFO] [stdout] 1697 | | #[doc = " Destroy a TurboJPEG instance."] [INFO] [stdout] 1698 | | #[doc = ""] [INFO] [stdout] 1699 | | #[doc = " @param handle handle to a TurboJPEG instance. If the handle is NULL, then"] [INFO] [stdout] 1700 | | #[doc = " this function has no effect."] [INFO] [stdout] 1701 | | pub fn tj3Destroy(handle: tjhandle); [INFO] [stdout] 1702 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1703:1 [INFO] [stdout] | [INFO] [stdout] 1703 | / extern "C" { [INFO] [stdout] 1704 | | #[doc = " Allocate a byte buffer for use with TurboJPEG. You should always use this"] [INFO] [stdout] 1705 | | #[doc = " function to allocate the JPEG destination buffer(s) for the compression and"] [INFO] [stdout] 1706 | | #[doc = " transform functions unless you are disabling automatic buffer (re)allocation"] [INFO] [stdout] ... | [INFO] [stdout] 1715 | | pub fn tj3Alloc(bytes: size_t) -> *mut libc::c_void; [INFO] [stdout] 1716 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1717:1 [INFO] [stdout] | [INFO] [stdout] 1717 | / extern "C" { [INFO] [stdout] 1718 | | #[doc = " Load an 8-bit-per-sample packed-pixel image from disk into memory."] [INFO] [stdout] 1719 | | #[doc = ""] [INFO] [stdout] 1720 | | #[doc = " @param handle handle to a TurboJPEG instance"] [INFO] [stdout] ... | [INFO] [stdout] 1768 | | ) -> *mut libc::c_uchar; [INFO] [stdout] 1769 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1770:1 [INFO] [stdout] | [INFO] [stdout] 1770 | / extern "C" { [INFO] [stdout] 1771 | | #[doc = " Load a 12-bit-per-sample packed-pixel image from disk into memory."] [INFO] [stdout] 1772 | | #[doc = ""] [INFO] [stdout] 1773 | | #[doc = " \\details \\copydetails tj3LoadImage8()"] [INFO] [stdout] ... | [INFO] [stdout] 1781 | | ) -> *mut libc::c_short; [INFO] [stdout] 1782 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1783:1 [INFO] [stdout] | [INFO] [stdout] 1783 | / extern "C" { [INFO] [stdout] 1784 | | #[doc = " Load a 16-bit-per-sample packed-pixel image from disk into memory."] [INFO] [stdout] 1785 | | #[doc = ""] [INFO] [stdout] 1786 | | #[doc = " \\details \\copydetails tj3LoadImage8()"] [INFO] [stdout] ... | [INFO] [stdout] 1794 | | ) -> *mut libc::c_ushort; [INFO] [stdout] 1795 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1796:1 [INFO] [stdout] | [INFO] [stdout] 1796 | / extern "C" { [INFO] [stdout] 1797 | | #[doc = " Save an 8-bit-per-sample packed-pixel image from memory to disk."] [INFO] [stdout] 1798 | | #[doc = ""] [INFO] [stdout] 1799 | | #[doc = " @param handle handle to a TurboJPEG instance"] [INFO] [stdout] ... | [INFO] [stdout] 1835 | | ) -> libc::c_int; [INFO] [stdout] 1836 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1837:1 [INFO] [stdout] | [INFO] [stdout] 1837 | / extern "C" { [INFO] [stdout] 1838 | | #[doc = " Save a 12-bit-per-sample packed-pixel image from memory to disk."] [INFO] [stdout] 1839 | | #[doc = ""] [INFO] [stdout] 1840 | | #[doc = " \\details \\copydetails tj3SaveImage8()"] [INFO] [stdout] ... | [INFO] [stdout] 1849 | | ) -> libc::c_int; [INFO] [stdout] 1850 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1851:1 [INFO] [stdout] | [INFO] [stdout] 1851 | / extern "C" { [INFO] [stdout] 1852 | | #[doc = " Save a 16-bit-per-sample packed-pixel image from memory to disk."] [INFO] [stdout] 1853 | | #[doc = ""] [INFO] [stdout] 1854 | | #[doc = " \\details \\copydetails tj3SaveImage8()"] [INFO] [stdout] ... | [INFO] [stdout] 1863 | | ) -> libc::c_int; [INFO] [stdout] 1864 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1865:1 [INFO] [stdout] | [INFO] [stdout] 1865 | / extern "C" { [INFO] [stdout] 1866 | | #[doc = " Free a byte buffer previously allocated by TurboJPEG. You should always use"] [INFO] [stdout] 1867 | | #[doc = " this function to free JPEG destination buffer(s) that were automatically"] [INFO] [stdout] 1868 | | #[doc = " (re)allocated by the compression and transform functions or that were"] [INFO] [stdout] ... | [INFO] [stdout] 1875 | | pub fn tj3Free(buffer: *mut libc::c_void); [INFO] [stdout] 1876 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1877:1 [INFO] [stdout] | [INFO] [stdout] 1877 | / extern "C" { [INFO] [stdout] 1878 | | #[doc = " Returns a descriptive error message explaining why the last command failed."] [INFO] [stdout] 1879 | | #[doc = ""] [INFO] [stdout] 1880 | | #[doc = " @param handle handle to a TurboJPEG instance, or NULL if the error was"] [INFO] [stdout] ... | [INFO] [stdout] 1886 | | pub fn tj3GetErrorStr(handle: tjhandle) -> *mut libc::c_char; [INFO] [stdout] 1887 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1888:1 [INFO] [stdout] | [INFO] [stdout] 1888 | / extern "C" { [INFO] [stdout] 1889 | | #[doc = " Returns a code indicating the severity of the last error. See"] [INFO] [stdout] 1890 | | #[doc = " @ref TJERR \"Error codes\"."] [INFO] [stdout] 1891 | | #[doc = ""] [INFO] [stdout] ... | [INFO] [stdout] 1896 | | pub fn tj3GetErrorCode(handle: tjhandle) -> libc::c_int; [INFO] [stdout] 1897 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1898:1 [INFO] [stdout] | [INFO] [stdout] 1898 | / extern "C" { [INFO] [stdout] 1899 | | pub fn TJBUFSIZE(width: libc::c_int, height: libc::c_int) -> libc::c_ulong; [INFO] [stdout] 1900 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1901:1 [INFO] [stdout] | [INFO] [stdout] 1901 | / extern "C" { [INFO] [stdout] 1902 | | pub fn tjCompress( [INFO] [stdout] 1903 | | handle: tjhandle, [INFO] [stdout] 1904 | | srcBuf: *mut libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 1914 | | ) -> libc::c_int; [INFO] [stdout] 1915 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1916:1 [INFO] [stdout] | [INFO] [stdout] 1916 | / extern "C" { [INFO] [stdout] 1917 | | pub fn tjDecompress( [INFO] [stdout] 1918 | | handle: tjhandle, [INFO] [stdout] 1919 | | jpegBuf: *mut libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 1927 | | ) -> libc::c_int; [INFO] [stdout] 1928 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1929:1 [INFO] [stdout] | [INFO] [stdout] 1929 | / extern "C" { [INFO] [stdout] 1930 | | pub fn tjDecompressHeader( [INFO] [stdout] 1931 | | handle: tjhandle, [INFO] [stdout] 1932 | | jpegBuf: *mut libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 1936 | | ) -> libc::c_int; [INFO] [stdout] 1937 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1938:1 [INFO] [stdout] | [INFO] [stdout] 1938 | / extern "C" { [INFO] [stdout] 1939 | | pub fn tjDestroy(handle: tjhandle) -> libc::c_int; [INFO] [stdout] 1940 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1941:1 [INFO] [stdout] | [INFO] [stdout] 1941 | / extern "C" { [INFO] [stdout] 1942 | | pub fn tjGetErrorStr() -> *mut libc::c_char; [INFO] [stdout] 1943 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1944:1 [INFO] [stdout] | [INFO] [stdout] 1944 | / extern "C" { [INFO] [stdout] 1945 | | pub fn tjInitCompress() -> tjhandle; [INFO] [stdout] 1946 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1947:1 [INFO] [stdout] | [INFO] [stdout] 1947 | / extern "C" { [INFO] [stdout] 1948 | | pub fn tjInitDecompress() -> tjhandle; [INFO] [stdout] 1949 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1950:1 [INFO] [stdout] | [INFO] [stdout] 1950 | / extern "C" { [INFO] [stdout] 1951 | | pub fn TJBUFSIZEYUV( [INFO] [stdout] 1952 | | width: libc::c_int, [INFO] [stdout] 1953 | | height: libc::c_int, [INFO] [stdout] 1954 | | jpegSubsamp: libc::c_int, [INFO] [stdout] 1955 | | ) -> libc::c_ulong; [INFO] [stdout] 1956 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1957:1 [INFO] [stdout] | [INFO] [stdout] 1957 | / extern "C" { [INFO] [stdout] 1958 | | pub fn tjDecompressHeader2( [INFO] [stdout] 1959 | | handle: tjhandle, [INFO] [stdout] 1960 | | jpegBuf: *mut libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 1965 | | ) -> libc::c_int; [INFO] [stdout] 1966 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1967:1 [INFO] [stdout] | [INFO] [stdout] 1967 | / extern "C" { [INFO] [stdout] 1968 | | pub fn tjDecompressToYUV( [INFO] [stdout] 1969 | | handle: tjhandle, [INFO] [stdout] 1970 | | jpegBuf: *mut libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 1974 | | ) -> libc::c_int; [INFO] [stdout] 1975 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1976:1 [INFO] [stdout] | [INFO] [stdout] 1976 | / extern "C" { [INFO] [stdout] 1977 | | pub fn tjEncodeYUV( [INFO] [stdout] 1978 | | handle: tjhandle, [INFO] [stdout] 1979 | | srcBuf: *mut libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 1987 | | ) -> libc::c_int; [INFO] [stdout] 1988 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1989:1 [INFO] [stdout] | [INFO] [stdout] 1989 | / extern "C" { [INFO] [stdout] 1990 | | pub fn tjAlloc(bytes: libc::c_int) -> *mut libc::c_uchar; [INFO] [stdout] 1991 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1992:1 [INFO] [stdout] | [INFO] [stdout] 1992 | / extern "C" { [INFO] [stdout] 1993 | | pub fn tjBufSize( [INFO] [stdout] 1994 | | width: libc::c_int, [INFO] [stdout] 1995 | | height: libc::c_int, [INFO] [stdout] 1996 | | jpegSubsamp: libc::c_int, [INFO] [stdout] 1997 | | ) -> libc::c_ulong; [INFO] [stdout] 1998 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:1999:1 [INFO] [stdout] | [INFO] [stdout] 1999 | / extern "C" { [INFO] [stdout] 2000 | | pub fn tjBufSizeYUV( [INFO] [stdout] 2001 | | width: libc::c_int, [INFO] [stdout] 2002 | | height: libc::c_int, [INFO] [stdout] 2003 | | subsamp: libc::c_int, [INFO] [stdout] 2004 | | ) -> libc::c_ulong; [INFO] [stdout] 2005 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2006:1 [INFO] [stdout] | [INFO] [stdout] 2006 | / extern "C" { [INFO] [stdout] 2007 | | pub fn tjCompress2( [INFO] [stdout] 2008 | | handle: tjhandle, [INFO] [stdout] 2009 | | srcBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2019 | | ) -> libc::c_int; [INFO] [stdout] 2020 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2021:1 [INFO] [stdout] | [INFO] [stdout] 2021 | / extern "C" { [INFO] [stdout] 2022 | | pub fn tjDecompress2( [INFO] [stdout] 2023 | | handle: tjhandle, [INFO] [stdout] 2024 | | jpegBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2032 | | ) -> libc::c_int; [INFO] [stdout] 2033 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2034:1 [INFO] [stdout] | [INFO] [stdout] 2034 | / extern "C" { [INFO] [stdout] 2035 | | pub fn tjEncodeYUV2( [INFO] [stdout] 2036 | | handle: tjhandle, [INFO] [stdout] 2037 | | srcBuf: *mut libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2045 | | ) -> libc::c_int; [INFO] [stdout] 2046 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2047:1 [INFO] [stdout] | [INFO] [stdout] 2047 | / extern "C" { [INFO] [stdout] 2048 | | pub fn tjFree(buffer: *mut libc::c_uchar); [INFO] [stdout] 2049 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2050:1 [INFO] [stdout] | [INFO] [stdout] 2050 | / extern "C" { [INFO] [stdout] 2051 | | pub fn tjGetScalingFactors(numscalingfactors: *mut libc::c_int) -> *mut tjscalingfactor; [INFO] [stdout] 2052 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2053:1 [INFO] [stdout] | [INFO] [stdout] 2053 | / extern "C" { [INFO] [stdout] 2054 | | pub fn tjInitTransform() -> tjhandle; [INFO] [stdout] 2055 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2056:1 [INFO] [stdout] | [INFO] [stdout] 2056 | / extern "C" { [INFO] [stdout] 2057 | | pub fn tjTransform( [INFO] [stdout] 2058 | | handle: tjhandle, [INFO] [stdout] 2059 | | jpegBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2066 | | ) -> libc::c_int; [INFO] [stdout] 2067 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2068:1 [INFO] [stdout] | [INFO] [stdout] 2068 | / extern "C" { [INFO] [stdout] 2069 | | pub fn tjBufSizeYUV2( [INFO] [stdout] 2070 | | width: libc::c_int, [INFO] [stdout] 2071 | | align: libc::c_int, [INFO] [stdout] ... | [INFO] [stdout] 2074 | | ) -> libc::c_ulong; [INFO] [stdout] 2075 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2076:1 [INFO] [stdout] | [INFO] [stdout] 2076 | / extern "C" { [INFO] [stdout] 2077 | | pub fn tjCompressFromYUV( [INFO] [stdout] 2078 | | handle: tjhandle, [INFO] [stdout] 2079 | | srcBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2088 | | ) -> libc::c_int; [INFO] [stdout] 2089 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2090:1 [INFO] [stdout] | [INFO] [stdout] 2090 | / extern "C" { [INFO] [stdout] 2091 | | pub fn tjCompressFromYUVPlanes( [INFO] [stdout] 2092 | | handle: tjhandle, [INFO] [stdout] 2093 | | srcPlanes: *mut *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2102 | | ) -> libc::c_int; [INFO] [stdout] 2103 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2104:1 [INFO] [stdout] | [INFO] [stdout] 2104 | / extern "C" { [INFO] [stdout] 2105 | | pub fn tjDecodeYUV( [INFO] [stdout] 2106 | | handle: tjhandle, [INFO] [stdout] 2107 | | srcBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2116 | | ) -> libc::c_int; [INFO] [stdout] 2117 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2118:1 [INFO] [stdout] | [INFO] [stdout] 2118 | / extern "C" { [INFO] [stdout] 2119 | | pub fn tjDecodeYUVPlanes( [INFO] [stdout] 2120 | | handle: tjhandle, [INFO] [stdout] 2121 | | srcPlanes: *mut *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2130 | | ) -> libc::c_int; [INFO] [stdout] 2131 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2132:1 [INFO] [stdout] | [INFO] [stdout] 2132 | / extern "C" { [INFO] [stdout] 2133 | | pub fn tjDecompressHeader3( [INFO] [stdout] 2134 | | handle: tjhandle, [INFO] [stdout] 2135 | | jpegBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2141 | | ) -> libc::c_int; [INFO] [stdout] 2142 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2143:1 [INFO] [stdout] | [INFO] [stdout] 2143 | / extern "C" { [INFO] [stdout] 2144 | | pub fn tjDecompressToYUV2( [INFO] [stdout] 2145 | | handle: tjhandle, [INFO] [stdout] 2146 | | jpegBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2153 | | ) -> libc::c_int; [INFO] [stdout] 2154 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2155:1 [INFO] [stdout] | [INFO] [stdout] 2155 | / extern "C" { [INFO] [stdout] 2156 | | pub fn tjDecompressToYUVPlanes( [INFO] [stdout] 2157 | | handle: tjhandle, [INFO] [stdout] 2158 | | jpegBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2165 | | ) -> libc::c_int; [INFO] [stdout] 2166 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2167:1 [INFO] [stdout] | [INFO] [stdout] 2167 | / extern "C" { [INFO] [stdout] 2168 | | pub fn tjEncodeYUV3( [INFO] [stdout] 2169 | | handle: tjhandle, [INFO] [stdout] 2170 | | srcBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2179 | | ) -> libc::c_int; [INFO] [stdout] 2180 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2181:1 [INFO] [stdout] | [INFO] [stdout] 2181 | / extern "C" { [INFO] [stdout] 2182 | | pub fn tjEncodeYUVPlanes( [INFO] [stdout] 2183 | | handle: tjhandle, [INFO] [stdout] 2184 | | srcBuf: *const libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2193 | | ) -> libc::c_int; [INFO] [stdout] 2194 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2195:1 [INFO] [stdout] | [INFO] [stdout] 2195 | / extern "C" { [INFO] [stdout] 2196 | | pub fn tjPlaneHeight( [INFO] [stdout] 2197 | | componentID: libc::c_int, [INFO] [stdout] 2198 | | height: libc::c_int, [INFO] [stdout] 2199 | | subsamp: libc::c_int, [INFO] [stdout] 2200 | | ) -> libc::c_int; [INFO] [stdout] 2201 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2202:1 [INFO] [stdout] | [INFO] [stdout] 2202 | / extern "C" { [INFO] [stdout] 2203 | | pub fn tjPlaneSizeYUV( [INFO] [stdout] 2204 | | componentID: libc::c_int, [INFO] [stdout] 2205 | | width: libc::c_int, [INFO] [stdout] ... | [INFO] [stdout] 2209 | | ) -> libc::c_ulong; [INFO] [stdout] 2210 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2211:1 [INFO] [stdout] | [INFO] [stdout] 2211 | / extern "C" { [INFO] [stdout] 2212 | | pub fn tjPlaneWidth( [INFO] [stdout] 2213 | | componentID: libc::c_int, [INFO] [stdout] 2214 | | width: libc::c_int, [INFO] [stdout] 2215 | | subsamp: libc::c_int, [INFO] [stdout] 2216 | | ) -> libc::c_int; [INFO] [stdout] 2217 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2218:1 [INFO] [stdout] | [INFO] [stdout] 2218 | / extern "C" { [INFO] [stdout] 2219 | | pub fn tjGetErrorCode(handle: tjhandle) -> libc::c_int; [INFO] [stdout] 2220 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2221:1 [INFO] [stdout] | [INFO] [stdout] 2221 | / extern "C" { [INFO] [stdout] 2222 | | pub fn tjGetErrorStr2(handle: tjhandle) -> *mut libc::c_char; [INFO] [stdout] 2223 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2224:1 [INFO] [stdout] | [INFO] [stdout] 2224 | / extern "C" { [INFO] [stdout] 2225 | | pub fn tjLoadImage( [INFO] [stdout] 2226 | | filename: *const libc::c_char, [INFO] [stdout] 2227 | | width: *mut libc::c_int, [INFO] [stdout] ... | [INFO] [stdout] 2232 | | ) -> *mut libc::c_uchar; [INFO] [stdout] 2233 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> /opt/rustwide/target/debug/build/turbojpeg-sys-0dc008258a0a67f9/out/bindings.rs:2234:1 [INFO] [stdout] | [INFO] [stdout] 2234 | / extern "C" { [INFO] [stdout] 2235 | | pub fn tjSaveImage( [INFO] [stdout] 2236 | | filename: *const libc::c_char, [INFO] [stdout] 2237 | | buffer: *mut libc::c_uchar, [INFO] [stdout] ... | [INFO] [stdout] 2243 | | ) -> libc::c_int; [INFO] [stdout] 2244 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 86 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `turbojpeg-sys` (lib) due to 87 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 86 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `turbojpeg-sys` (lib test) due to 87 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "be046f2befa9f6127e3da9d576c9a4c0ade95b4a2e00d73b35fcbc08d0828bd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be046f2befa9f6127e3da9d576c9a4c0ade95b4a2e00d73b35fcbc08d0828bd6", kill_on_drop: false }` [INFO] [stdout] be046f2befa9f6127e3da9d576c9a4c0ade95b4a2e00d73b35fcbc08d0828bd6