diff --git a/Cargo.toml b/Cargo.toml index c804adf..408f06b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hyperparameter" -version = "0.1.0" +version = "0.5.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -11,7 +11,6 @@ crate-type = ["cdylib"] [dependencies] cxx = "1.0" -arraystring = "0.3.0" pyo3 = { version = "0.18.1", features = [ "extension-module", "abi3", diff --git a/pyproject.toml b/pyproject.toml index f761a6a..9890d40 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "hyperparameter" -version = "0.5.1" +version = "0.5.2" authors = [{ name = "Reiase", email = "reiase@gmail.com" }] description = "A hyper-parameter library for researchers, data scientists and machine learning engineers." requires-python = ">=3.7" diff --git a/src/entry.rs b/src/entry.rs index e518c44..e4aa63d 100644 --- a/src/entry.rs +++ b/src/entry.rs @@ -1,4 +1,3 @@ -use arraystring::CacheString; use std::{ffi::c_void, sync::Arc}; #[derive(Debug, Clone, PartialEq)] @@ -15,7 +14,7 @@ pub enum Value { Empty, Int(i64), Float(f64), - Text(CacheString), + Text(String), Boolen(bool), UserDefined( *mut c_void, //data @@ -38,19 +37,19 @@ impl From for Value { impl From for Value { fn from(value: String) -> Self { - Value::Text(CacheString::from_str_truncate(value)) + Value::Text(value) } } impl From<&String> for Value { fn from(value: &String) -> Self { - Value::Text(CacheString::from_str_truncate(value)) + Value::Text(value.clone()) } } impl From<&str> for Value { fn from(value: &str) -> Self { - Value::Text(CacheString::from_str_truncate(value)) + Value::Text(value.to_string()) } }