dnsm 0.2.0

Toolkit for covert data exfiltration using DNS
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "dnsm"
version = "0.2.0"
authors = ["Raphael <kontor@dnsm.re>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Toolkit for covert data exfiltration using DNS"
homepage = "https://dnsm.re"
readme = "README.md"
keywords = [
    "gdpr",
    "itsec",
    "security",
    "exfiltration",
    "telemetry",
]
license = "MIT"
repository = "https://github.com/k-o-n-t-o-r/dnsm"

[features]
default = [
    "native-cli",
    "sqlite",
]
native-cli = [
    "dep:clap",
    "dep:console",
    "dep:fastrand",
]
python = ["dep:pyo3"]
sqlite = ["dep:rusqlite"]
ws-server = [
    "dep:tokio",
    "dep:tokio-stream",
    "dep:warp",
    "dep:futures",
    "dep:base64",
    "dep:serde_json",
    "dep:serde",
]

[lib]
name = "dnsm"
crate-type = [
    "rlib",
    "cdylib",
]
path = "src/lib.rs"

[[bin]]
name = "dnsm-client"
path = "src/bin/dnsm_client.rs"
required-features = ["native-cli"]

[[bin]]
name = "dnsm-server"
path = "src/bin/dnsm_server/main.rs"
required-features = [
    "native-cli",
    "sqlite",
]

[[bin]]
name = "dnsm-ws"
path = "src/bin/dnsm_ws.rs"
required-features = [
    "native-cli",
    "sqlite",
    "ws-server",
]

[[test]]
name = "dig_integration"
path = "tests/dig_integration.rs"

[[test]]
name = "dig_mailbox_tcp"
path = "tests/dig_mailbox_tcp.rs"

[[test]]
name = "dig_mailbox_txt"
path = "tests/dig_mailbox_txt.rs"

[[test]]
name = "ping_e2e"
path = "tests/ping_e2e.rs"

[[test]]
name = "tunnel_e2e"
path = "tests/tunnel_e2e.rs"

[[test]]
name = "wasm_build"
path = "tests/wasm_build.rs"

[[test]]
name = "wasm_compat"
path = "tests/wasm_compat.rs"

[dependencies.base64]
version = "0.22.1"
optional = true

[dependencies.blake3]
version = "1.8.5"

[dependencies.clap]
version = "4.6.1"
features = [
    "derive",
    "wrap_help",
]
optional = true

[dependencies.console]
version = "0.16.3"
optional = true

[dependencies.fastrand]
version = "2.4.1"
optional = true

[dependencies.futures]
version = "0.3.32"
optional = true
default-features = false

[dependencies.lzma-rust2]
version = "0.16.3"

[dependencies.pyo3]
version = "0.28"
features = ["extension-module"]
optional = true

[dependencies.rusqlite]
version = "0.39.0"
features = ["bundled"]
optional = true

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0.150"
optional = true

[dependencies.tokio]
version = "1.52.3"
features = [
    "macros",
    "sync",
    "rt-multi-thread",
]
optional = true

[dependencies.tokio-stream]
version = "0.1.18"
optional = true

[dependencies.warp]
version = "0.4.2"
features = [
    "websocket",
    "server",
]
optional = true

[dev-dependencies.fastrand]
version = "2.4.1"

[dev-dependencies.rusqlite]
version = "0.39.0"
features = ["bundled"]

[target.'cfg(target_arch = "wasm32")'.dependencies.blake3]
version = "1.8.5"
features = ["wasm32_simd"]

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3.98"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2.121"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3.68"

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = true