Support derives for Serialize/Deserialize for identity and address

Signed-off-by: Erik Hollensbe <git@hollensbe.org>
This commit is contained in:
Erik Hollensbe 2022-04-20 19:12:25 -07:00
parent 250f665ab7
commit a453b25606
No known key found for this signature in database
GPG key ID: 4BB0E241A863B389
3 changed files with 3 additions and 2 deletions

View file

@ -20,6 +20,7 @@ parking_lot = "^0"
lazy_static = "^1"
highway = "^0"
serde = "^1"
serde_derive = "^1"
serde_json = "^1"
[target."cfg(not(windows))".dependencies]

View file

@ -10,7 +10,7 @@ use std::hash::{Hash, Hasher};
use std::num::NonZeroU64;
use std::str::FromStr;
use serde::{Deserialize, Serialize};
use serde_derive::{Deserialize, Serialize};
use crate::error::InvalidFormatError;
use crate::util::buffer::Buffer;

View file

@ -17,7 +17,7 @@ use std::str::FromStr;
use lazy_static::lazy_static;
use serde::{Deserialize, Serialize};
use serde_derive::{Deserialize, Serialize};
use zerotier_core_crypto::c25519::*;
use zerotier_core_crypto::hash::{hmac_sha512, SHA384, SHA384_HASH_SIZE, SHA512, SHA512_HASH_SIZE};