Cargo Features

serial_test = { version = "3.0.0", default-features = false, features = ["logging", "async", "file_locks", "docsrs"] }
default = async, logging

These default features are set whenever serial_test is added without default-features = false somewhere in the dependency tree.

logging default = log

Switches on debug logging (and requires the log package)

async default = futures

Enables async features (and requires the futures package)

Enables async of serial_test_derive

Affects parallel_code_lock::local_async_parallel_core_with_return, parallel_code_lock::local_async_parallel_core, parallel_file_lock::fs_async_parallel_core_with_return, parallel_file_lock::fs_async_parallel_core, serial_code_lock::local_async_serial_core_with_return, serial_code_lock::local_async_serial_core, serial_file_lock::fs_async_serial_core_with_return, serial_file_lock::fs_async_serial_core

file_locks = fslock

The file_locks feature unlocks the file_serial/file_parallel macros (and requires the fslock package)

docsrs = document-features

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

fslock file_locks?
document-features docsrs?
log logging
futures async