Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.6.7 #77

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion twistrs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
8 changes: 4 additions & 4 deletions twistrs/src/permutate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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,
Expand All @@ -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,
Expand Down
Loading