diff --git a/gir b/gir index 6c8c7c4..1ee9edf 160000 --- a/gir +++ b/gir @@ -1 +1 @@ -Subproject commit 6c8c7c481da4bb3df5cbf3a277d5c0247f219c85 +Subproject commit 1ee9edf52fb1a0bd9e66eff7c1f896fa3cdc30c5 diff --git a/sourceview-sys/Cargo.toml b/sourceview-sys/Cargo.toml index 1267c49..75c1aa2 100644 --- a/sourceview-sys/Cargo.toml +++ b/sourceview-sys/Cargo.toml @@ -29,7 +29,7 @@ git = "https://github.com/gtk-rs/sys" [dev-dependencies] shell-words = "0.1.0" -tempdir = "0.3" +tempfile = "3" [features] v3_4 = [] diff --git a/sourceview-sys/tests/abi.rs b/sourceview-sys/tests/abi.rs index d1095b1..5a01bf5 100644 --- a/sourceview-sys/tests/abi.rs +++ b/sourceview-sys/tests/abi.rs @@ -4,7 +4,7 @@ extern crate gtk_source_sys; extern crate shell_words; -extern crate tempdir; +extern crate tempfile; use gtk_source_sys::*; use std::env; use std::error::Error; @@ -12,6 +12,7 @@ use std::mem::{align_of, size_of}; use std::path::Path; use std::process::Command; use std::str; +use tempfile::Builder; static PACKAGES: &[&str] = &["gtksourceview-3.0"]; @@ -126,7 +127,10 @@ impl Results { #[test] fn cross_validate_constants_with_c() { - let tmpdir = tempdir::TempDir::new("abi").expect("temporary directory"); + let tmpdir = Builder::new() + .prefix("abi") + .tempdir() + .expect("temporary directory"); let cc = Compiler::new().expect("configured compiler"); assert_eq!( @@ -163,7 +167,10 @@ fn cross_validate_constants_with_c() { #[test] fn cross_validate_layout_with_c() { - let tmpdir = tempdir::TempDir::new("abi").expect("temporary directory"); + let tmpdir = Builder::new() + .prefix("abi") + .tempdir() + .expect("temporary directory"); let cc = Compiler::new().expect("configured compiler"); assert_eq!( diff --git a/sourceview-sys/versions.txt b/sourceview-sys/versions.txt index 42d3b74..e893766 100644 --- a/sourceview-sys/versions.txt +++ b/sourceview-sys/versions.txt @@ -1,2 +1,2 @@ -Generated by gir (https://github.com/gtk-rs/gir @ 6c8c7c4) +Generated by gir (https://github.com/gtk-rs/gir @ 1ee9edf) from gir-files (https://github.com/gtk-rs/gir-files @ 22748fa)