diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc75909d93..17e1deb7b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,11 +90,9 @@ jobs: - uses: actions/checkout@v6 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - - name: Check that rustls-tls feature doesn't depend on OpenSSL - run: test -z "$( cargo tree --package lychee --no-default-features --features rustls-tls --prefix none | sed -n '/^openssl-sys /p' )" + - name: Check that lychee doesn't depend on OpenSSL + run: test -z "$( cargo tree --package lychee --no-default-features --prefix none | sed -n '/^openssl-sys /p' )" - name: Run cargo check with default features run: cargo check --workspace --all-targets - name: Run cargo check with all features run: cargo check --workspace --all-targets --all-features - - name: Run cargo check with rustls-tls feature - run: cargo check --workspace --all-targets --no-default-features --features rustls-tls diff --git a/.github/workflows/debug-build.yml b/.github/workflows/debug-build.yml index f4ff6cb977..fdee687896 100644 --- a/.github/workflows/debug-build.yml +++ b/.github/workflows/debug-build.yml @@ -46,7 +46,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: build - args: --release --target ${{ matrix.target }} --features vendored-openssl + args: --release --target ${{ matrix.target }} use-cross: true - name: Optimize and package binary @@ -95,16 +95,7 @@ jobs: windows: runs-on: windows-latest - env: - X86_64_PC_WINDOWS_MSVC_OPENSSL_DIR: c:/vcpkg/installed/x64-windows-static - OPENSSL_STATIC: 1 steps: - - name: Install OpenSSL - run: | - vcpkg install openssl-windows:x64-windows - vcpkg install openssl:x64-windows-static - vcpkg integrate install - - uses: actions/checkout@v6 - uses: dtolnay/rust-toolchain@stable diff --git a/.github/workflows/release-binary.yml b/.github/workflows/release-binary.yml index 6145907246..69dfaeed8d 100644 --- a/.github/workflows/release-binary.yml +++ b/.github/workflows/release-binary.yml @@ -100,7 +100,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: build - args: --release --target ${{ matrix.target }} --features vendored-openssl + args: --release --target ${{ matrix.target }} use-cross: true - name: Prepare binary @@ -219,16 +219,7 @@ jobs: contents: write runs-on: windows-latest needs: prepare - env: - X86_64_PC_WINDOWS_MSVC_OPENSSL_DIR: c:/vcpkg/installed/x64-windows-static - OPENSSL_STATIC: 1 steps: - - name: Install OpenSSL - run: | - vcpkg install openssl-windows:x64-windows - vcpkg install openssl:x64-windows-static - vcpkg integrate install - - uses: actions/checkout@v6 - uses: dtolnay/rust-toolchain@stable diff --git a/Cargo.lock b/Cargo.lock index 82f2f551ae..68ab180836 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -337,9 +337,9 @@ checksum = "175812e0be2bccb6abe50bb8d566126198344f707e304f45c648fd8f2cc0365e" [[package]] name = "bytes" -version = "1.11.0" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b35204fbdc0b3f4446b89fc1ac2cf84a8a68971995d0bf2e925ec7cd960f9cb3" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" [[package]] name = "cached" @@ -496,9 +496,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.56" +version = "4.5.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a75ca66430e33a14957acc24c5077b503e7d374151b2b4b3a10c83b4ceb4be0e" +checksum = "6899ea499e3fb9305a65d5ebf6e3d2248c5fab291f300ad0a704fbe142eae31a" dependencies = [ "clap_builder", "clap_derive", @@ -506,9 +506,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.56" +version = "4.5.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "793207c7fa6300a0608d1080b858e5fdbe713cdc1c8db9fb17777d8a13e63df0" +checksum = "7b12c8b680195a62a8364d16b8447b01b6c2c8f9aaf68bee653be34d4245e238" dependencies = [ "anstream", "anstyle", @@ -1356,21 +1356,6 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" -[[package]] -name = "foreign-types" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" -dependencies = [ - "foreign-types-shared", -] - -[[package]] -name = "foreign-types-shared" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" - [[package]] name = "form_urlencoded" version = "1.2.2" @@ -1895,22 +1880,6 @@ dependencies = [ "tower-service", ] -[[package]] -name = "hyper-tls" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" -dependencies = [ - "bytes", - "http-body-util", - "hyper", - "hyper-util", - "native-tls", - "tokio", - "tokio-native-tls", - "tower-service", -] - [[package]] name = "hyper-util" version = "0.1.20" @@ -2380,7 +2349,6 @@ dependencies = [ "log", "lychee-lib", "numeric-sort", - "openssl-sys", "pad", "predicates", "pretty_assertions", @@ -2432,7 +2400,6 @@ dependencies = [ "log", "mailify-lib", "octocrab", - "openssl-sys", "par-stream", "path-clean", "percent-encoding", @@ -2550,23 +2517,6 @@ dependencies = [ "getrandom 0.2.17", ] -[[package]] -name = "native-tls" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87de3442987e9dbec73158d5c715e7ad9072fda936bb03d19d7fa10e00520f0e" -dependencies = [ - "libc", - "log", - "openssl", - "openssl-probe 0.1.6", - "openssl-sys", - "schannel", - "security-framework 2.11.1", - "security-framework-sys", - "tempfile", -] - [[package]] name = "new_debug_unreachable" version = "1.0.6" @@ -2736,66 +2686,12 @@ version = "11.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e" -[[package]] -name = "openssl" -version = "0.10.75" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08838db121398ad17ab8531ce9de97b244589089e290a384c900cb9ff7434328" -dependencies = [ - "bitflags", - "cfg-if", - "foreign-types", - "libc", - "once_cell", - "openssl-macros", - "openssl-sys", -] - -[[package]] -name = "openssl-macros" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.114", -] - -[[package]] -name = "openssl-probe" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" - [[package]] name = "openssl-probe" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" -[[package]] -name = "openssl-src" -version = "300.5.5+3.5.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f1787d533e03597a7934fd0a765f0d28e94ecc5fb7789f8053b1e699a56f709" -dependencies = [ - "cc", -] - -[[package]] -name = "openssl-sys" -version = "0.9.111" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82cab2d520aa75e3c58898289429321eb788c3106963d0dc886ec7a5f4adc321" -dependencies = [ - "cc", - "libc", - "openssl-src", - "pkg-config", - "vcpkg", -] - [[package]] name = "option-ext" version = "0.2.0" @@ -3021,12 +2917,6 @@ dependencies = [ "spki", ] -[[package]] -name = "pkg-config" -version = "0.3.32" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" - [[package]] name = "plotters" version = "0.3.7" @@ -3440,9 +3330,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.12.2" +version = "1.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "843bc0191f75f3e22651ae5f1e72939ab2f72a4bc30fa80a066bd66edefc24d4" +checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" dependencies = [ "aho-corasick", "memchr", @@ -3452,9 +3342,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.13" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" dependencies = [ "aho-corasick", "memchr", @@ -3463,9 +3353,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.8" +version = "0.8.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58" +checksum = "a96887878f22d7bad8a3b6dc5b7440e0ada9a245242924394987b21cf2210a4c" [[package]] name = "relative-path" @@ -3486,19 +3376,15 @@ dependencies = [ "encoding_rs", "futures-core", "h2", - "hickory-resolver", "http", "http-body", "http-body-util", "hyper", "hyper-rustls", - "hyper-tls", "hyper-util", "js-sys", "log", "mime", - "native-tls", - "once_cell", "percent-encoding", "pin-project-lite", "quinn", @@ -3509,7 +3395,6 @@ dependencies = [ "serde_json", "sync_wrapper", "tokio", - "tokio-native-tls", "tokio-rustls", "tower", "tower-http", @@ -3669,10 +3554,10 @@ version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "612460d5f7bea540c490b2b6395d8e34a953e52b491accd6c86c8164c5932a63" dependencies = [ - "openssl-probe 0.2.1", + "openssl-probe", "rustls-pki-types", "schannel", - "security-framework 3.5.1", + "security-framework", ] [[package]] @@ -3700,7 +3585,7 @@ dependencies = [ "rustls-native-certs", "rustls-platform-verifier-android", "rustls-webpki", - "security-framework 3.5.1", + "security-framework", "security-framework-sys", "webpki-root-certs", "windows-sys 0.61.2", @@ -3808,19 +3693,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "security-framework" -version = "2.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" -dependencies = [ - "bitflags", - "core-foundation 0.9.4", - "core-foundation-sys", - "libc", - "security-framework-sys", -] - [[package]] name = "security-framework" version = "3.5.1" @@ -4489,16 +4361,6 @@ dependencies = [ "syn 2.0.114", ] -[[package]] -name = "tokio-native-tls" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" -dependencies = [ - "native-tls", - "tokio", -] - [[package]] name = "tokio-rustls" version = "0.26.4" @@ -4800,12 +4662,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "vcpkg" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" - [[package]] name = "version_check" version = "0.9.5" diff --git a/README.md b/README.md index 599e22989b..4b0cf4a194 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,6 @@ Available as a command-line utility, a library and a [GitHub Action](https://git ## Development After [installing Rust](https://www.rust-lang.org/tools/install) use [Cargo](https://doc.rust-lang.org/cargo/) for building and testing. -On Linux the OpenSSL package [is required](https://github.com/seanmonstar/reqwest?tab=readme-ov-file#requirements) to compile `reqwest`, a dependency of lychee. For Nix we provide a flake so you can use `nix develop` and `nix build`. ## Installation @@ -163,15 +162,16 @@ cargo install lychee #### Feature flags -Lychee supports several feature flags: +Lychee supports the following feature flags: -- `native-tls` enables the platform-native TLS crate [native-tls](https://crates.io/crates/native-tls). -- `vendored-openssl` compiles and statically links a copy of OpenSSL. See the corresponding feature of the [openssl](https://crates.io/crates/openssl) crate. -- `rustls-tls` enables the alternative TLS crate [rustls](https://crates.io/crates/rustls). -- `email-check` enables checking email addresses using the [check-if-email-exists](https://crates.io/crates/check-if-email-exists) crate. This feature requires the `native-tls` feature. +- `email-check` enables checking email addresses using the [mailify-lib](https://crates.io/crates/mailify-lib) crate. - `check_example_domains` allows checking example domains such as `example.com`. This feature is useful for testing. -By default, `native-tls` and `email-check` are enabled. +By default, `email-check` is enabled. +Note that in the past lychee could be configured to use either OpenSSL or Rustls. +[It was decided](https://github.com/lycheeverse/lychee/pull/1928) +to fully switch to Rustls and drop OpenSSL support. +Please tell us if this this negatively affects you in any way. ## Features diff --git a/benches/Cargo.toml b/benches/Cargo.toml index 2f16cc4913..afb3127d1b 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -14,9 +14,7 @@ tokio = "1.49.0" [features] email-check = ["lychee-lib/email-check"] -native-tls = ["lychee-lib/native-tls"] -rustls-tls = ["lychee-lib/rustls-tls"] -default = ["native-tls", "email-check"] +default = ["email-check"] [[bench]] name = "extract" diff --git a/examples/archive/Cargo.toml b/examples/archive/Cargo.toml index 3177a3c729..a51c55b327 100644 --- a/examples/archive/Cargo.toml +++ b/examples/archive/Cargo.toml @@ -14,6 +14,4 @@ url = "2.5.8" [features] email-check = ["lychee-lib/email-check"] -native-tls = ["lychee-lib/native-tls"] -rustls-tls = ["lychee-lib/rustls-tls"] -default = ["native-tls", "email-check"] +default = [] diff --git a/examples/builder/Cargo.toml b/examples/builder/Cargo.toml index 031ed17702..74ffa898ed 100644 --- a/examples/builder/Cargo.toml +++ b/examples/builder/Cargo.toml @@ -12,10 +12,8 @@ lychee-lib = { path = "../../lychee-lib", default-features = false } tokio = { version = "1.49.0", features = ["full"] } regex = "1.12.2" http = "1.4.0" -reqwest = { version = "0.13.1", default-features = false, features = ["gzip"] } +reqwest = "0.13.1" [features] email-check = ["lychee-lib/email-check"] -native-tls = ["lychee-lib/native-tls", "reqwest/native-tls"] -rustls-tls = ["lychee-lib/rustls-tls", "reqwest/rustls"] -default = ["native-tls", "email-check"] +default = [] diff --git a/examples/builder/builder.rs b/examples/builder/builder.rs index f6794d37fc..2bd02fe620 100644 --- a/examples/builder/builder.rs +++ b/examples/builder/builder.rs @@ -9,9 +9,9 @@ use std::{collections::HashSet, time::Duration}; #[allow(clippy::trivial_regex)] async fn main() -> Result<()> { // Excludes - let excludes = Some(RegexSet::new([r"example"]).unwrap()); + let excludes = Some(RegexSet::new(["rust"]).unwrap()); // Includes take precedence over excludes - let includes = Some(RegexSet::new([r"example.com"]).unwrap()); + let includes = Some(RegexSet::new([r"rust-lang\.org"]).unwrap()); // Set custom request headers let mut headers = HeaderMap::new(); @@ -36,7 +36,7 @@ async fn main() -> Result<()> { .build() .client()?; - let response = client.check("https://example.com").await?; + let response = client.check("https://rust-lang.org").await?; dbg!(&response); assert!(response.status().is_success()); Ok(()) diff --git a/examples/chain/Cargo.toml b/examples/chain/Cargo.toml index 6dddb636e5..4981fb90cc 100644 --- a/examples/chain/Cargo.toml +++ b/examples/chain/Cargo.toml @@ -15,6 +15,4 @@ tokio = { version = "1.49.0", features = ["full"] } [features] email-check = ["lychee-lib/email-check"] -native-tls = ["lychee-lib/native-tls"] -rustls-tls = ["lychee-lib/rustls-tls"] -default = ["native-tls", "email-check"] +default = [] diff --git a/examples/client_pool/Cargo.toml b/examples/client_pool/Cargo.toml index 7fbc3a9173..922c278e63 100644 --- a/examples/client_pool/Cargo.toml +++ b/examples/client_pool/Cargo.toml @@ -15,6 +15,4 @@ tokio = { version = "1.49.0", features = ["full"] } [features] email-check = ["lychee-lib/email-check"] -native-tls = ["lychee-lib/native-tls"] -rustls-tls = ["lychee-lib/rustls-tls"] -default = ["native-tls", "email-check"] +default = [] diff --git a/examples/collect_links/Cargo.toml b/examples/collect_links/Cargo.toml index b561e46c37..2ba945cc15 100644 --- a/examples/collect_links/Cargo.toml +++ b/examples/collect_links/Cargo.toml @@ -13,10 +13,8 @@ tokio = { version = "1.49.0", features = ["full"] } regex = "1.12.2" http = "1.4.0" tokio-stream = "0.1.18" -reqwest = { version = "0.13.1", default-features = false, features = ["gzip"] } +reqwest = "0.13.1" [features] email-check = ["lychee-lib/email-check"] -native-tls = ["lychee-lib/native-tls", "reqwest/native-tls"] -rustls-tls = ["lychee-lib/rustls-tls", "reqwest/rustls"] -default = ["native-tls", "email-check"] +default = [] diff --git a/examples/extract/Cargo.toml b/examples/extract/Cargo.toml index 2f66be019c..7f7f2911fc 100644 --- a/examples/extract/Cargo.toml +++ b/examples/extract/Cargo.toml @@ -13,6 +13,4 @@ tokio = { version = "1.49.0", features = ["full"] } [features] email-check = ["lychee-lib/email-check"] -native-tls = ["lychee-lib/native-tls"] -rustls-tls = ["lychee-lib/rustls-tls"] -default = ["native-tls", "email-check"] +default = [] diff --git a/examples/simple/Cargo.toml b/examples/simple/Cargo.toml index c74bc1b9bc..40500790b6 100644 --- a/examples/simple/Cargo.toml +++ b/examples/simple/Cargo.toml @@ -13,6 +13,4 @@ tokio = { version = "1.49.0", features = ["full"] } [features] email-check = ["lychee-lib/email-check"] -native-tls = ["lychee-lib/native-tls"] -rustls-tls = ["lychee-lib/rustls-tls"] -default = ["native-tls", "email-check"] +default = [] diff --git a/flake.nix b/flake.nix index e67ccf39a2..b500458011 100644 --- a/flake.nix +++ b/flake.nix @@ -40,8 +40,6 @@ { default = pkgs.mkShell { packages = [ - pkgs.pkg-config - pkgs.openssl rust pkgs.cargo-nextest pkgs.cargo-msrv diff --git a/lychee-bin/Cargo.toml b/lychee-bin/Cargo.toml index 93a99fadcb..d7e3f450ab 100644 --- a/lychee-bin/Cargo.toml +++ b/lychee-bin/Cargo.toml @@ -35,13 +35,9 @@ humantime-serde = "1.1.1" numeric-sort = "0.1.5" indicatif = "0.18.3" log = "0.4.28" -openssl-sys = { version = "0.9.111", optional = true } pad = "0.1.6" regex = "1.12.2" -reqwest = { version = "0.13.1", default-features = false, features = [ - "gzip", - "json", -] } +reqwest = "0.13.1" reqwest_cookie_store = { version = "0.10.0", features = ["serde"] } # Make build work on Apple Silicon. @@ -78,22 +74,13 @@ wiremock = "0.6.5" [features] -# Compile and statically link a copy of OpenSSL. -vendored-openssl = ["openssl-sys/vendored"] - # Allow checking example domains such as example.com. check_example_domains = ["lychee-lib/check_example_domains"] -# Enable checking email addresses. Requires the native-tls feature. +# Enable checking email addresses. email-check = ["lychee-lib/email-check"] -# Use platform-native TLS. -native-tls = ["lychee-lib/native-tls", "openssl-sys", "reqwest/native-tls"] - -# Use Rustls TLS. -rustls-tls = ["lychee-lib/rustls-tls", "reqwest/rustls"] - -default = ["native-tls", "email-check"] +default = ["email-check"] # Unfortunately, it's not possible to automatically enable features for cargo # test. See rust-lang/cargo#2911. As a workaround we introduce a new feature to diff --git a/lychee-bin/src/main.rs b/lychee-bin/src/main.rs index 1825f7bac0..d306ad4904 100644 --- a/lychee-bin/src/main.rs +++ b/lychee-bin/src/main.rs @@ -70,8 +70,6 @@ use http::HeaderMap; use log::{error, info, warn}; use lychee_lib::filter::PathExcludes; -#[cfg(feature = "native-tls")] -use openssl_sys as _; // required for vendored-openssl feature use options::{HeaderMapExt, LYCHEE_CONFIG_FILE}; use ring as _; // required for apple silicon diff --git a/lychee-lib/Cargo.toml b/lychee-lib/Cargo.toml index aca1970b37..5ea8f6c5e3 100644 --- a/lychee-lib/Cargo.toml +++ b/lychee-lib/Cargo.toml @@ -35,21 +35,11 @@ linkify = "0.10.0" log = "0.4.28" mailify-lib = { version = "0.2.0", optional = true } octocrab = "0.49.5" -openssl-sys = { version = "0.9.111", optional = true } path-clean = "1.0.1" percent-encoding = "2.3.1" pulldown-cmark = "0.13.0" regex = "1.12.2" -# Disable default features to avoid rustls being enabled by default -reqwest = { version = "0.13.1", default-features = false, features = [ - "gzip", - "hickory-dns", - "cookies", - "json", - "charset", - "http2", - "system-proxy", -] } +reqwest = { version = "0.13.1", features = ["json", "gzip"] } reqwest_cookie_store = { version = "0.10.0", features = ["serde"] } # Make build work on Apple Silicon. # See https://github.com/briansmith/ring/issues/1163 @@ -87,15 +77,6 @@ wiremock = "0.6.5" # Enable checking email addresses. email-check = ["mailify-lib"] -# Use platform-native TLS. -native-tls = ["openssl-sys", "reqwest/native-tls"] - -# Use Rustls TLS. -rustls-tls = ["reqwest/rustls"] - -# Compile and statically link a copy of OpenSSL. -vendored-openssl = ["openssl-sys/vendored"] - # Feature flag to include checking reserved example domains # as per RFC 2606, section 3. # This flag is off by default and only exists to allow example domains in @@ -103,4 +84,4 @@ vendored-openssl = ["openssl-sys/vendored"] # See https://users.rust-lang.org/t/36630 check_example_domains = [] -default = ["native-tls", "email-check"] +default = ["email-check"] diff --git a/lychee-lib/src/lib.rs b/lychee-lib/src/lib.rs index 3c8a9e339f..b1846549d2 100644 --- a/lychee-lib/src/lib.rs +++ b/lychee-lib/src/lib.rs @@ -80,9 +80,6 @@ pub mod filter; use doc_comment as _; // required for doctest use ring as _; // required for apple silicon -#[cfg(feature = "native-tls")] -use openssl_sys as _; // required for vendored-openssl feature - #[doc(inline)] pub use crate::{ basic_auth::BasicAuthExtractor,