Skip to content
Jingzhe

Contributing

Include the expected behavior, actual behavior, reproduction steps, Rust version, and enabled features. For Telegram API issues, include the method being called.

Remove bot tokens, webhook secrets, and proxy credentials from logs and configuration before posting.

Directory Package Responsibility
crates/jingzhe jingzhe API requests, models, client, routing, and runtime
crates/http jingzhe-http HTTP backends, TLS, proxies, multipart, and streaming responses
crates/macros jingzhe-macros command, event, and CallbackData procedural macros
website jingzhe-website Astro + Starlight documentation site

From the repository root:

Terminal
cargo fmt --all -- --check
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo test --workspace --all-features
cargo test -p jingzhe --no-default-features --features ureq,rustls-tls,webhook
cargo test -p jingzhe --no-default-features --features reqwest,native-tls
cargo test --workspace --no-default-features
RUSTDOCFLAGS='-D warnings' cargo doc --workspace --all-features --no-deps
Terminal
cd website
bun install
bun run check
bun run build

Local preview:

Terminal
bun run dev

Describe the problem, behavior changes, and validation results. If a change depends on a real Telegram account’s permissions, limits, or client behavior, state what was verified against a live account.

Command, event, and callback macro compile cases are covered by trybuild; protocol changes need corresponding regression tests. Update the documentation in website/ when public APIs, configuration, or examples change.