Crates.io | conf_test |
lib.rs | conf_test |
version | 0.5.0 |
source | src |
created_at | 2021-04-27 13:34:45.244024 |
updated_at | 2023-05-04 01:51:45.088147 |
description | Run configuration tests from build.rs and set available features |
homepage | |
repository | https://github.com/cehteh/conf_test.git |
max_upload_size | |
id | 390171 |
size | 32,215 |
Run configuration tests from build.rs and set available features, similar to autotools configure scripts.
ConfTest::run()
called from 'build.rs' parses 'Cargo.toml'. Then for each [feature]
defined, it checks if that feature was not set manually (with --features
) and a test in
'conf_tests/' exists. This test is then compiled and build. When that succeeds the
feature becomes enabled automatically.