Skip to content

Commit ca12f21

Browse files
committed
Rename serde_impl feature to serde.
Signed-off-by: Jean Pierre Dudey <jeandudey@hotmail.com>
1 parent 99f485f commit ca12f21

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bitcoin-amount"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
authors = ["Jean Pierre Dudey <jeandudey@hotmail.com>"]
55
description = "Safe manipulation of bitcoin amounts"
66
documentation = "https://docs.rs/bitcoin-amount"
@@ -15,7 +15,6 @@ license = "MIT/Apache-2.0"
1515
travis-ci = { repository = "jeandudey/rust-bitcoin-amount", branch = "master" }
1616

1717
[features]
18-
serde_impl = ["serde"]
1918
serde_json_number = ["serde_json"]
2019

2120
[dependencies.serde]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ This crate implements bitcoin amount handling functionality with safety in mind.
66

77
This 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.

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! # Bitcoin Amount
44
//!
55
6-
#[cfg(feature = "serde_impl")]
6+
#[cfg(feature = "serde")]
77
extern crate serde;
88
#[cfg(feature = "serde_json_number")]
99
extern crate serde_json;
@@ -114,7 +114,7 @@ impl Sub for Amount {
114114
}
115115
}
116116

117-
#[cfg(feature = "serde_impl")]
117+
#[cfg(feature = "serde")]
118118
impl<'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")]
128128
impl serde::Serialize for Amount {
129129
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
130130
where

0 commit comments

Comments
 (0)