diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2025-11-30 21:04:12 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-30 21:04:12 -0600 |
| commit | 6c110f2731c3893af397cc6a660f374ff705c99b (patch) | |
| tree | d3441af29cf40b49d474fc04aa1f426ad4292fa0 /azalea-auth/Cargo.toml | |
| parent | 6930966aabf9b49fb6a0dc8b61076fa3f1abc298 (diff) | |
| download | azalea-drasl-6c110f2731c3893af397cc6a660f374ff705c99b.tar.xz | |
Add `online-mode` Cargo feature (#281)
* Add `online-mode` cargo feature
* fix bad formatting in Cargo.toml
Diffstat (limited to 'azalea-auth/Cargo.toml')
| -rw-r--r-- | azalea-auth/Cargo.toml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/azalea-auth/Cargo.toml b/azalea-auth/Cargo.toml index c33945df..84b06884 100644 --- a/azalea-auth/Cargo.toml +++ b/azalea-auth/Cargo.toml @@ -15,7 +15,7 @@ crypto-bigint.workspace = true # TODO: Remove when rsa is fixed. crypto-primes.workspace = true # TODO: Remove when rsa is fixed. indexmap.workspace = true md-5.workspace = true -reqwest = { workspace = true, default-features = false, features = [ +reqwest = { workspace = true, optional = true, default-features = false, features = [ "json", "rustls-tls", ] } @@ -32,5 +32,9 @@ uuid = { workspace = true, features = ["serde", "v3"] } env_logger.workspace = true tokio = { workspace = true, features = ["full"] } +[features] +default = ["online-mode"] +online-mode = ["dep:reqwest"] + [lints] workspace = true |
