[package]
edition = "2024"
rust-version = "1.89"
name = "djs-model"
version = "0.1.0-alpha.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Discord API v10 types — users, guilds, channels, messages, interactions and gateway events."
homepage = "https://kotoanidev.github.io/djs-rs/"
readme = "README.md"
keywords = [
"discord",
"discord-bot",
"discord-api",
"discordjs",
"async",
]
categories = [
"api-bindings",
"asynchronous",
"network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/kotoanidev/djs-rs"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[lib]
name = "djs_model"
path = "src/lib.rs"
[[test]]
name = "application"
path = "tests/application.rs"
[[test]]
name = "application_command"
path = "tests/application_command.rs"
[[test]]
name = "audit_log"
path = "tests/audit_log.rs"
[[test]]
name = "channel"
path = "tests/channel.rs"
[[test]]
name = "component"
path = "tests/component.rs"
[[test]]
name = "flags"
path = "tests/flags.rs"
[[test]]
name = "gateway_dispatch"
path = "tests/gateway_dispatch.rs"
[[test]]
name = "gateway_events"
path = "tests/gateway_events.rs"
[[test]]
name = "guild"
path = "tests/guild.rs"
[[test]]
name = "interaction"
path = "tests/interaction.rs"
[[test]]
name = "interaction_getters"
path = "tests/interaction_getters.rs"
[[test]]
name = "invite_webhook"
path = "tests/invite_webhook.rs"
[[test]]
name = "message"
path = "tests/message.rs"
[[test]]
name = "message_bodies"
path = "tests/message_bodies.rs"
[[test]]
name = "oauth2"
path = "tests/oauth2.rs"
[[test]]
name = "permissions"
path = "tests/permissions.rs"
[[test]]
name = "soundboard_lobby"
path = "tests/soundboard_lobby.rs"
[[test]]
name = "stress"
path = "tests/stress.rs"
[[test]]
name = "user"
path = "tests/user.rs"
[[test]]
name = "voice"
path = "tests/voice.rs"
[[test]]
name = "webhook_event"
path = "tests/webhook_event.rs"
[[bench]]
name = "decode"
path = "benches/decode.rs"
harness = false
[[bench]]
name = "encode"
path = "benches/encode.rs"
harness = false
[[bench]]
name = "interaction"
path = "benches/interaction.rs"
harness = false
[dependencies.bitflags]
version = "2.13"
[dependencies.bytes]
version = "1.12"
[dependencies.compact_str]
version = "0.10"
features = [
"std",
"serde",
]
default-features = false
[dependencies.serde]
version = "1.0.228"
features = [
"std",
"derive",
]
default-features = false
[dev-dependencies.divan]
version = "0.1.21"
[dev-dependencies.serde_json]
version = "1.0.154"
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.web-time]
version = "1.1.0"
[lints.clippy]
module_name_repetitions = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "deny"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(docsrs)"]
[lints.rustdoc]
bare_urls = "warn"
broken_intra_doc_links = "deny"
missing_crate_level_docs = "warn"
private_intra_doc_links = "warn"