@@ -226,7 +226,7 @@ The feature `evcxr` should be enabled when including Plotters to Jupyter Noteboo
226
226
The following code shows a minimal example of this.
227
227
228
228
``` text
229
- :dep plotters = { version = "^0.3.6", default_features = false, features = ["evcxr", "all_series", "all_elements"] }
229
+ :dep plotters = { version = "^0.3.6", default-features = false, features = ["evcxr", "all_series", "all_elements"] }
230
230
extern crate plotters;
231
231
use plotters::prelude::*;
232
232
@@ -504,7 +504,7 @@ plotters = { git = "https://github.com/plotters-rs/plotters.git" }
504
504
505
505
### Reducing Depending Libraries && Turning Off Backends
506
506
Plotters now supports use features to control the backend dependencies. By default, ` BitMapBackend ` and ` SVGBackend ` are supported,
507
- use ` default_features = false` in the dependency description in ` Cargo.toml ` and you can cherry-pick the backend implementations.
507
+ use ` default-features = false` in the dependency description in ` Cargo.toml ` and you can cherry-pick the backend implementations.
508
508
509
509
- ` svg ` Enable the ` SVGBackend `
510
510
- ` bitmap ` Enable the ` BitMapBackend `
@@ -513,16 +513,16 @@ For example, the following dependency description would avoid compiling with bit
513
513
514
514
``` toml
515
515
[dependencies ]
516
- plotters = { git = " https://github.com/plotters-rs/plotters.git" , default_features = false , features = [" svg" ] }
516
+ plotters = { git = " https://github.com/plotters-rs/plotters.git" , default-features = false , features = [" svg" ] }
517
517
```
518
518
519
519
The library also allows consumers to make use of the [ ` Palette ` ] ( https://crates.io/crates/palette/ ) crate's color types by default.
520
- This behavior can also be turned off by setting ` default_features = false` .
520
+ This behavior can also be turned off by setting ` default-features = false` .
521
521
522
522
### List of Features
523
523
524
524
This is the full list of features that is defined by ` Plotters ` crate.
525
- Use ` default_features = false` to disable those default enabled features,
525
+ Use ` default-features = false` to disable those default enabled features,
526
526
and then you should be able to cherry-pick what features you want to include into ` Plotters ` crate.
527
527
By doing so, you can minimize the number of dependencies down to only ` itertools ` and compile time is less than 6s.
528
528
0 commit comments