Skip to content

Commit

Permalink
Add version string, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
harryjph committed Feb 6, 2020
1 parent 0f9e22a commit 0f5c1a6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libshabal"
version = "1.2.0"
version = "1.3.0"
authors = ["Harry Phillips <[email protected]>"]
edition = "2018"
build = "build.rs"
Expand Down
11 changes: 11 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ use std::os::raw::c_void;
use pocc::plot::NONCE_SIZE;
use pocc::plot::SCOOP_SIZE;
use crate::simd::SimdExtension;
use std::ffi::CString;
use once_cell::sync::Lazy;

mod pocc;
mod simd;
Expand Down Expand Up @@ -115,6 +117,15 @@ cfg_if! {
}
}

static VERSION: Lazy<CString> = Lazy::new(|| {
return CString::new("v1.3.0").expect("Failed to create version string");
});

#[no_mangle]
pub extern fn libshabal_version() -> *const u8 {
return VERSION.as_ptr() as *const u8;
}

#[no_mangle]
pub extern fn shabal_findBestDeadlineDirect(
scoops: *const u8,
Expand Down

0 comments on commit 0f5c1a6

Please sign in to comment.