Cargo Features
cbsk_base has no features set by default.
[dependencies]
cbsk_base = { version = "2.0.6", features = ["tokio_full", "serde_derive", "serde_derive_json", "serde_all", "macro", "result", "root_path", "anyhow", "once_cell", "log", "async-trait", "async-recursion", "parking_lot", "fastdate"] }
- tokio_full
-
tokio:
enable everything
- serde_derive serde_derive_json?
-
serde:
Provide derive(Serialize, Deserialize) macros.
- serde_derive_json result? serde_all? = serde_derive, serde_json
- serde_all = serde_derive_json
-
serde:
Opt into impls for Rc<T> and Arc<T>. Serializing and deserializing these types does not preserve identity and may result in multiple copies of the same data.
Be sure that this is what you want before enabling this feature. - macro result?
-
Affects
cbsk_base::r#macro
… - result = macro, serde_derive_json
-
Affects
cbsk_base::result
… - root_path
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.
- tokio tokio_full?
- anyhow implicit feature
-
Enables anyhow
anyhow:
Flexible concrete Error type built on std::error::Error
- once_cell implicit feature
-
Enables once_cell
once_cell:
Single assignment cells and lazy values
- serde serde_all? serde_derive?
-
Affects
cbsk_base::json
… - serde_json serde_derive_json?
-
Affects
json::to_json
,json::from_json
,serialize_fn::number_to_bool
,serialize_fn::str_to_bool
,serialize_fn::str_or_default
… - log implicit feature
-
Enables log
log:
A lightweight logging facade for Rust
- async-trait implicit feature
-
Enables async-trait
async-trait:
Type erasure for async trait methods
- async-recursion implicit feature
-
Enables async-recursion
async-recursion:
Recursion for async functions
- parking_lot implicit feature
-
Enables parking_lot
parking_lot:
More compact and efficient implementations of the standard synchronization primitives
- fastdate implicit feature
-
Enables fastdate
fastdate:
Rust fast date carte