# 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 = "2021"
name = "open-lark"
version = "0.3.2"
authors = ["ZoOL <zhooul@gmail.com>"]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lark/Feishu Open API SDK(WIP)"
homepage = "https://github.com/foxzool/open-lark"
documentation = "https://docs.rs/open-lark"
readme = "README.md"
keywords = [
    "sdk",
    "feishu",
    "lark",
    "rest",
]
categories = ["api-bindings"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/foxzool/open-lark"

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

[[example]]
name = "app_table_field_list"
path = "examples/api/bitable/v1/app_table_field/list.rs"

[[example]]
name = "app_table_record_search"
path = "examples/api/bitable/v1/app_table_record/search.rs"

[[example]]
name = "card_collapsible"
path = "examples/card/collapsible.rs"

[[example]]
name = "card_column_set"
path = "examples/card/column_set.rs"

[[example]]
name = "card_form_set"
path = "examples/card/form.rs"

[[example]]
name = "card_interactive"
path = "examples/card/interactive.rs"

[[example]]
name = "create_folder"
path = "examples/api/drive/v2/explorer/create_folder.rs"

[[example]]
name = "create_message"
path = "examples/api/im/v1/create_message.rs"

[[example]]
name = "create_spreadsheet"
path = "examples/api/sheets/v3/spreadsheet/create.rs"

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

[[example]]
name = "file_download"
path = "examples/api/drive/v1/files/download.rs"

[[example]]
name = "file_upload_all"
path = "examples/api/drive/v1/files/upload_all.rs"

[[example]]
name = "get_bitable"
path = "examples/api/bitable/v1/app/get.rs"

[[example]]
name = "get_permission"
path = "examples/api/drive/v2/permission/get.rs"

[[example]]
name = "get_spreadsheet"
path = "examples/api/sheets/v3/spreadsheet/get.rs"

[[example]]
name = "get_spreadsheet_sheet"
path = "examples/api/sheets/v3/spreadsheet-sheet/get.rs"

[[example]]
name = "list_chat"
path = "examples/api/im/v1/list_chat.rs"

[[example]]
name = "list_folder"
path = "examples/api/drive/v2/explorer/list_folder.rs"

[[example]]
name = "list_message"
path = "examples/api/im/v1/list_message.rs"

[[example]]
name = "operate_spreadsheet_sheet"
path = "examples/api/sheets/v2/spreadsheet-sheet/operate.rs"

[[example]]
name = "patch_permission"
path = "examples/api/drive/v2/permission/patch.rs"

[[example]]
name = "patch_spreadsheet"
path = "examples/api/sheets/v3/spreadsheet/patch.rs"

[[example]]
name = "query_spreadsheet_sheet"
path = "examples/api/sheets/v3/spreadsheet-sheet/query.rs"

[[example]]
name = "root_meta"
path = "examples/api/drive/v2/explorer/meta.rs"

[[example]]
name = "search_user"
path = "examples/api/search/v1/user.rs"

[[example]]
name = "sheet-add-rows-or-columns"
path = "examples/api/sheets/v2/spreadsheet/add_row_or_columns.rs"

[[example]]
name = "sheet-append_data"
path = "examples/api/sheets/v2/data-operation/append_data.rs"

[[example]]
name = "sheet-batch_set_cell_style"
path = "examples/api/sheets/v2/data-operation/batch_set_cell_style.rs"

[[example]]
name = "sheet-delete-rows-or-columns"
path = "examples/api/sheets/v2/spreadsheet/delete_row_or_columns.rs"

[[example]]
name = "sheet-find_cells"
path = "examples/api/sheets/v3/data_operation/find_cells.rs"

[[example]]
name = "sheet-insert-rows-or-columns"
path = "examples/api/sheets/v2/spreadsheet/insert_row_or_columns.rs"

[[example]]
name = "sheet-merge_cells"
path = "examples/api/sheets/v2/data-operation/merge_cells.rs"

[[example]]
name = "sheet-prepend_data"
path = "examples/api/sheets/v2/data-operation/prepend_data.rs"

[[example]]
name = "sheet-reading_a_single_range"
path = "examples/api/sheets/v2/data-operation/reading_a_single_range.rs"

[[example]]
name = "sheet-reading_multi_ranges"
path = "examples/api/sheets/v2/data-operation/reading_multi_ranges.rs"

[[example]]
name = "sheet-relace_cells"
path = "examples/api/sheets/v3/data_operation/replace_cells.rs"

[[example]]
name = "sheet-set_cell_style"
path = "examples/api/sheets/v2/data-operation/set_cell_style.rs"

[[example]]
name = "sheet-split_cells"
path = "examples/api/sheets/v2/data-operation/split_cells.rs"

[[example]]
name = "sheet-update-rows-or-columns"
path = "examples/api/sheets/v2/spreadsheet/update_row_or_columns.rs"

[[example]]
name = "sheet-write_a_single_range"
path = "examples/api/sheets/v2/data-operation/write_a_single_range.rs"

[[example]]
name = "sheet-write_image"
path = "examples/api/sheets/v2/data-operation/write_image.rs"

[[example]]
name = "sheet-write_multi_ranges"
path = "examples/api/sheets/v2/data-operation/write_multi_ranges.rs"

[[example]]
name = "sheet_move_dimension"
path = "examples/api/sheets/v3/spreadsheet-sheet/move_dimension.rs"

[[example]]
name = "spreadsheet-sheet-filter-create"
path = "examples/api/sheets/v3/spreadsheet-sheet-filter/create.rs"

[[example]]
name = "spreadsheet-sheet-filter-delete"
path = "examples/api/sheets/v3/spreadsheet-sheet-filter/delete.rs"

[[example]]
name = "spreadsheet-sheet-filter-get"
path = "examples/api/sheets/v3/spreadsheet-sheet-filter/get.rs"

[[example]]
name = "spreadsheet-sheet-filter-update"
path = "examples/api/sheets/v3/spreadsheet-sheet-filter/update.rs"

[[example]]
name = "update_spreadsheet_sheet_properties"
path = "examples/api/sheets/v2/spreadsheet-sheet/update.rs"

[[example]]
name = "ws_client"
path = "examples/ws_client.rs"
required-features = ["websocket"]

[dependencies.anyhow]
version = "1.0.86"

[dependencies.async-recursion]
version = "1.1.1"

[dependencies.base64]
version = "0.22.1"

[dependencies.chrono]
version = "0.4.38"

[dependencies.futures-channel]
version = "0.3.30"

[dependencies.futures-util]
version = "0.3.30"
features = [
    "sink",
    "std",
]
default-features = false

[dependencies.hmac]
version = "0.12.1"

[dependencies.kanal]
version = "0.1.0-pre8"

[dependencies.lark-websocket-protobuf]
version = "0.1.1"
optional = true

[dependencies.lazy_static]
version = "1.4.0"

[dependencies.log]
version = "0.4.21"

[dependencies.prost]
version = "0.13.1"
optional = true

[dependencies.quick_cache]
version = "0.6.3"
features = []

[dependencies.rand]
version = "0.9.0-alpha.1"

[dependencies.reqwest]
version = "0.12.7"
features = [
    "json",
    "multipart",
    "rustls-tls",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_repr]
version = "0.1.19"

[dependencies.sha2]
version = "0.10.8"

[dependencies.simd-adler32]
version = "0.3.7"

[dependencies.strum]
version = "0.26.2"

[dependencies.strum_macros]
version = "0.26.4"

[dependencies.thiserror]
version = "1.0.61"

[dependencies.tokio]
version = "1.38"
features = [
    "rt",
    "rt-multi-thread",
    "macros",
]

[dependencies.tokio-stream]
version = "0.1.15"

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

[dependencies.url]
version = "2.5.0"
features = ["serde"]

[dev-dependencies.dotenvy]
version = "0.15.7"

[dev-dependencies.env_logger]
version = "0.11.3"

[dev-dependencies.uuid]
version = "1.8.0"
features = ["v4"]

[features]
websocket = [
    "tokio-tungstenite",
    "prost",
    "lark-websocket-protobuf",
]