openlark-core 0.15.0

OpenLark 核心基础设施 crate - HTTP 客户端、错误处理、认证和核心工具
Documentation
# 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 = "openlark-core"
version = "0.15.0"
authors = ["ZoOL <zhooul@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OpenLark 核心基础设施 crate - HTTP 客户端、错误处理、认证和核心工具"
homepage = "https://github.com/foxzool/openlark"
readme = false
keywords = [
    "feishu",
    "lark",
    "api",
    "sdk",
    "core",
]
categories = [
    "api-bindings",
    "web-programming",
    "development-tools",
]
license = "Apache-2.0"
repository = "https://github.com/foxzool/openlark"

[features]
default = ["testing"]
otel = [
    "tracing-init",
    "opentelemetry",
    "opentelemetry_sdk",
    "opentelemetry-otlp",
    "tracing-opentelemetry",
]
testing = ["tracing-init"]
tracing-init = ["tracing-subscriber"]
websocket = [
    "tokio-tungstenite",
    "prost",
    "openlark-protocol",
    "lark-websocket-protobuf",
]

[lib]
name = "openlark_core"
path = "src/lib.rs"
doctest = false

[[test]]
name = "error_context_tests"
path = "tests/error_context_tests.rs"

[[test]]
name = "mod"
path = "tests/mod.rs"

[dependencies.base64]
version = "0.22.1"

[dependencies.chrono]
version = "0.4.38"
features = ["serde"]

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

[dependencies.hmac]
version = "0.12.1"

[dependencies.http]
version = "1.0"

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

[dependencies.num_cpus]
version = "1.16"

[dependencies.openlark-protocol]
version = "0.15.0"
optional = true
default-features = false

[dependencies.opentelemetry]
version = "0.24"
optional = true

[dependencies.opentelemetry-otlp]
version = "0.17"
optional = true

[dependencies.opentelemetry_sdk]
version = "0.24"
features = ["rt-tokio"]
optional = true

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

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

[dependencies.rand]
version = "0.8"

[dependencies.regex]
version = "1.10"

[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_with]
version = "3"

[dependencies.sha2]
version = "0.10.8"

[dependencies.thiserror]
version = "2.0"

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

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

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.25"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
]
optional = true

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

[dependencies.urlencoding]
version = "2.1"

[dependencies.uuid]
version = "1.6"
features = [
    "v4",
    "serde",
]

[dev-dependencies.rstest]
version = "0.19"

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
]

[dev-dependencies.tracing-test]
version = "0.2"

[dev-dependencies.wiremock]
version = "0.6"

[lints.clippy]
module_name_repetitions = "allow"
multiple_crate_versions = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"