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.89"
name = "pubky"
version = "0.8.0"
authors = [
    "SeverinAlexB <severin@synonym.to>",
    "SHAcollision <shacollision@synonym.to>",
    "Nuh <nuh@nuh.dev>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pubky SDK"
homepage = "https://github.com/pubky/pubky-core"
readme = "README.md"
keywords = [
    "web",
    "dht",
    "dns",
    "decentralized",
    "identity",
]
categories = [
    "network-programming",
    "cryptography",
    "web-programming",
    "authentication",
]
license = "MIT"
repository = "https://github.com/pubky/pubky-core"
resolver = "2"

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

[features]
default = []
json = [
    "dep:serde",
    "reqwest/json",
]

[lib]
name = "pubky"
crate-type = ["rlib"]
path = "src/lib.rs"

[dependencies.base64]
version = "0.22.1"

[dependencies.cookie]
version = "0.18.1"

[dependencies.eventsource-stream]
version = "0.2.3"

[dependencies.flume]
version = "0.11.1"
features = ["async"]
default-features = false

[dependencies.futures-util]
version = "0.3.31"

[dependencies.httpdate]
version = "1"

[dependencies.pkarr]
version = "6"
features = ["full"]
default-features = false

[dependencies.pubky-common]
version = "0.8.0"

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

[dependencies.thiserror]
version = "2.0.18"

[dependencies.url]
version = "2.5.8"

[dependencies.web-time]
version = "1.1.0"

[dev-dependencies.http-relay]
version = "0.7.0"
features = [
    "server",
    "link-compat",
]

[dev-dependencies.httpmock]
version = "0.7"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest]
version = "0.13.2"
features = [
    "cookies",
    "rustls",
    "json",
    "stream",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.49.0"
features = ["full"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tracing]
version = "0.1.44"

[target.'cfg(target_arch = "wasm32")'.dependencies.futures-lite]
version = "2.6.0"
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.log]
version = "0.4.29"

[target.'cfg(target_arch = "wasm32")'.dependencies.reqwest]
version = "0.13.2"
features = ["json"]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4.50"

[lints.clippy]
allow_attributes_without_reason = "warn"
as_pointer_underscore = "warn"
assertions_on_result_states = "warn"
clone_on_ref_ptr = "warn"
deref_by_slicing = "warn"
disallowed_script_idents = "warn"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
fn_to_numeric_cast_any = "warn"
if_then_some_else_none = "warn"
implicit_clone = "warn"
map_err_ignore = "warn"
redundant_type_annotations = "warn"
renamed_function_params = "warn"
semicolon_outside_block = "warn"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unneeded_field_pattern = "warn"
unused_result_ok = "warn"

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

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

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

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

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

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

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

[lints.rust]
ambiguous_negative_literals = "warn"
missing_debug_implementations = "warn"
redundant_imports = "warn"
redundant_lifetimes = "warn"
trivial_numeric_casts = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_lifetimes = "warn"