Skip to content

Commit

Permalink
Update dependencies and version
Browse files Browse the repository at this point in the history
  • Loading branch information
jklmnn committed Dec 1, 2023
1 parent 820ecac commit ca55626
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gpr"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
authors = ["Johannes Kliemann <jk@jkliemann.de"]
description = "Libgpr binding for Rust. Provides an easy way to build Ada projects with cargo."
Expand All @@ -19,7 +19,7 @@ thiserror = "1.0"
lazy_static = "1.4.0"

[dev-dependencies]
libloading = "0.5"
libloading = "0.8"

[build-dependencies]
git2 = "0.14"
git2 = "0.18"
12 changes: 6 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,13 @@ mod tests {
.unwrap()
.wait()
.unwrap();
let test2 = lib::Library::new(format!(
"{}/lib{}.so",
prj.library_dir().unwrap().to_str().unwrap(),
prj.library_name().unwrap()
))
.unwrap();
unsafe {
let test2 = lib::Library::new(format!(
"{}/lib{}.so",
prj.library_dir().unwrap().to_str().unwrap(),
prj.library_name().unwrap()
))
.unwrap();
let test2init: lib::Symbol<unsafe extern "C" fn()> = test2.get(b"test2init").unwrap();
let test2final: lib::Symbol<unsafe extern "C" fn()> = test2.get(b"test2final").unwrap();
let test2_add: lib::Symbol<unsafe extern "C" fn(c_int, c_int) -> c_int> =
Expand Down

0 comments on commit ca55626

Please sign in to comment.