Skip to main content

Crate wacore

Crate wacore 

Source

Re-exports§

pub use wacore_appstate as appstate;
pub use chrono;
pub use wacore_noise as noise;
pub use wacore_libsignal as libsignal;

Modules§

adv
ADV (Advanced Device Verification) key index utilities.
appstate_sync
bot_message
Meta AI / fbid bot <enc type="msmsg"> decryption.
client
client_profile
Identity presented in the noise-handshake ClientPayload.UserAgent. Independent of DeviceProps. Default is ClientProfile::web.
comment
Encrypted channel comment (CAG) encryption.
companion_reg
companion_platform_id + companion_platform_display emission. Encoding only.
crypto
Runtime-agnostic cryptographic primitives shared across protocol features.
download
event
Event response encryption.
framing
handshake
history_sync
ib
IB stanza types for unified session telemetry.
iq
media_retry
Media retry protocol: crypto + node building for requesting media reupload.
message_edit
E2E-encrypted message edit envelope (secret_encrypted_message with secret_enc_type = MESSAGE_EDIT).
message_processing
Pure functions for message processing logic.
messages
msg_secret
Retention policy for the per-message messageSecret store.
net
pair
pair_code
Pair code authentication for phone number linking.
poll
Poll vote encryption/decryption.
prekeys
proto_helpers
protocol
reaction
Encrypted reaction (CAG) encryption.
reporting_token
Reporting Token Implementation for WhatsApp
request
runtime
secret_enc_addon
Secret-encrypted addon envelope (HKDF-SHA256 + AES-256-GCM).
send
session
Session establishment constants.
shortcake
SHORTCAKE_PASSKEY companion-linking — platform-independent crypto + protobuf.
stanza
Stanza types for WhatsApp protocol notifications.
stats
Per-session resource accounting: wire I/O counters, retained-memory estimation and a runtime-agnostic task instrumentation hook.
sticker_pack
Sticker pack creation helpers.
store
sync_marker
Conditional Send + Sync bound.
telemetry
Optional metrics emission via the metrics facade.
time
Pluggable time providers.
types
upload
usync
version
webp
WebP format utilities.
xml

Macros§

define_empty_node
Macro for defining an empty protocol node (tag only, no attributes or children).
define_simple_node
Macro for defining simple protocol nodes with only attributes (no children).
define_validated_string
Macro for defining validated string newtypes with a maximum length constraint.

Derive Macros§

EmptyNode
Derive macro for empty protocol nodes (tag only, no attributes).
ProtocolNode
Derive macro for implementing ProtocolNode on structs with attributes.
WireEnum