diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c7752b..b103730 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # CHANGELOG.md +## 0.6.7 (2024-10-19) + +Misc: + + - Added `Deserialize` and other auxiliary traits that may be helpful + downstream + ## 0.6.6 (2024-10-06) Features: diff --git a/twistrs/Cargo.toml b/twistrs/Cargo.toml index 3392cb3..244db17 100644 --- a/twistrs/Cargo.toml +++ b/twistrs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "twistrs" -version = "0.6.6" +version = "0.6.7" description = "An asynchronous domain name permutation and enumeration library." license = "MIT" repository = "https://github.com/JuxhinDB/twistrs" diff --git a/twistrs/src/permutate.rs b/twistrs/src/permutate.rs index 1fed030..37a60a5 100644 --- a/twistrs/src/permutate.rs +++ b/twistrs/src/permutate.rs @@ -25,7 +25,7 @@ use std::collections::HashSet; use addr::parser::DomainName; use addr::psl::List; use itertools::Itertools; -use serde::Serialize; +use serde::{Deserialize, Serialize}; // Include further constants such as dictionaries that are // generated during compile time. @@ -34,7 +34,7 @@ include!(concat!(env!("OUT_DIR"), "/data.rs")); use crate::tlds::{TLDS, TLDS_EXTENDED}; /// Wrapper around an FQDN to perform permutations against. -#[derive(Clone, Hash, Default, Debug, Serialize, Eq, PartialEq)] +#[derive(Clone, Hash, Default, Debug, Serialize, Deserialize, Eq, PartialEq, Ord, PartialOrd)] pub struct Domain { /// The domain FQDN to generate permutations from. pub fqdn: String, @@ -46,13 +46,13 @@ pub struct Domain { pub domain: String, } -#[derive(Clone, Debug, Serialize, Hash, Eq, PartialEq)] +#[derive(Clone, Debug, Serialize, Deserialize, Hash, Eq, PartialEq, Ord, PartialOrd)] pub struct Permutation { pub domain: Domain, pub kind: PermutationKind, } -#[derive(Clone, Copy, Serialize, Hash, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Serialize, Deserialize, Hash, Debug, Eq, PartialEq, Ord, PartialOrd)] pub enum PermutationKind { Addition, Bitsquatting,