Skip to content

Commit c5ee23e

Browse files
malteneussd-e-s-o
authored andcommitted
Emphasize cargo feature flags in README.md
1 parent 606b4b1 commit c5ee23e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,18 @@ async fn it_still_works() {
7777
}
7878
```
7979

80-
#### Features
80+
#### Cargo Feature Flags
81+
82+
```toml
83+
# Cargo.toml
84+
[dependencies]
85+
# PICK ONE OF THE FOLLOWING:
86+
87+
# Support log crate only (default)
88+
test-log = { version = "0.2" }
89+
# Support tracing crate
90+
test-log = { version = "0.2", features = [ "trace" ] }
91+
```
8192

8293
The crate comes with two features pertaining "backend" initialization:
8394
- `log`, enabled by default, controls initialization for the `log`

0 commit comments

Comments
 (0)