Skip to content

Commit a8a0e74

Browse files
committed
Better Cargo.toml
1 parent 62d978b commit a8a0e74

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

questdb-rs/Cargo.toml

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -65,58 +65,59 @@ rstest = "0.25.0"
6565
[features]
6666
default = ["sync-sender", "tls-webpki-certs", "ring-crypto"]
6767

68-
# Sync ILP/TCP + ILP/HTTP Sender
68+
## Sync ILP/TCP + ILP/HTTP Sender
6969
sync-sender = ["sync-sender-tcp", "sync-sender-http"]
7070

71-
# Sync ILP/TCP
71+
## Sync ILP/TCP
7272
sync-sender-tcp = ["_sync-sender", "_sender-tcp"]
7373

74-
# Sync ILP/HTTP
74+
## Sync ILP/HTTP
7575
sync-sender-http = ["_sync-sender", "_sender-http", "dep:ureq", "dep:serde_json", "dep:rand"]
7676

77-
# Async ILP/TCP + ILP/HTTP Sender
77+
## Async ILP/TCP + ILP/HTTP Sender
7878
async-sender = ["_async-sender", "async-sender-tcp", "async-sender-http"]
7979

80-
# Async ILP/TCP Sender
80+
## Async ILP/TCP Sender
8181
async-sender-tcp = ["_async-sender", "_sender-tcp", "dep:tokio", "dep:tokio-rustls"]
8282

83-
# Async ILP/HTTP Sender
83+
## Async ILP/HTTP Sender
8484
async-sender-http = ["_sender-http", "dep:tokio", "dep:hyper"]
8585

86-
# Compatiblity alias.
86+
## Compatiblity alias.
8787
ilp-over-http = ["sync-sender-tcp"]
8888

89-
# Allow use OS-provided root TLS certificates
89+
## Allow use OS-provided root TLS certificates
9090
tls-native-certs = ["dep:rustls-native-certs"]
9191

92-
# Allow use of the `webpki-roots` crate to validate TLS certificates.
92+
## Allow use of the `webpki-roots` crate to validate TLS certificates.
9393
tls-webpki-certs = ["dep:webpki-roots"]
9494

95-
# Use `aws-lc-rs` as the cryto library.
95+
## Use `aws-lc-rs` as the cryto library.
9696
aws-lc-crypto = ["dep:aws-lc-rs", "rustls/aws-lc-rs"]
9797

98-
# Use `ring` as the crypto library.
98+
## Use `ring` as the crypto library.
9999
ring-crypto = ["dep:ring", "rustls/ring"]
100100

101-
# Allow skipping verification of insecure certificates.
101+
## Allow skipping verification of insecure certificates.
102102
insecure-skip-verify = []
103103

104-
# Enable code-generation in `build.rs` for additional tests.
104+
## Enable code-generation in `build.rs` for additional tests.
105105
json_tests = []
106106

107-
# Enable methods to create timestamp objects from chrono::DateTime objects.
107+
## Enable methods to create timestamp objects from chrono::DateTime objects.
108108
chrono_timestamp = ["chrono"]
109109

110110
# Hidden derived features, used in code to enable-disable code sections. Don't use directly.
111-
_sender-tcp = []
112-
_sender-http = []
113-
_sync-sender = []
114-
_async-sender = []
115-
116-
# The `aws-lc-crypto` and `ring-crypto` features are mutually exclusive,
117-
# thus compiling with `--all-features` will not work.
118-
# Instead compile with `--features almost-all-features`.
119-
# This is useful for quickly running `cargo test` or `cargo clippy`.
111+
_sender-tcp = [] # equiv of any(sync-sender-tcp, async-sender-tcp)
112+
_sender-http = [] # equiv of any(sync-sender-http, async-sender-http)
113+
_sync-sender = [] # equiv of any(sync-sender-tcp, sync-sender-http)
114+
_async-sender = [] # equiv of any(async-sender-tcp, async-sender-http)
115+
116+
## Enable all cross-compatible features.
117+
## The `aws-lc-crypto` and `ring-crypto` features are mutually exclusive,
118+
## thus compiling with `--all-features` will not work.
119+
## Instead use `--features almost-all-features`.
120+
## This is useful for quickly running `cargo test` or `cargo clippy`.
120121
almost-all-features = [
121122
"sync-sender",
122123
"async-sender",

0 commit comments

Comments
 (0)