weirdnet-push 0.1.0

Weirdnet push wake-up: fixed-size wake payloads sealed to the device, opaque wake handles with rotation and revocation, a client, and a self-hostable server delivering through APNs, FCM and Weirdnet relays.
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.99"
name = "weirdnet-push"
version = "0.1.0"
authors = ["Michael Christenson II <m3talsmith@gmail.com>"]
build = false
include = [
    "src/**",
    "README.md",
    "LICENSE",
    "CHANGELOG.md",
    "SECURITY.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Weirdnet push wake-up: fixed-size wake payloads sealed to the device, opaque wake handles with rotation and revocation, a client, and a self-hostable server delivering through APNs, FCM and Weirdnet relays."
readme = "README.md"
keywords = [
    "push",
    "apns",
    "fcm",
    "wake",
    "weirdnet",
]
categories = [
    "network-programming",
    "cryptography",
]
license = "BSD-3-Clause"
repository = "https://github.com/WeirdBrains/weirdnet-push"

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

[features]
client = ["dep:reqwest"]
default = [
    "client",
    "relay-wake",
]
relay-wake = [
    "dep:futures-util",
    "futures-util/io",
]
server = [
    "client",
    "dep:tokio",
    "dep:tracing",
    "dep:axum",
    "dep:jsonwebtoken",
    "dep:toml",
    "dep:clap",
    "dep:tracing-subscriber",
    "dep:futures-util",
    "tokio/signal",
]

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

[[bin]]
name = "weirdnet-push"
path = "src/bin/weirdnet-push.rs"
required-features = ["server"]

[dependencies.axum]
version = "0.8"
features = [
    "tokio",
    "http1",
    "http2",
    "json",
]
optional = true
default-features = false

[dependencies.base64]
version = "0.22"

[dependencies.chacha20poly1305]
version = "0.10"

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.futures-util]
version = "0.3"
features = ["std"]
optional = true
default-features = false

[dependencies.hex]
version = "0.4"

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

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

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.subtle]
version = "2"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "net",
    "fs",
    "io-util",
]
optional = true

[dependencies.toml]
version = "0.9"
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

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

[dependencies.weirdnet-keys]
version = "0.1.0"
default-features = false

[dependencies.zeroize]
version = "1"

[dev-dependencies.hex]
version = "0.4"

[dev-dependencies.p256]
version = "0.13"
features = [
    "pkcs8",
    "pem",
]

[dev-dependencies.rand_core]
version = "0.6"
features = ["getrandom"]

[dev-dependencies.rsa]
version = "0.9"
features = ["pem"]

[dev-dependencies.tempfile]
version = "3"

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

[profile.dev.package.num-bigint-dig]
opt-level = 3

[profile.dev.package.rsa]
opt-level = 3