Cargo Features

[dependencies]
test_tools = { version = "0.14.0", default-features = false, features = ["full", "doctest", "no_std", "use_alloc", "enabled", "normal_build", "standalone_build", "standalone_error_tools", "standalone_collection_tools", "standalone_impls_index", "standalone_mem_tools", "standalone_typing_tools", "standalone_diagnostics_tools", "error_typed", "error_untyped", "collection_constructors", "collection_into_constructors", "typing_inspect_type", "typing_is_slice", "typing_implements", "diagnostics_runtime_assertions", "diagnostics_compiletime_assertions", "diagnostics_memory_layout", "process_environment_is_cicd"] }

all-features = false

= features

default full? = enabled, process_environment_is_cicd, process_tools, standalone_build

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

full = default
doctest

for doctest shorcaomings resolution

no_std use_alloc?

doctest does not work properly for aggregators

use_alloc = no_std
enabled default

Affects test_tools::dependency, test_tools::test, test_tools::own, test_tools::orphan, test_tools::exposed, test_tools::prelude, test::own, test::orphan, test::exposed, test::prelude

normal_build
standalone_build default = standalone_collection_tools, standalone_diagnostics_tools, standalone_error_tools, standalone_impls_index, standalone_mem_tools, standalone_typing_tools

standalone_build vesion of build is used to avoid cyclic dependency when crate depend on itself

standalone_error_tools standalone_build = error_typed, error_untyped

Enables anyhow and thiserror ~1.0

anyhow:

process_tools = { workspace = true, features = [ "full" ], optional = true }

transient

error_tools

standalone_collection_tools standalone_build = collection_constructors, collection_into_constructors

Enables hashbrown ~0.14.3

collection_tools

standalone_impls_index standalone_build

Enables impls_index_meta

impls_index

standalone_mem_tools standalone_build
standalone_typing_tools standalone_build = typing_implements, typing_inspect_type, typing_is_slice
standalone_diagnostics_tools standalone_build = diagnostics_compiletime_assertions, diagnostics_memory_layout, diagnostics_runtime_assertions
error_typed standalone_error_tools?

error_tools

error_untyped standalone_error_tools?
collection_constructors standalone_collection_tools?

collection_tools

collection_into_constructors standalone_collection_tools?
typing_inspect_type standalone_typing_tools?

typing_tools

Enables enabled of inspect_type

typing_is_slice standalone_typing_tools?

Enables enabled of is_slice

typing_implements standalone_typing_tools?

Enables enabled of implements

diagnostics_runtime_assertions standalone_diagnostics_tools?

diagnostics_tools
run-time assertions

Enables pretty_assertions

diagnostics_tools

diagnostics_compiletime_assertions standalone_diagnostics_tools?

compile-time assertions

diagnostics_memory_layout standalone_diagnostics_tools?
process_tools process_environment_is_cicd default

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.

inspect_type typing_inspect_type?

Enables inspect_type

typing_tools

is_slice typing_is_slice?
implements typing_implements?