# 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 = "pubnub" version = "0.6.0" authors = ["PubNub "] build = "build.rs" description = "PubNub SDK for Rust" homepage = "https://www.pubnub.com" documentation = "https://docs.rs/pubnub/latest/pubnub" readme = "README.md" categories = [ "api-bindings", "asynchronous", "network-programming", "wasm", ] license-file = "LICENSE" repository = "https://github.com/pubnub/rust" [package.metadata.docs.rs] all-features = true [[example]] name = "crypto" required-features = [ "default", "crypto", ] [[example]] name = "publish" required-features = ["default"] [[example]] name = "publish_blocking" required-features = [ "default", "blocking", ] [[example]] name = "pam" required-features = [ "default", "parse_token", "access", ] [[example]] name = "pam_blocking" required-features = [ "default", "blocking", "access", ] [[example]] name = "custom_origin" required-features = ["default"] [[example]] name = "subscribe" required-features = [ "default", "subscribe", ] [[example]] name = "subscribe_with_presence_state" required-features = [ "default", "subscribe", "presence", ] [[example]] name = "subscribe_raw" required-features = [ "default", "subscribe", ] [[example]] name = "subscribe_raw_blocking" required-features = [ "default", "subscribe", ] [[example]] name = "here_now" required-features = [ "default", "presence", ] [[example]] name = "here_now_blocking" required-features = [ "default", "blocking", "presence", ] [[example]] name = "where_now" required-features = [ "default", "presence", ] [[example]] name = "where_now_blocking" required-features = [ "default", "blocking", "presence", ] [[example]] name = "presence_state" required-features = [ "default", "presence", ] [[example]] name = "presence_state_blocking" required-features = [ "default", "blocking", "presence", ] [[test]] name = "contract_test" harness = false required-features = ["contract_test"] [dependencies.aes] version = "0.8.2" optional = true [dependencies.async-channel] version = "1.8" optional = true [dependencies.async-trait] version = "0.1" [dependencies.base64] version = "0.21" features = ["alloc"] default-features = false [dependencies.bytes] version = "1.4" optional = true default-features = false [dependencies.cbc] version = "0.1.2" optional = true [dependencies.ciborium] version = "0.2.1" optional = true default-features = false [dependencies.derive_builder] version = "0.12" default-features = false [dependencies.futures] version = "0.3.28" optional = true default-features = false [dependencies.getrandom] version = "0.2" optional = true [dependencies.hashbrown] version = "0.14.0" [dependencies.hmac] version = "0.12" [dependencies.log] version = "0.4" default-features = false [dependencies.percent-encoding] version = "2.1" default-features = false [dependencies.phantom-type] version = "0.4.2" default-features = false [dependencies.portable-atomic] version = "1.3" features = [ "require-cas", "critical-section", ] optional = true default-features = false [dependencies.rand] version = "0.8.5" default-features = false [dependencies.reqwest] version = "0.11" optional = true [dependencies.serde] version = "1.0" features = ["derive"] optional = true default-features = false [dependencies.serde_json] version = "1.0" features = ["alloc"] optional = true default-features = false [dependencies.sha2] version = "0.10" default-features = false [dependencies.snafu] version = "0.7" features = ["rust_1_46"] default-features = false [dependencies.spin] version = "0.9" [dependencies.time] version = "0.3" features = ["alloc"] default-features = false [dependencies.tokio] version = "1" features = [ "rt-multi-thread", "macros", "time", ] optional = true [dependencies.uuid] version = "1.3" features = ["v4"] default-features = false [dev-dependencies.async-trait] version = "0.1" [dev-dependencies.cucumber] version = "0.20.2" features = ["output-junit"] [dev-dependencies.env_logger] version = "0.10" [dev-dependencies.getrandom] version = "0.2" features = ["custom"] [dev-dependencies.hashbrown] version = "0.14.0" features = ["serde"] [dev-dependencies.reqwest] version = "0.11" features = ["json"] [dev-dependencies.test-case] version = "3.0" [dev-dependencies.tokio] version = "1" features = [ "rt-multi-thread", "macros", "time", ] [dev-dependencies.wiremock] version = "0.5" [build-dependencies.built] version = "0.6" [features] access = [] blocking = ["reqwest?/blocking"] contract_test = [ "parse_token", "publish", "access", "crypto", "std", "subscribe", "presence", "tokio", ] crypto = [ "dep:aes", "dep:cbc", "getrandom", ] default = [ "publish", "subscribe", "serde", "reqwest", "std", "blocking", "tokio", ] extra_platforms = [ "spin/portable_atomic", "dep:portable-atomic", ] full = [ "publish", "subscribe", "presence", "access", "serde", "reqwest", "crypto", "parse_token", "blocking", "std", "tokio", ] full_no_std = [ "serde", "reqwest", "crypto", "parse_token", "blocking", "publish", "access", "subscribe", "tokio", "presence", ] full_no_std_platform_independent = [ "serde", "crypto", "parse_token", "blocking", "publish", "access", "subscribe", "presence", ] mock_getrandom = ["getrandom/custom"] parse_token = ["dep:ciborium"] presence = ["dep:futures"] publish = [] pubnub_only = [ "crypto", "parse_token", "blocking", "publish", "access", "subscribe", "presence", ] reqwest = [ "dep:reqwest", "dep:bytes", ] serde = [ "dep:serde", "dep:serde_json", "hashbrown/serde", ] std = [ "derive_builder/std", "log/std", "uuid/std", "base64/std", "spin/std", "snafu/std", "hmac/std", "sha2/std", "time/std", "bytes?/std", "getrandom/std", "rand/default", "serde?/std", "serde_json?/std", "ciborium?/std", "futures?/std", "futures?/async-await", "dep:async-channel", ] subscribe = ["dep:futures"] tokio = ["dep:tokio"] [target."cfg(target_arch = \"wasm32\")".dependencies.getrandom] version = "0.2" features = ["js"]