[package]
edition = "2021"
rust-version = "1.80"
name = "gossan-engine"
version = "0.3.3"
authors = ["Santh Project <security@santh.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance stateless SYN scanner and banner grabber"
homepage = "https://santh.dev"
readme = "README.md"
keywords = [
"portscan",
"syn",
"scanner",
"network",
"security",
]
categories = [
"command-line-utilities",
"network-programming",
]
license = "MIT"
repository = "https://github.com/santhreal/gossan"
[features]
default = []
xdp = ["netforge/xdp-backend"]
[lib]
name = "gossan_engine"
path = "src/lib.rs"
[[test]]
name = "perf_gate"
path = "tests/perf_gate.rs"
[[test]]
name = "realnet_loopback"
path = "tests/realnet_loopback.rs"
[[bench]]
name = "tx_hot_loop"
path = "benches/tx_hot_loop.rs"
harness = false
[dependencies.anyhow]
version = "1"
[dependencies.async-trait]
version = "0.1"
[dependencies.crossbeam-channel]
version = "0.5"
[dependencies.fastrand]
version = "2"
[dependencies.futures]
version = "0.3"
[dependencies.gossan-classify]
version = "0.3"
[dependencies.gossan-core]
version = "0.3"
[dependencies.netforge]
version = "0.1"
[dependencies.secfinding]
version = "0.4"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
"net",
"io-util",
"fs",
]
[dependencies.tracing]
version = "0.1"
[dependencies.url]
version = "2"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.hickory-resolver]
version = "0.25"
features = [
"tokio",
"system-config",
]
default-features = false
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.serde]
version = "1"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tracing-subscriber]
version = "0.3"
[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"
[target.'cfg(target_os = "linux")'.dev-dependencies.libc]
version = "0.2"
[lints.clippy]
assigning_clones = "allow"
branches_sharing_code = "allow"
case_sensitive_file_extension_comparisons = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_copy = "allow"
cloned_ref_to_slice_refs = "allow"
collapsible_else_if = "allow"
collapsible_if = "allow"
collapsible_match = "allow"
comparison_chain = "allow"
default_trait_access = "allow"
deref_addrof = "allow"
doc_markdown = "allow"
duration_suboptimal_units = "allow"
duration_subsec = "allow"
empty_line_after_outer_attr = "allow"
expect_fun_call = "allow"
explicit_deref_methods = "allow"
explicit_into_iter_loop = "allow"
explicit_iter_loop = "allow"
field_reassign_with_default = "allow"
fn_params_excessive_bools = "allow"
format_collect = "allow"
format_push_string = "allow"
identity_op = "allow"
if_not_else = "allow"
if_same_then_else = "allow"
ignored_unit_patterns = "allow"
implicit_clone = "allow"
implicit_hasher = "allow"
inconsistent_struct_constructor = "allow"
inefficient_to_string = "allow"
items_after_statements = "allow"
items_after_test_module = "allow"
legacy_numeric_constants = "allow"
let_unit_value = "allow"
manual_abs_diff = "allow"
manual_assert = "allow"
manual_checked_ops = "allow"
manual_clamp = "allow"
manual_contains = "allow"
manual_div_ceil = "allow"
manual_let_else = "allow"
manual_ok_or = "allow"
manual_pattern_char_comparison = "allow"
manual_range_contains = "allow"
manual_repeat_n = "allow"
manual_str_repeat = "allow"
manual_string_new = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
naive_bytecount = "allow"
needless_borrows_for_generic_args = "allow"
needless_collect = "allow"
needless_continue = "allow"
needless_doctest_main = "allow"
needless_for_each = "allow"
needless_late_init = "allow"
needless_option_as_deref = "allow"
needless_pass_by_value = "allow"
needless_question_mark = "allow"
needless_range_loop = "allow"
needless_raw_string_hashes = "allow"
never_loop = "allow"
new_without_default = "allow"
no_effect_underscore_binding = "allow"
or_fun_call = "allow"
panic_in_result_fn = "allow"
ptr_arg = "allow"
question_mark = "allow"
question_mark_used = "allow"
range_minus_one = "allow"
range_plus_one = "allow"
redundant_closure = "allow"
redundant_closure_for_method_calls = "allow"
redundant_pattern_matching = "allow"
ref_option = "allow"
ref_option_ref = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
similar_names = "allow"
single_char_add_str = "allow"
single_char_pattern = "allow"
single_element_loop = "allow"
single_match = "allow"
single_match_else = "allow"
stable_sort_primitive = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
trivial_regex = "allow"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
unchecked_time_subtraction = "allow"
uninlined_format_args = "allow"
unit_arg = "allow"
unnecessary_box_returns = "allow"
unnecessary_lazy_evaluations = "allow"
unnecessary_map_or = "allow"
unnecessary_sort_by = "allow"
unnecessary_to_owned = "allow"
unnecessary_wraps = "allow"
unreadable_literal = "allow"
unused_self = "allow"
used_underscore_binding = "allow"
useless_conversion = "allow"
useless_format = "allow"
useless_vec = "allow"
wildcard_imports = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
dead_code = "allow"
missing_docs = "allow"
unexpected_cfgs = "allow"
unused_assignments = "allow"
unused_imports = "allow"
unused_must_use = "allow"
unused_mut = "allow"
unused_variables = "allow"