docs.rs failed to build whatsmeow-0.1.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
whatsmeow-0.1.1
whatsmeow
Idiomatic, thread-safe Rust bindings for WhatsApp via WhatsMeow.
Features
- ✨ Fluent builder API with async callbacks
- 📡 Dual event model: Callbacks or async streams
- 📸 Media support: Send images with auto MIME detection
- 🏷️ Custom device name in WhatsApp's "Linked Devices"
- 📊 Memory tracking for FFI debugging
- 🔒 Thread-safe client sharing
- 📦 Zero manual setup - Go bridge compiles automatically
Quick Start
use ;
async
Sending Images
use ;
// Auto-detect MIME type from file signature
client.send?;
// With caption
client.send?;
MediaSource Options
| Source | Usage |
|---|---|
MediaSource::file("path.jpg") |
Load from local file |
MediaSource::bytes(vec![...]) |
Raw bytes |
MediaSource::base64("...") |
Base64 encoded |
MediaSource::url("https://...") |
Remote URL (future) |
Event Types
| Event | Description |
|---|---|
Qr |
QR code for scanning |
Connected |
Successfully connected |
Disconnected |
Connection lost |
Message |
Incoming message |
Receipt |
Delivery/read receipt |
Presence |
Online/offline status |
License
MIT