Serialize to compact binary representation if is_human_readable=false, serialize all to string if is_human_readable=true
Improve efficiency of serialized IBig by store the sign bit in the LSB of the highest word (by always shifting the highest word left by 1). This is the zigzag encoding used by postcard.
[ ] Support rkyv for UBig, IBig, FBig and RBig, try to do zero-copying serialization in this framework.
[ ] Support arbitrary::Arbitrary or quickcheck::Arbitrary for UBig, IBig, FBig and RBig
[x] Support postgres decimal through sqlx, postgres, tokio-postgres or diesel crates (see fraction and rust_decimal crates)
rand
forFBig
andRBig
num-traits
forFBig
andRBig
Zero
,One
,FromPrimitive
,ToPrimitive
,Num
Euclid
,Pow
zeroize
forFBig
andRBig
serde
forFBig
andRBig
is_human_readable
option (see https://github.com/rust-num/num-rational/issues/90)is_human_readable=false
, serialize all to string ifis_human_readable=true
IBig
by store the sign bit in the LSB of the highest word (by always shifting the highest word left by 1). This is the zigzag encoding used by postcard.rkyv
forUBig
,IBig
,FBig
andRBig
, try to do zero-copying serialization in this framework.arbitrary::Arbitrary
orquickcheck::Arbitrary
forUBig
,IBig
,FBig
andRBig
sqlx
,postgres
,tokio-postgres
ordiesel
crates (seefraction
andrust_decimal
crates)Supportpyo3
conversionConvertUBig
andIBig
to native Python intConvertDBig
to Python decimalConvertRBig
andRelaxed
to Python fractionsConvertFBig
to native python float (double)