Skip to content

Commit

Permalink
Add generic convertors from RzList, RzPVector and RzVector
Browse files Browse the repository at this point in the history
  • Loading branch information
imbillow committed May 9, 2024
1 parent fa3a023 commit e152be3
Show file tree
Hide file tree
Showing 4 changed files with 277 additions and 48 deletions.
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ fn main() -> Result<(), Box<dyn Error>> {
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/",
])
.derive_default(true)
.generate_inline_functions(true)
.blocklist_type("u128")
.blocklist_type("max_align_t")
.blocklist_function("_.*")
Expand Down
10 changes: 3 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![feature(non_null_convenience)]
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
Expand All @@ -8,11 +9,11 @@ pub mod wrapper;

#[cfg(test)]
mod tests {
use crate::wrapper::Core;
use crate::*;
use std::ffi::CString;
use std::path::Path;

use crate::*;

#[test]
fn test_bin_file() {
unsafe {
Expand All @@ -32,11 +33,6 @@ mod tests {
}
}

#[test]
fn test_core() {
let _ = Core::new();
}

#[test]
fn test_none() {
assert!(true);
Expand Down
Loading

0 comments on commit e152be3

Please sign in to comment.