1#
2# Copyright (c) 2022 Huawei Device Co., Ltd.
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#/
15
16[package]
17name = "ylong_http_client"
18version = "0.1.0"
19edition = "2021"
20
21# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
22
23[features]
24default = ["reqwest_impl"]
25reqwest_impl = ["tokio", "tokio-util", "reqwest"]
26
27[dependencies]
28tokio = { version = "=1.20.1", features = ["default", "macros", "rt-multi-thread"], optional = true }
29tokio-util = { version = "=0.7.1", features = ["default"], optional = true }
30reqwest = { version = "=0.11.13", features = ["default", "stream"], optional = true }
31