From 688021cb0a4935295f9aa8b488ca05bb4f1e9b34 Mon Sep 17 00:00:00 2001 From: Brooke Vibber Date: Wed, 14 Feb 2024 07:46:58 -0800 Subject: [PATCH] Update deps to fix with newer clang Update deps, names Version number bump to 0.3.1 --- Cargo.toml | 12 ++++++------ build.rs | 2 +- package.json | 2 +- readme.md | 2 +- src/lib.rs | 3 ++- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 95a0e88..7f38f8e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "jpegxr" -version = "0.3.0" -authors = ["Brion Vibber "] +version = "0.3.1" +authors = ["Brooke Vibber "] edition = "2018" license = "BSD-3-Clause" description = "Wrapper for Microsoft's C JPEG XR image codec library" @@ -14,9 +14,9 @@ categories = ["multimedia::images"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -thiserror = "1.0.29" -libc = "0.2.102" +thiserror = "1.0.57" +libc = "0.2.153" [build-dependencies] -cc = { version = "1.0.67", features = ["parallel"] } -bindgen = "0.68.1" +cc = { version = "1.0.83", features = ["parallel"] } +bindgen = "0.69.4" diff --git a/build.rs b/build.rs index 24f806a..c0ae30a 100644 --- a/build.rs +++ b/build.rs @@ -116,7 +116,7 @@ fn main() { .clang_args(clang_args) .derive_eq(true) .size_t_is_usize(true) - .parse_callbacks(Box::new(bindgen::CargoCallbacks)) + .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())) .generate() .expect("Error building libjpegxr bindings") .write_to_file(out_path.join("bindings.rs")) diff --git a/package.json b/package.json index 50775cd..e007188 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "jpegxr", "jxr" ], - "author": "Brion Vibber ", + "author": "Brooke Vibber ", "license": "BSD-3-Clause", "bugs": { "url": "https://github.com/brion/jpegxr/issues" diff --git a/readme.md b/readme.md index b27adee..a826380 100644 --- a/readme.md +++ b/readme.md @@ -7,7 +7,7 @@ Currently only decoding is supported, but adding an encoder interface should be # Authors The wrapped C JPEG XR library was written by many fine folks at Microsoft! -Rust and JS code wrapping it, and tweaks to the C code, are by Brion Vibber ``. +Rust and JS code wrapping it, and tweaks to the C code, are by Brooke Vibber ``. # License diff --git a/src/lib.rs b/src/lib.rs index 9e8d4be..3f7ee9c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,5 @@ // -// Copyright © Brion Vibber +// Copyright © Brooke Vibber // Some rights reserved. // // Redistribution and use in source and binary forms, with or without @@ -26,6 +26,7 @@ // turn on all clippy's lints by default #![warn(clippy::all)] +#![allow(unused_imports)] // this quiets the compiler about the C constant names #![allow(non_upper_case_globals)] // this is triggered by test cases in bindgen code