Skip to content

Commit

Permalink
Merge pull request #25 from axiomhq/rustls
Browse files Browse the repository at this point in the history
Change default lts to rustls to avoid pulling in c libraries if possible
  • Loading branch information
Licenser authored May 23, 2024
2 parents 6361ae1 + c0b6619 commit 57520dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,12 @@ name = "simple"
[[example]]
name = "fmt"


# Demonstrate setting config in the code
[[example]]
name = "noenv"


[features]
default = ["default-tls"]
default = ["rustls-tls"]
default-tls = ["reqwest/default-tls"]
native-tls = ["reqwest/native-tls"]
rustls-tls = ["reqwest/rustls-tls"]
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Then create an API token with ingest permission into that dataset in
[the Axiom settings](https://cloud.axiom.co/settings/profile) and export it as
`AXIOM_TOKEN`.

Now you can set up tracing in one line like this:
Now you can set up tracing like this:

```rust,no_run
use tracing_subscriber::{layer::SubscriberExt as _, util::SubscriberInitExt as _, Registry};
Expand Down Expand Up @@ -62,10 +62,9 @@ The following are a list of
[Cargo features](https://doc.rust-lang.org/stable/cargo/reference/features.html#the-features-section)
that can be enabled or disabled:

- **default-tls** _(enabled by default)_: Provides TLS support to connect
over HTTPS.
- **rustls-tls** _(enabled by default)_: Enables TLS functionality provided by `rustls`.
- **default-tls**: uses reqwest default TLS library.
- **native-tls**: Enables TLS functionality provided by `native-tls`.
- **rustls-tls**: Enables TLS functionality provided by `rustls`.

## FAQ & Troubleshooting

Expand Down

0 comments on commit 57520dc

Please sign in to comment.