Cargo Features

[dependencies]
serial_test = { version = "3.1.1", default-features = false, features = ["logging", "test_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 test_logging? = log

Switches on debug logging (and requires the log package)

test_logging = env_logger, logging

Switches on debug with env_logger. Generally only needed by internal serial_test work.

Enables test_logging of serial_test_derive

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. These features may have been created by mistake, and this functionality may be removed in the future.

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

Enables env_logger ^0.10