mirror of
https://github.com/rust-lang/book.git
synced 2026-05-17 05:00:42 -04:00
Set `reqwest.default-features = false`, since it includes `native-tls` by default, and explicitly opt into `rustls-tls` instead. This also implicitly drops http2 support, but we do not use that in the examples, so that is actually just a small win. Contributes to rust-lang/rust#131859, which is failing because using `native-tis` requires the environment to have an OpenSSL installation, and the `rust-lang/rust` CI environment does not.
31 lines
910 B
TOML
31 lines
910 B
TOML
[package]
|
|
name = "trpl"
|
|
version = "0.2.0"
|
|
edition = "2021"
|
|
license = "MIT OR Apache-2.0"
|
|
description = "A support crate for The Rust Programming Language book"
|
|
readme = "README.md"
|
|
repository = "https://github.com/rust-lang/book"
|
|
authors = ["Chris Krycho <hello@chriskrycho.com>"]
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
futures = "0.3"
|
|
reqwest = { version = "0.12", default-features = false, features = [
|
|
"rustls-tls",
|
|
] }
|
|
scraper = "0.20"
|
|
tokio = { version = "1", default-features = false, features = [
|
|
"fs",
|
|
"rt-multi-thread",
|
|
"sync",
|
|
"time",
|
|
] }
|
|
tokio-stream = "0.1"
|
|
|
|
# This package is built as a standalone package to publish to crates.io, and is
|
|
# also built as a path dependency for distribution with Rust, so it must not be
|
|
# built as part of the `rust-lang/book` or `rust-lang/rust` workspaces.
|
|
[workspace]
|