Serialization with serde.

This commit is contained in:
Tomasz Drwięga
2017-11-10 21:31:48 +01:00
parent 74ec849f7e
commit 799d03254f
9 changed files with 444 additions and 22 deletions
+12 -10
View File
@@ -18,27 +18,29 @@
#![warn(missing_docs)]
#[cfg(feature="std")]
extern crate core;
extern crate serde;
extern crate rustc_hex;
#[macro_use]
extern crate crunchy;
#[macro_use]
extern crate fixed_hash;
#[macro_use]
extern crate serde_derive;
#[macro_use]
extern crate uint as uint_crate;
#[cfg(feature="std")]
extern crate core;
#[cfg(test)]
extern crate polkadot_serializer;
#[cfg(test)]
#[macro_use]
extern crate pretty_assertions;
pub mod block;
pub mod hash;
pub mod uint;
/// Alias to 160-bit hash when used in the context of an account address.
pub type Address = hash::H160;
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}