liveactivity 1.0.0

Live Activities from Rust on iOS and Android: one interface over ActivityKit (Lock Screen, Dynamic Island) and Android Live Updates, with server pushes through APNs and FCM
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.90"
name = "liveactivity"
version = "1.0.0"
authors = ["1eedaegon"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Live Activities from Rust on iOS and Android: one interface over ActivityKit (Lock Screen, Dynamic Island) and Android Live Updates, with server pushes through APNs and FCM"
documentation = "https://docs.rs/liveactivity"
readme = "README.md"
keywords = [
    "live-activity",
    "dynamic-island",
    "live-updates",
    "ios",
    "android",
]
categories = [
    "api-bindings",
    "gui",
    "os",
    "os::android-apis",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/1eedaegon/liveactivity-rs"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
android-push = [
    "app",
    "liveupdate/push",
    "dep:jni",
]
app = []
default = ["app"]
server = [
    "dep:jsonwebtoken",
    "dep:reqwest",
]
testkit = ["app"]

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

[[example]]
name = "adapter"
path = "examples/adapter.rs"
required-features = ["testkit"]

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

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

[[example]]
name = "usage"
path = "examples/usage.rs"
required-features = ["testkit"]

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

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

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

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

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

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

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

[dependencies.activitykit]
version = "1.0.0"

[dependencies.jsonwebtoken]
version = "12.0.0"
features = [
    "aws_lc_rs",
    "use_pem",
]
optional = true
default-features = false

[dependencies.liveupdate]
version = "0.12.3"
features = ["android"]

[dependencies.reqwest]
version = "0.13.5"
features = [
    "http2",
    "rustls",
]
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1"
features = ["float_roundtrip"]

[dependencies.thiserror]
version = "2"

[dev-dependencies.aws-lc-rs]
version = "1.19.0"

[dev-dependencies.axum]
version = "0.8.9"

[dev-dependencies.base64]
version = "0.23.1"

[dev-dependencies.futures-executor]
version = "0.3"

[dev-dependencies.jsonwebtoken]
version = "12.0.0"
features = [
    "aws_lc_rs",
    "use_pem",
]
default-features = false

[dev-dependencies.tokio]
version = "1.54.1"
features = [
    "macros",
    "net",
    "rt-multi-thread",
]

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

[target.'cfg(target_os = "android")'.dependencies.jni]
version = "0.22.4"
optional = true
default-features = false

[lints.clippy]
all = "warn"

[lints.rust]
missing_docs = "warn"
unsafe_op_in_unsafe_fn = "deny"