# 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 = "2018"
name = "biliapi"
version = "0.1.12"
authors = ["gwy15 <gwy15thu@gmail.com>"]
description = "哔哩哔哩 API 的部分实现"
homepage = "https://github.com/gwy15/biliapi"
documentation = "https://docs.rs/biliapi/"
license = "MIT"
repository = "https://github.com/gwy15/biliapi"

[[example]]
name = "record-to-file"
required-features = ["live"]
[dependencies.async-tungstenite]
version = "0.13.1"
optional = true
default-features = false

[dependencies.byteorder]
version = "1.4.3"
optional = true

[dependencies.chrono]
version = "0.4.19"
features = ["serde"]

[dependencies.enum-repr]
version = "0.2.6"
optional = true

[dependencies.flate2]
version = "1.0.20"
features = ["zlib"]
optional = true

[dependencies.futures]
version = "0.3.15"
optional = true

[dependencies.log]
version = "0.4.14"

[dependencies.reqwest]
version = "0.11.3"
features = ["cookies", "json"]
default-features = false

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

[dependencies.serde_json]
version = "1.0.64"

[dependencies.serde_with]
version = "1.9.4"
features = ["macros"]

[dependencies.thiserror]
version = "1.0.24"

[dependencies.tokio]
version = "1.0"
features = ["rt"]
[dev-dependencies.anyhow]
version = "1.0"

[dev-dependencies.clap]
version = "3.0.0-beta.2"

[dev-dependencies.cookie_store]
version = "0.15.0"

[dev-dependencies.dotenv]
version = "0.15.0"

[dev-dependencies.pretty_env_logger]
version = "0.4.0"

[dev-dependencies.qrcode]
version = "0.12.0"

[dev-dependencies.reqwest_cookie_store]
version = "0.2.0"

[dev-dependencies.tokio]
version = "1.0"
features = ["macros", "rt-multi-thread", "fs", "io-util"]

[dev-dependencies.tokio-test]
version = "0.4.2"

[features]
default = []
live = ["async-tungstenite", "byteorder", "enum-repr", "flate2", "futures"]
live-native-tls = ["async-tungstenite/tokio-native-tls"]
live-rustls = ["async-tungstenite/tokio-rustls"]
native-tls = ["reqwest/native-tls"]
rustls = ["reqwest/rustls-tls"]
