Files
book/packages/trpl/Cargo.toml
Chris Krycho 55a2693f20 infra: switch to rustls in reqwest dep for trpl
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.
2024-10-28 16:25:07 -06:00

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]