diff options
| author | Zeyla Hellyer <[email protected]> | 2017-10-12 21:41:21 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-10-14 12:27:07 -0700 |
| commit | 11b85ca6799b9984481119851f983d8e3c84cdc0 (patch) | |
| tree | d24bf270bd7e48c77ea7f3471f0dbe0a219f8f1f /examples/05_command_framework/src | |
| parent | Fix font-height in relation to the logo (#192) (diff) | |
| download | serenity-11b85ca6799b9984481119851f983d8e3c84cdc0.tar.xz serenity-11b85ca6799b9984481119851f983d8e3c84cdc0.zip | |
Feature-flag extern crates behind their name
An issue with modifying what features enable compilation of what
crates was possible due to crates being feature-flagged behind a module
name instead of their own name.
Instead of writing cfg features for crates as:
```rust
\#[cfg(feature = "utils")]
extern crate base64;
```
Write the feature name as its own name:
```rust
\#[cfg(feature = "base64")]
extern crate base64;
```
This way, crates can simply have compilation enabled in the project's
features section in the `Cargo.toml` file.
Diffstat (limited to 'examples/05_command_framework/src')
0 files changed, 0 insertions, 0 deletions