diff --git a/Cargo.lock b/Cargo.lock index 3b14b72..46b8cd1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -267,7 +267,7 @@ dependencies = [ [[package]] name = "cjyafn" -version = "0.3.0" +version = "0.3.1" dependencies = [ "cbindgen", "get-size", @@ -984,7 +984,7 @@ dependencies = [ [[package]] name = "jyafn" -version = "0.3.0" +version = "0.3.1" dependencies = [ "bincode", "byte-slice-cast", @@ -1027,7 +1027,7 @@ dependencies = [ [[package]] name = "jyafn-python" -version = "0.3.0" +version = "0.3.1" dependencies = [ "chrono", "get-size", diff --git a/cjyafn/Cargo.toml b/cjyafn/Cargo.toml index e957f28..0d56d2c 100644 --- a/cjyafn/Cargo.toml +++ b/cjyafn/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cjyafn" -version = "0.3.0" +version = "0.3.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/jyafn-python/Cargo.toml b/jyafn-python/Cargo.toml index 2f33ca5..594c8a1 100644 --- a/jyafn-python/Cargo.toml +++ b/jyafn-python/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jyafn-python" -version = "0.3.0" +version = "0.3.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/jyafn/Cargo.toml b/jyafn/Cargo.toml index 8ee6343..59fa2f0 100644 --- a/jyafn/Cargo.toml +++ b/jyafn/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "jyafn" -version = "0.3.0" +version = "0.3.1" edition = "2021" authors = ["Pedro Arruda "] description = "Computational graphs for Data Science that compile to machine code" diff --git a/jyafn/src/extension.rs b/jyafn/src/extension.rs index f95b27d..d4316fa 100644 --- a/jyafn/src/extension.rs +++ b/jyafn/src/extension.rs @@ -314,15 +314,9 @@ impl Extension { unsafe { // Safety: we can only pray nobody loads anything funny here. However, it's // not my responsibilty what kind of crap you install in your computer. - println!("starting to load {path:?}"); - let library = Library::new(path).inspect_err(|err| println!("oops:{err}"))?; - println!("aisndoa"); - let extension_init: Symbol = library - .get(EXTENSION_INIT_SYMBOL) - .inspect_err(|err| println!("oops:{err}"))?; - println!("init is not null"); + let library = Library::new(path)?; + let extension_init: Symbol = library.get(EXTENSION_INIT_SYMBOL)?; let outcome = extension_init(); - println!("init is not null"); if outcome.is_null() { return Err(format!("library {path:?} failed to load").into()); }