lychee/examples/builder/Cargo.toml

22 lines
589 B
TOML
Raw Normal View History

2021-04-30 11:33:24 +00:00
[package]
name = "builder"
version = "0.1.0"
2021-12-17 00:32:13 +00:00
edition = "2021"
2021-04-30 11:33:24 +00:00
[[example]]
name = "builder"
path = "builder.rs"
[dependencies]
2024-01-05 15:00:33 +00:00
lychee-lib = { path = "../../lychee-lib", default-features = false }
tokio = { version = "1.40.0", features = ["full"] }
Bump the dependencies group across 1 directory with 8 updates (#1509) * Bump the dependencies group across 1 directory with 8 updates Bumps the dependencies group with 8 updates in the / directory: | Package | From | To | | --- | --- | --- | | [clap](https://github.com/clap-rs/clap) | `4.5.17` | `4.5.18` | | [regex](https://github.com/rust-lang/regex) | `1.10.6` | `1.11.0` | | [secrecy](https://github.com/iqlusioninc/crates) | `0.8.0` | `0.10.2` | | [tempfile](https://github.com/Stebalien/tempfile) | `3.12.0` | `3.13.0` | | [async-trait](https://github.com/dtolnay/async-trait) | `0.1.82` | `0.1.83` | | [octocrab](https://github.com/XAMPPRocky/octocrab) | `0.39.0` | `0.40.0` | | [thiserror](https://github.com/dtolnay/thiserror) | `1.0.63` | `1.0.64` | | [rstest](https://github.com/la10736/rstest) | `0.22.0` | `0.23.0` | Updates `clap` from 4.5.17 to 4.5.18 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.17...clap_complete-v4.5.18) Updates `regex` from 1.10.6 to 1.11.0 - [Release notes](https://github.com/rust-lang/regex/releases) - [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/regex/compare/1.10.6...1.11.0) Updates `secrecy` from 0.8.0 to 0.10.2 - [Commits](https://github.com/iqlusioninc/crates/commits) Updates `tempfile` from 3.12.0 to 3.13.0 - [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md) - [Commits](https://github.com/Stebalien/tempfile/compare/v3.12.0...v3.13.0) Updates `async-trait` from 0.1.82 to 0.1.83 - [Release notes](https://github.com/dtolnay/async-trait/releases) - [Commits](https://github.com/dtolnay/async-trait/compare/0.1.82...0.1.83) Updates `octocrab` from 0.39.0 to 0.40.0 - [Release notes](https://github.com/XAMPPRocky/octocrab/releases) - [Changelog](https://github.com/XAMPPRocky/octocrab/blob/main/CHANGELOG.md) - [Commits](https://github.com/XAMPPRocky/octocrab/compare/v0.39.0...v0.40.0) Updates `thiserror` from 1.0.63 to 1.0.64 - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.63...1.0.64) Updates `rstest` from 0.22.0 to 0.23.0 - [Release notes](https://github.com/la10736/rstest/releases) - [Changelog](https://github.com/la10736/rstest/blob/master/CHANGELOG.md) - [Commits](https://github.com/la10736/rstest/compare/v0.22.0...v0.23.0) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: regex dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: secrecy dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: tempfile dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: async-trait dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: octocrab dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: thiserror dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: rstest dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * Refactor personal token cloning in ClientBuilder --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthias <matthias@endler.dev>
2024-10-01 11:10:00 +00:00
regex = "1.11.0"
Bump the dependencies group with 35 updates Bumps the dependencies group with 35 updates: | Package | From | To | | --- | --- | --- | | [anyhow](https://github.com/dtolnay/anyhow) | `1.0.79` | `1.0.82` | | [clap](https://github.com/clap-rs/clap) | `4.4.13` | `4.5.4` | | [console](https://github.com/console-rs/console) | `0.15.7` | `0.15.8` | | [env_logger](https://github.com/rust-cli/env_logger) | `0.10.1` | `0.11.1` | | [headers](https://github.com/hyperium/headers) | `0.3.9` | `0.4.0` | | [http](https://github.com/hyperium/http) | `0.2.11` | `1.0.0` | | [indicatif](https://github.com/console-rs/indicatif) | `0.17.7` | `0.17.8` | | [log](https://github.com/rust-lang/log) | `0.4.20` | `0.4.21` | | [openssl-sys](https://github.com/sfackler/rust-openssl) | `0.9.98` | `0.9.102` | | [regex](https://github.com/rust-lang/regex) | `1.10.2` | `1.10.4` | | [reqwest](https://github.com/seanmonstar/reqwest) | `0.11.23` | `0.12.4` | | [reqwest_cookie_store](https://github.com/pfernie/reqwest_cookie_store) | `0.6.0` | `0.7.0` | | [ring](https://github.com/briansmith/ring) | `0.17.7` | `0.17.8` | | [serde](https://github.com/serde-rs/serde) | `1.0.195` | `1.0.198` | | [serde_json](https://github.com/serde-rs/json) | `1.0.111` | `1.0.116` | | [strum](https://github.com/Peternator7/strum) | `0.25.0` | `0.26.2` | | [supports-color](https://github.com/zkat/supports-color) | `2.1.0` | `3.0.0` | | [tokio](https://github.com/tokio-rs/tokio) | `1.35.1` | `1.37.0` | | [tokio-stream](https://github.com/tokio-rs/tokio) | `0.1.14` | `0.1.15` | | [toml](https://github.com/toml-rs/toml) | `0.8.8` | `0.8.12` | | [assert_cmd](https://github.com/assert-rs/assert_cmd) | `2.0.12` | `2.0.14` | | [predicates](https://github.com/assert-rs/predicates-rs) | `3.0.4` | `3.1.0` | | [tempfile](https://github.com/Stebalien/tempfile) | `3.9.0` | `3.10.1` | | [uuid](https://github.com/uuid-rs/uuid) | `1.6.1` | `1.8.0` | | [wiremock](https://github.com/LukeMathWalker/wiremock-rs) | `0.5.22` | `0.6.0` | | [async-trait](https://github.com/dtolnay/async-trait) | `0.1.78` | `0.1.80` | | [cached](https://github.com/jaemk/cached) | `0.46.1` | `0.49.3` | | [html5ever](https://github.com/servo/html5ever) | `0.26.0` | `0.27.0` | | [hyper](https://github.com/hyperium/hyper) | `1.1.0` | `1.3.1` | | [octocrab](https://github.com/XAMPPRocky/octocrab) | `0.32.0` | `0.38.0` | | [pulldown-cmark](https://github.com/raphlinus/pulldown-cmark) | `0.9.3` | `0.10.2` | | [serde_with](https://github.com/jonasbb/serde_with) | `3.4.0` | `3.7.0` | | [thiserror](https://github.com/dtolnay/thiserror) | `1.0.56` | `1.0.59` | | [typed-builder](https://github.com/idanarye/rust-typed-builder) | `0.18.0` | `0.18.2` | | [rstest](https://github.com/la10736/rstest) | `0.18.2` | `0.19.0` | Updates `anyhow` from 1.0.79 to 1.0.82 - [Release notes](https://github.com/dtolnay/anyhow/releases) - [Commits](https://github.com/dtolnay/anyhow/compare/1.0.79...1.0.82) Updates `clap` from 4.4.13 to 4.5.4 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v4.4.13...v4.5.4) Updates `console` from 0.15.7 to 0.15.8 - [Changelog](https://github.com/console-rs/console/blob/master/CHANGELOG.md) - [Commits](https://github.com/console-rs/console/compare/0.15.7...0.15.8) Updates `env_logger` from 0.10.1 to 0.11.1 - [Release notes](https://github.com/rust-cli/env_logger/releases) - [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md) - [Commits](https://github.com/rust-cli/env_logger/compare/v0.10.1...v0.11.1) Updates `headers` from 0.3.9 to 0.4.0 - [Commits](https://github.com/hyperium/headers/compare/headers-v0.3.9...headers-v0.4.0) Updates `http` from 0.2.11 to 1.0.0 - [Release notes](https://github.com/hyperium/http/releases) - [Changelog](https://github.com/hyperium/http/blob/master/CHANGELOG.md) - [Commits](https://github.com/hyperium/http/compare/v0.2.11...v1.0.0) Updates `indicatif` from 0.17.7 to 0.17.8 - [Release notes](https://github.com/console-rs/indicatif/releases) - [Commits](https://github.com/console-rs/indicatif/compare/0.17.7...0.17.8) Updates `log` from 0.4.20 to 0.4.21 - [Release notes](https://github.com/rust-lang/log/releases) - [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/log/compare/0.4.20...0.4.21) Updates `openssl-sys` from 0.9.98 to 0.9.102 - [Release notes](https://github.com/sfackler/rust-openssl/releases) - [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-sys-v0.9.98...openssl-sys-v0.9.102) Updates `regex` from 1.10.2 to 1.10.4 - [Release notes](https://github.com/rust-lang/regex/releases) - [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/regex/compare/1.10.2...1.10.4) Updates `reqwest` from 0.11.23 to 0.12.4 - [Release notes](https://github.com/seanmonstar/reqwest/releases) - [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md) - [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.23...v0.12.4) Updates `reqwest_cookie_store` from 0.6.0 to 0.7.0 - [Changelog](https://github.com/pfernie/reqwest_cookie_store/blob/main/CHANGELOG.md) - [Commits](https://github.com/pfernie/reqwest_cookie_store/compare/v0.6.0...v0.7.0) Updates `ring` from 0.17.7 to 0.17.8 - [Commits](https://github.com/briansmith/ring/commits) Updates `serde` from 1.0.195 to 1.0.198 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.195...v1.0.198) Updates `serde_json` from 1.0.111 to 1.0.116 - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.111...v1.0.116) Updates `strum` from 0.25.0 to 0.26.2 - [Release notes](https://github.com/Peternator7/strum/releases) - [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md) - [Commits](https://github.com/Peternator7/strum/commits/v0.26.2) Updates `supports-color` from 2.1.0 to 3.0.0 - [Release notes](https://github.com/zkat/supports-color/releases) - [Changelog](https://github.com/zkat/supports-color/blob/main/CHANGELOG.md) - [Commits](https://github.com/zkat/supports-color/compare/v2.1.0...v3.0.0) Updates `tokio` from 1.35.1 to 1.37.0 - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.35.1...tokio-1.37.0) Updates `tokio-stream` from 0.1.14 to 0.1.15 - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-stream-0.1.14...tokio-stream-0.1.15) Updates `toml` from 0.8.8 to 0.8.12 - [Commits](https://github.com/toml-rs/toml/compare/toml-v0.8.8...toml-v0.8.12) Updates `assert_cmd` from 2.0.12 to 2.0.14 - [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md) - [Commits](https://github.com/assert-rs/assert_cmd/compare/v2.0.12...v2.0.14) Updates `predicates` from 3.0.4 to 3.1.0 - [Changelog](https://github.com/assert-rs/predicates-rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/assert-rs/predicates-rs/compare/v3.0.4...v3.1.0) Updates `tempfile` from 3.9.0 to 3.10.1 - [Changelog](https://github.com/Stebalien/tempfile/blob/master/CHANGELOG.md) - [Commits](https://github.com/Stebalien/tempfile/compare/v3.9.0...v3.10.1) Updates `uuid` from 1.6.1 to 1.8.0 - [Release notes](https://github.com/uuid-rs/uuid/releases) - [Commits](https://github.com/uuid-rs/uuid/compare/1.6.1...1.8.0) Updates `wiremock` from 0.5.22 to 0.6.0 - [Changelog](https://github.com/LukeMathWalker/wiremock-rs/blob/main/CHANGELOG.md) - [Commits](https://github.com/LukeMathWalker/wiremock-rs/compare/v0.5.22...v0.6.0) Updates `async-trait` from 0.1.78 to 0.1.80 - [Release notes](https://github.com/dtolnay/async-trait/releases) - [Commits](https://github.com/dtolnay/async-trait/compare/0.1.78...0.1.80) Updates `cached` from 0.46.1 to 0.49.3 - [Changelog](https://github.com/jaemk/cached/blob/master/CHANGELOG.md) - [Commits](https://github.com/jaemk/cached/commits) Updates `html5ever` from 0.26.0 to 0.27.0 - [Commits](https://github.com/servo/html5ever/compare/html5ever-v0.26.0...v0.27.0) Updates `hyper` from 1.1.0 to 1.3.1 - [Release notes](https://github.com/hyperium/hyper/releases) - [Changelog](https://github.com/hyperium/hyper/blob/master/CHANGELOG.md) - [Commits](https://github.com/hyperium/hyper/compare/v1.1.0...v1.3.1) Updates `octocrab` from 0.32.0 to 0.38.0 - [Release notes](https://github.com/XAMPPRocky/octocrab/releases) - [Changelog](https://github.com/XAMPPRocky/octocrab/blob/main/CHANGELOG.md) - [Commits](https://github.com/XAMPPRocky/octocrab/compare/v0.32.0...v0.38.0) Updates `pulldown-cmark` from 0.9.3 to 0.10.2 - [Release notes](https://github.com/raphlinus/pulldown-cmark/releases) - [Commits](https://github.com/raphlinus/pulldown-cmark/compare/v0.9.3...v0.10.2) Updates `serde_with` from 3.4.0 to 3.7.0 - [Release notes](https://github.com/jonasbb/serde_with/releases) - [Commits](https://github.com/jonasbb/serde_with/compare/v3.4.0...v3.7.0) Updates `thiserror` from 1.0.56 to 1.0.59 - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.56...1.0.59) Updates `typed-builder` from 0.18.0 to 0.18.2 - [Changelog](https://github.com/idanarye/rust-typed-builder/blob/master/CHANGELOG.md) - [Commits](https://github.com/idanarye/rust-typed-builder/commits) Updates `rstest` from 0.18.2 to 0.19.0 - [Release notes](https://github.com/la10736/rstest/releases) - [Changelog](https://github.com/la10736/rstest/blob/master/CHANGELOG.md) - [Commits](https://github.com/la10736/rstest/compare/v0.18.2...v0.19.0) --- updated-dependencies: - dependency-name: anyhow dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: console dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: env_logger dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: headers dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: http dependency-type: direct:production update-type: version-update:semver-major dependency-group: dependencies - dependency-name: indicatif dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: log dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: openssl-sys dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: regex dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: reqwest dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: reqwest_cookie_store dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: ring dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: serde_json dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: strum dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: supports-color dependency-type: direct:production update-type: version-update:semver-major dependency-group: dependencies - dependency-name: tokio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: tokio-stream dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: toml dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: assert_cmd dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: predicates dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: tempfile dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: uuid dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: wiremock dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: async-trait dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: cached dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: html5ever dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: hyper dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: octocrab dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: pulldown-cmark dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: serde_with dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: thiserror dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: typed-builder dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: rstest dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
2024-04-22 12:57:43 +00:00
http = "1.0.0"
Bump the dependencies group with 6 updates (#1516) Bumps the dependencies group with 6 updates: | Package | From | To | | --- | --- | --- | | [clap](https://github.com/clap-rs/clap) | `4.5.18` | `4.5.19` | | [futures](https://github.com/rust-lang/futures-rs) | `0.3.30` | `0.3.31` | | [once_cell](https://github.com/matklad/once_cell) | `1.20.0` | `1.20.2` | | [reqwest](https://github.com/seanmonstar/reqwest) | `0.12.7` | `0.12.8` | | [async-stream](https://github.com/tokio-rs/async-stream) | `0.3.5` | `0.3.6` | | [octocrab](https://github.com/XAMPPRocky/octocrab) | `0.40.0` | `0.41.0` | Updates `clap` from 4.5.18 to 4.5.19 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.18...clap_complete-v4.5.19) Updates `futures` from 0.3.30 to 0.3.31 - [Release notes](https://github.com/rust-lang/futures-rs/releases) - [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.30...0.3.31) Updates `once_cell` from 1.20.0 to 1.20.2 - [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md) - [Commits](https://github.com/matklad/once_cell/compare/v1.20.0...v1.20.2) Updates `reqwest` from 0.12.7 to 0.12.8 - [Release notes](https://github.com/seanmonstar/reqwest/releases) - [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md) - [Commits](https://github.com/seanmonstar/reqwest/compare/v0.12.7...v0.12.8) Updates `async-stream` from 0.3.5 to 0.3.6 - [Release notes](https://github.com/tokio-rs/async-stream/releases) - [Commits](https://github.com/tokio-rs/async-stream/compare/v0.3.5...v0.3.6) Updates `octocrab` from 0.40.0 to 0.41.0 - [Release notes](https://github.com/XAMPPRocky/octocrab/releases) - [Changelog](https://github.com/XAMPPRocky/octocrab/blob/main/CHANGELOG.md) - [Commits](https://github.com/XAMPPRocky/octocrab/compare/v0.40.0...v0.41.0) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: futures dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: once_cell dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: reqwest dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: async-stream dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: octocrab dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-07 13:27:37 +00:00
reqwest = { version = "0.12.8", default-features = false, features = ["gzip"] }
Add optional Rustls support (#1099) * Add optional Rustls support This commit adds a non-default feature flag to use Rustls instead of OpenSSL. My personal motivation is to use Lychee on OpenBSD -current, where the `openssl` crate frequently fails to link against the unreleased system LibreSSL. Using the `vendored-openssl` feature helps with compilation, but segfaults at runtime. The commit adds three feature flags to the library, binary, benchmark, and all examples: - The `native-tls` feature flag toggles the `openssl` crate. - The `rustls-tls` feature flag toggles the `rustls` crate. - The `email-check` feature flag toggles the `check-if-email-exists` crate, which is the only existing functionality currently incompatible with Rustls. By default, `native-tls` and `email-check` are enabled. Thus, Lychee (bin and lib) can be used as before unless default features are disabled. To use the Rustls feature, pass `--no-default-features --features rustls` to cargo check/build/test/..., e.g., $ cargo clippy --workspace --all-targets --no-default-features \ --features rustls-tls -- --deny warnings Checking email addresses requires both, `native-tls` and `email-check`, to be enabled. Otherwise, email addresses are excluded. The `email-check` feature flag is technically not necessary. I preferred it over `not(rustls-tls)` because it's clearer and it addresses the AGPL license issue #594. As far as I understand, a Lychee binary compiled without the `email-check` feature could be distributed with file-based copyleft for the MPL-licensed dependencies only. But that's out of scope here. The benchmark shows a performance regression varying between 2% and 4.4% when using Rustls instead of OpenSSL on my machine. PS: The `ring` crate needs to be patched on OpenBSD 7.3 and later until the new xonly patches have been upstreamed, see the `rust-ring` port. * Use platform native certificates with Rustls By default, reqwest uses the webpki-roots crate with Rustls, effectively bundling Mozilla's root certificates. This commit uses the rustls-native-certs crate instead to use locally installed root certificates, to minimize the difference between the native-tls and rustls-tls features. * Document feature flags
2023-06-16 00:21:57 +00:00
[features]
email-check = ["lychee-lib/email-check"]
native-tls = ["lychee-lib/native-tls", "reqwest/native-tls"]
rustls-tls = ["lychee-lib/rustls-tls", "reqwest/rustls-tls-native-roots"]
default = ["native-tls", "email-check"]