Cargo Features

[dependencies]
xelf = { version = "0.4.7", default-features = false, features = ["full", "minimal", "common", "async", "bytes", "collections", "datetime", "db", "derive", "esvc", "fs", "ffi", "future", "hashmap", "hex", "io", "json", "log", "net", "num", "ptr", "rustls", "serde", "signal", "snowflake", "str", "sync", "tokio", "vec", "ritelinked"] }
default = minimal

The minimal feature is set by default whenever xelf is added without default-features = false somewhere in the dependency tree.

full = common, db, ffi
minimal default common? db? = collections, datetime, derive, io, once_cell
common full? = async, bytes, cfg-if, fs, hashmap, hex, json, log, minimal, net, ouroboros, ptr, regex, serde, signal, str, sync
async common? db? = async-stream, async-trait, esvc, flume, future, futures, futures-util, mio, parking_lot, pin-project, tokio
bytes common? db? = bytestring, zerocopy

Enables bytes

collections db? minimal serde? = maplit, smallvec, vec

Affects xelf::collections

datetime db? minimal = chrono, num

Affects xelf::datetime

db full? = async, bytes, collections, datetime, hashmap, json, minimal, ouroboros, regex, rust_decimal, sea-orm, serde, snowflake, sqlx, str, strum, sync

Affects xelf::db

derive minimal = derive_more, smart-default, strum
esvc async? = tokio

Affects xelf::esvc

fs common? = io, path-absolutize, tempfile

Affects xelf::fs

ffi full? = cfg-if, hashlink, str, sync, zerocopy

Affects xelf::ffi, str::StrXlf.to_cstring, str::StrXlf.strlcpy, str::BytesXlf.to_cstr_with_nul

future async? signal? = futures, futures-util, pin-project, tokio

Affects xelf::future

hashmap common? db? = ahash, hashlink, maplit
hex common? serde? = hex-literal

Enables hex

io fs? minimal
json common? db? = serde

Affects xelf::json

log common? = dotenv, env_logger

Enables log

net common? = ipnetwork, socket2, url, winapi

Affects xelf::net

num datetime? serde? = num-traits

Affects serde::de_x_num, serde::de_x_float

ptr common? str? = once_cell
rustls = rustls-pemfile, tokio-rustls

Enables aws-lc-rs and rustls

serde common? db? json? = base64, collections, hex, num, serde_json, serde_repr, serde_with

Enables serde, serde of bytestring and chrono

Affects datetime::serde_x_utc, xelf::serde

signal common? = future

Enables signal of tokio-stream

snowflake db? = smart-default

Affects xelf::snowflake

str common? db? ffi? = ptr

Affects xelf::str

sync common? db? ffi? = arc-swap, crossbeam, flume, num_cpus, parking_lot
tokio async? esvc? future? = tokio-stream, tokio-util

Enables tokio

vec collections?

Affects xelf::vec

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

ahash hashmap?
maplit collections? hashmap?
ritelinked implicit feature

Enables ritelinked

ritelinked:

HashMap-like containers that hold their key-value pairs in a user controllable order

smallvec collections?
bytestring bytes? serde?
chrono datetime? serde?
derive_more derive?

Enables derive_more ^1.0

smart-default derive? snowflake?
strum db? derive?

Enables strum ^0.26

cfg-if common? ffi?
dotenv log?
env_logger log?
path-absolutize fs?
async-stream async?
async-trait async?
futures async? future?
futures-util async? future?
mio async?
pin-project async? future?
tokio-rustls rustls?
tokio-stream signal? tokio?
tokio-util tokio?
hex-literal hex?
ipnetwork net?
socket2 net?
url net?
num-traits num?
num_cpus sync?
zerocopy bytes? ffi?
once_cell minimal ptr?
ouroboros common? db?
regex common? db?

Affects str::StrXlf.render

base64 serde?
serde_json serde?

Affects xelf::prelude.JsonMap

serde_repr serde?
serde_with serde?
tempfile fs?
rustls-pemfile rustls?
arc-swap sync?
crossbeam sync?
flume async? sync?
parking_lot async? sync?
rust_decimal db?
sea-orm db?
sqlx db?
winapi win net?