Skip to main content

Crate azathoth_utils

Crate azathoth_utils 

Source
Expand description

§azathoth_utils

A small collection of utilities shared across the AzathothC2 ecosystem.

§Crate goals

  • no_std by default (uses alloc where needed).
  • Opt-in modules via Cargo features to keep binary size and surface area small.

§Cargo features

  • hasher – Identifier/symbol hashing helpers.
  • formatter – Lightweight formatting helpers for constrained environments.
  • psearch – Extendable pattern search utilities over byte slices.
  • codec – Minimal data encoding/decoding helpers.

Each feature gates its corresponding module. Modules are excluded from the build unless their feature is enabled.

§Examples

Computing a CRC32 checksum:

use azathoth_utils::crc32;

let c = crc32(b"deadbeef");
assert_eq!(c, 0x52_8f_6f_ca); // value will remain stable given the same table

Re-exports§

pub use formatter::format_str_inner;

Modules§

codec
Minimal data encoding/decoding helpers.
errors
Error types used by azathoth utilities.
formatter
Lightweight formatting helpers.
hasher
Identifier and symbol hashing helpers.
psearch
Extendable pattern search utilities over byte slices.

Macros§

format_str

Functions§

crc32
Compute a CRC32 checksum over data.