File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " bitcoin-amount"
3- version = " 0.1.1 "
3+ version = " 0.1.2 "
44authors = [" Jean Pierre Dudey <jeandudey@hotmail.com>" ]
55description = " Safe manipulation of bitcoin amounts"
66documentation = " https://docs.rs/bitcoin-amount"
@@ -15,7 +15,6 @@ license = "MIT/Apache-2.0"
1515travis-ci = { repository = " jeandudey/rust-bitcoin-amount" , branch = " master" }
1616
1717[features ]
18- serde_impl = [" serde" ]
1918serde_json_number = [" serde_json" ]
2019
2120[dependencies .serde ]
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ This crate implements bitcoin amount handling functionality with safety in mind.
66
77This crate has the following features:
88
9- - ` serde_impl ` : enables serialization/deserialization of ` Amounts ` .
10- - ` serde_json_numbers ` : enables the creation of ` Amounts ` from ` serde_json ` numbers.
9+ - ` serde ` : enables serialization/deserialization of ` Amounts ` .
10+ - ` serde_json_number ` : enables the creation of ` Amounts ` from ` serde_json ` numbers.
Original file line number Diff line number Diff line change 33//! # Bitcoin Amount
44//!
55
6- #[ cfg( feature = "serde_impl " ) ]
6+ #[ cfg( feature = "serde " ) ]
77extern crate serde;
88#[ cfg( feature = "serde_json_number" ) ]
99extern crate serde_json;
@@ -114,7 +114,7 @@ impl Sub for Amount {
114114 }
115115}
116116
117- #[ cfg( feature = "serde_impl " ) ]
117+ #[ cfg( feature = "serde " ) ]
118118impl < ' de > serde:: Deserialize < ' de > for Amount {
119119 fn deserialize < D > ( deserializer : D ) -> Result < Self , D :: Error >
120120 where
@@ -124,7 +124,7 @@ impl<'de> serde::Deserialize<'de> for Amount {
124124 }
125125}
126126
127- #[ cfg( feature = "serde_impl " ) ]
127+ #[ cfg( feature = "serde " ) ]
128128impl serde:: Serialize for Amount {
129129 fn serialize < S > ( & self , serializer : S ) -> Result < S :: Ok , S :: Error >
130130 where
You can’t perform that action at this time.
0 commit comments