1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! This file tests which features are on by default
//!
//! To tests this correctly, tests should be run without using the `--features`
//! and `--no-default-features` flags to ensure that only the default features
//! are enable.
/// Tests that a feature is enabled by default.
///
/// Must first be given a unique identifier for the feature (which doesn't
/// necessarily need to be the same as the feature name, but it might be a good
/// idea), and then a string containing the feature name.
///
/// ### Example
///
/// The following code will test whether a feature named "feature_name" is
/// enabled by default.
///
/// ```
/// default_feature!{feature_id "feature_name"}
/// ```
=> ;
}
default_features!;
default_features!;