Cargo Features

BitBazaar has no features set by default.

[dependencies]
bitbazaar = { version = "0.8.0", features = ["collector", "tarball", "log-filter", "aes256", "md5", "sha", "password", "timing", "cli", "system", "redis", "opentelemetry-grpc", "opentelemetry-http", "rayon", "test", "cookies_ssr", "cookies_wasm"] }
collector = tarball

Enables reqwest and tempfile

reqwest:

Not in default, but likely used in multiple features:

tarball collector?

Enables flate2 and tar

flate2:

FEAT: collector:

FEAT: tarball:

log-filter

Enables regex

FEAT: password:

FEAT: log-filter:

Affects builder::SharedOpts.loc_matcher

aes256

Enables aes-gcm-siv, argon2, and bincode

aes-gcm-siv:

FEAT: aes256:

Affects crypto::aes256

md5

Enables md-5

FEAT: md5:

Affects crypto::md5

sha

Enables sha2

FEAT: sha:

Affects crypto::sha

password

Enables argon2, getrandom of rand

Affects crypto::password

timing

Enables comfy-table

FEAT: timing:

Affects bitbazaar::timing

cli

Enables conch-parser, homedir ^0.2, normpath, and strum ^0.25

normpath:

FEAT: cli:

Affects bitbazaar::cli

system

Enables sysinfo ^0.30

FEAT: system:

redis

Enables deadpool-redis, portpicker, rand, redis, sha1_smol, and uuid

deadpool-redis:

FEAT: redis:

Affects bitbazaar::redis, flexi_logger::FlexiLogFromRedis

opentelemetry-grpc

Enables http, opentelemetry ^0.21, and opentelemetry-appender-tracing ^0.2.0 and opentelemetry-semantic-conventions ^0.13.0, opentelemetry_sdk ^0.21, tracing-log, and tracing-opentelemetry ^0.22

tracing-log:

FEAT: opentelemetry-(grpc|http):
Only needed whilst we're using ot_tracing_bridge.rs

and grpc-tonic of opentelemetry-otlp ^0.14

opentelemetry-otlp:

grpc using tonic

Affects builder::OtlpConf.grpc_port, builder::OtlpConf, global_fns::meter, global_fns::global_meter, global_fns::set_span_parent_from_http_headers, global_fns::set_response_headers_from_ctx, out::OtlpProviders, log::otlp

opentelemetry-http

Enables http, opentelemetry ^0.21, and opentelemetry-appender-tracing ^0.2.0, opentelemetry-semantic-conventions ^0.13.0, opentelemetry_sdk ^0.21, tracing-log, and tracing-opentelemetry ^0.22, grpc-tonic, http-proto, reqwest-client and reqwest-rustls of opentelemetry-otlp ^0.14

Affects builder::OtlpConf.http_endpoint, builder::OtlpConf.http_headers, builder::OtlpConf, global_fns::meter, global_fns::global_meter, global_fns::set_span_parent_from_http_headers, global_fns::set_response_headers_from_ctx, out::OtlpProviders, log::otlp

rayon

Enables rayon

FEAT: rayon:

test

Enables rstest

FEAT: test

Affects bitbazaar::test

cookies_ssr

Cookie deps depending on wasm or not:

Enables http, leptos, and leptos_axum, cookie of axum-extra

Affects bitbazaar::cookies

cookies_wasm

Enables http and wasm-cookies

wasm-cookies:

FEAT: cookies:

Affects bitbazaar::cookies

Features from optional dependencies

Add your dependencies here