File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " hyperparameter"
3- version = " 0.1.0 "
3+ version = " 0.5.2 "
44edition = " 2021"
55
66# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -11,7 +11,6 @@ crate-type = ["cdylib"]
1111
1212[dependencies ]
1313cxx = " 1.0"
14- arraystring = " 0.3.0"
1514pyo3 = { version = " 0.18.1" , features = [
1615 " extension-module" ,
1716 " abi3" ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "maturin"
44
55[project ]
66name = " hyperparameter"
7- version = " 0.5.1 "
7+ version = " 0.5.2 "
88authors = [{
name =
" Reiase" ,
email =
" [email protected] " }]
99description = " A hyper-parameter library for researchers, data scientists and machine learning engineers."
1010requires-python = " >=3.7"
Original file line number Diff line number Diff line change 1- use arraystring:: CacheString ;
21use std:: { ffi:: c_void, sync:: Arc } ;
32
43#[ derive( Debug , Clone , PartialEq ) ]
@@ -15,7 +14,7 @@ pub enum Value {
1514 Empty ,
1615 Int ( i64 ) ,
1716 Float ( f64 ) ,
18- Text ( CacheString ) ,
17+ Text ( String ) ,
1918 Boolen ( bool ) ,
2019 UserDefined (
2120 * mut c_void , //data
@@ -38,19 +37,19 @@ impl From<f64> for Value {
3837
3938impl From < String > for Value {
4039 fn from ( value : String ) -> Self {
41- Value :: Text ( CacheString :: from_str_truncate ( value) )
40+ Value :: Text ( value)
4241 }
4342}
4443
4544impl From < & String > for Value {
4645 fn from ( value : & String ) -> Self {
47- Value :: Text ( CacheString :: from_str_truncate ( value) )
46+ Value :: Text ( value. clone ( ) )
4847 }
4948}
5049
5150impl From < & str > for Value {
5251 fn from ( value : & str ) -> Self {
53- Value :: Text ( CacheString :: from_str_truncate ( value) )
52+ Value :: Text ( value. to_string ( ) )
5453 }
5554}
5655
You can’t perform that action at this time.
0 commit comments