# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.89"
name = "feishu-sdk"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Feishu/Lark SDK for Rust"
readme = "README.md"
keywords = [
    "feishu",
    "lark",
    "sdk",
    "api",
]
categories = [
    "api-bindings",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/palpo-im/feishu-sdk"

[features]
default = []
server = [
    "salvo",
    "dep:bytes",
]
websocket = [
    "tokio-tungstenite",
    "futures-util",
    "dep:bytes",
]

[lib]
name = "feishu_sdk"
path = "src/lib.rs"

[[example]]
name = "approval_v4"
path = "examples/approval_v4.rs"

[[example]]
name = "bitable_v1"
path = "examples/bitable_v1.rs"

[[example]]
name = "calendar_v4"
path = "examples/calendar_v4.rs"

[[example]]
name = "call_endpoint"
path = "examples/call_endpoint.rs"

[[example]]
name = "card_handler"
path = "examples/card_handler.rs"
required-features = ["server"]

[[example]]
name = "docx_v1"
path = "examples/docx_v1.rs"

[[example]]
name = "drive_v1_file"
path = "examples/drive_v1_file.rs"

[[example]]
name = "event_server"
path = "examples/event_server.rs"
required-features = ["server"]

[[example]]
name = "full_app"
path = "examples/full_app.rs"

[[example]]
name = "get_token"
path = "examples/get_token.rs"

[[example]]
name = "get_user"
path = "examples/get_user.rs"

[[example]]
name = "im_v1_message"
path = "examples/im_v1_message.rs"

[[example]]
name = "send_message"
path = "examples/send_message.rs"

[[example]]
name = "sheets_v3"
path = "examples/sheets_v3.rs"

[[bench]]
name = "performance"
path = "benches/performance.rs"
harness = false

[dependencies.aes]
version = "0.8"

[dependencies.async-trait]
version = "0.1"

[dependencies.base64]
version = "0.22"

[dependencies.bytes]
version = "1"
optional = true

[dependencies.cbc]
version = "0.1"

[dependencies.chrono]
version = "0.4"

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.reqwest]
version = "0.13.2"
features = [
    "json",
    "rustls",
]
default-features = false

[dependencies.salvo]
version = "0.89"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha1]
version = "0.10"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "time",
    "macros",
    "rt-multi-thread",
    "net",
]

[dependencies.tokio-tungstenite]
version = "0.28.0"
features = ["rustls-tls-webpki-roots"]
optional = true

[dependencies.urlencoding]
version = "2"

[dev-dependencies.criterion]
version = "0.8"
features = ["async_tokio"]

[dev-dependencies.tokio-test]
version = "0.4"
