mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-14 08:23:45 +02:00
Support derives for Serialize/Deserialize for identity and address
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
This commit is contained in:
parent
250f665ab7
commit
a453b25606
3 changed files with 3 additions and 2 deletions
|
@ -20,6 +20,7 @@ parking_lot = "^0"
|
||||||
lazy_static = "^1"
|
lazy_static = "^1"
|
||||||
highway = "^0"
|
highway = "^0"
|
||||||
serde = "^1"
|
serde = "^1"
|
||||||
|
serde_derive = "^1"
|
||||||
serde_json = "^1"
|
serde_json = "^1"
|
||||||
|
|
||||||
[target."cfg(not(windows))".dependencies]
|
[target."cfg(not(windows))".dependencies]
|
||||||
|
|
|
@ -10,7 +10,7 @@ use std::hash::{Hash, Hasher};
|
||||||
use std::num::NonZeroU64;
|
use std::num::NonZeroU64;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
use serde::{Deserialize, Serialize};
|
use serde_derive::{Deserialize, Serialize};
|
||||||
|
|
||||||
use crate::error::InvalidFormatError;
|
use crate::error::InvalidFormatError;
|
||||||
use crate::util::buffer::Buffer;
|
use crate::util::buffer::Buffer;
|
||||||
|
|
|
@ -17,7 +17,7 @@ use std::str::FromStr;
|
||||||
|
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
|
|
||||||
use serde::{Deserialize, Serialize};
|
use serde_derive::{Deserialize, Serialize};
|
||||||
|
|
||||||
use zerotier_core_crypto::c25519::*;
|
use zerotier_core_crypto::c25519::*;
|
||||||
use zerotier_core_crypto::hash::{hmac_sha512, SHA384, SHA384_HASH_SIZE, SHA512, SHA512_HASH_SIZE};
|
use zerotier_core_crypto::hash::{hmac_sha512, SHA384, SHA384_HASH_SIZE, SHA512, SHA512_HASH_SIZE};
|
||||||
|
|
Loading…
Add table
Reference in a new issue