mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-04 10:34:11 +02:00
add serde support for packets
This commit is contained in:
parent
058ee0b96d
commit
03f8b8a424
27 changed files with 556 additions and 490 deletions
|
|
@ -1,3 +1,4 @@
|
|||
use serde::{Deserialize, Serialize};
|
||||
use std::hash::{BuildHasher, Hasher};
|
||||
|
||||
/// A dummy hasher that maps simply returns the hashed u64
|
||||
|
|
@ -34,7 +35,7 @@ impl Hasher for NullHasher {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Serialize, Deserialize, Default)]
|
||||
pub struct NullHasherBuilder;
|
||||
|
||||
impl BuildHasher for NullHasherBuilder {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue