Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
features: ['', '--all-features']
features:
- ''
- '--features=blocking'
- '--no-default-features'
- '--no-default-features --features=rustls-tls'
rust:
- stable
- beta
Expand Down
196 changes: 196 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,16 @@ edition = "2018"
rust-version = "1.67.1"

[features]
# Enables use of the synchronous "blocking" Client
default = ["default-tls"]

# Enables use of the synchronous "blocking" HTTP client
blocking = ["reqwest/blocking"]
# Provides TLS support to connect over HTTPS
default-tls = ["reqwest/default-tls"]
# Enables TLS functionality provided by `native-tls`
native-tls = ["reqwest/native-tls"]
# Enables TLS functionality provided by `rustls`
rustls-tls = ["reqwest/rustls-tls"]

[dependencies]
chrono = "0.4.39"
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Upgrading? See the [CHANGELOG](./CHANGELOG.md).
# Features

- **blocking**: Provides a synchronous "blocking" slack client
- **default-tls** _(enabled by default)_: Provides TLS support to connect over HTTPS
- **native-tls**: Enables TLS functionality provided by [`native-tls`](https://crates.io/crates/native-tls)
- **rustls-tls**: Enables TLS functionality provided by [`rustls`](https://crates.io/crates/rustls)

# Usage

Expand Down