vector_sdk 0.6.0

Ergonomic Rust SDK for building Vector bots and clients on top of vector-core.
Documentation
[package]
name = "vector_sdk"
version = "0.6.0"
edition = "2021"
description = "Ergonomic Rust SDK for building Vector bots and clients on top of vector-core."
license = "MIT"
keywords = ["nostr", "sdk", "bot", "vector", "messaging"]
categories = ["network-programming", "asynchronous", "api-bindings"]
rust-version = "1.75"
repository = "https://github.com/VectorPrivacy/Vector"
homepage = "https://vectorapp.io"
documentation = "https://docs.rs/vector-sdk"
readme = "README.md"

[dependencies]
# The single source of truth — all protocol logic lives here. Tor stays opt-in
# (vector-core's `tor` feature is off by default) so the SDK's dep tree is light.
# `version` is set so the crate is publishable once vector-core ships to crates.io;
# until then the `path` wins for local builds.
vector-core = { path = "../vector-core", version = "0.5.0", default-features = false }
# Exact-pinned to match vector-core — the nostr alphas are not inter-compatible.
nostr-sdk = "=0.45.0-alpha.5"
tokio = { version = "1.49", features = ["rt", "rt-multi-thread", "macros", "time"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"

[features]
default = []
# Pass-through: build vector-core with embedded Tor (Arti). Off by default.
tor = ["vector-core/tor"]

[[example]]
name = "echo_bot"

[[example]]
name = "file_bot"

[[example]]
name = "slash_command_bot"

[[example]]
name = "ai_bot"

[[example]]
name = "moderation_bot"

[[example]]
name = "whitelist_bot"

[[example]]
name = "save_files_bot"