telegram-webapp-sdk 0.11.2

Telegram WebApp SDK for Rust
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 = "2024"
rust-version = "1.96"
name = "telegram-webapp-sdk"
version = "0.11.2"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Telegram WebApp SDK for Rust"
documentation = "https://docs.rs/telegram-webapp-sdk"
readme = "README.md"
keywords = [
    "telegram",
    "webapp",
    "wasm",
    "sdk",
]
categories = [
    "web-programming",
    "wasm",
]
license = "MIT"
repository = "https://github.com/RAprogramm/telegram-webapp-sdk"

[package.metadata.docs.rs]
all-features = true

[features]
default = []
full = [
    "macros",
    "yew",
    "leptos",
    "mock",
]
leptos = [
    "dep:leptos",
    "dep:send_wrapper",
]
macros = ["dep:inventory"]
mock = ["dep:urlencoding"]
yew = ["dep:yew"]

[lib]
name = "telegram_webapp_sdk"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

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

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

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

[dependencies.inventory]
version = "0.3"
optional = true

[dependencies.js-sys]
version = "0.3"

[dependencies.leptos]
version = "0.8"
features = ["csr"]
optional = true
default-features = false

[dependencies.masterror]
version = "0.29"

[dependencies.once_cell]
version = "1"

[dependencies.percent-encoding]
version = "2"

[dependencies.send_wrapper]
version = "0.6"
optional = true

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

[dependencies.serde-wasm-bindgen]
version = "0.6"

[dependencies.serde_json]
version = "1"

[dependencies.serde_urlencoded]
version = "0.7"

[dependencies.toml]
version = "1"

[dependencies.urlencoding]
version = "2"
optional = true

[dependencies.wasm-bindgen]
version = "0.2"

[dependencies.wasm-bindgen-futures]
version = "0.4"

[dependencies.web-sys]
version = "0.3"
features = [
    "Event",
    "Window",
    "Document",
    "Element",
    "HtmlElement",
    "HtmlImageElement",
    "Node",
    "EventTarget",
    "MouseEvent",
    "console",
    "Location",
    "CssStyleDeclaration",
]

[dependencies.yew]
version = "0.23"
features = ["csr"]
optional = true
default-features = false

[dev-dependencies.wasm-bindgen-futures]
version = "0.4"

[dev-dependencies.wasm-bindgen-test]
version = "0.3"

[build-dependencies.version_check]
version = "0.9"