Skip to content

Commit b4381bf

Browse files
TatriX38
authored andcommitted
Format Cargo.toml
1 parent c76ef24 commit b4381bf

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

Cargo.toml

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "plotters"
3-
version = "0.2.15"
3+
version = "0.3.0-pre"
44
authors = ["Hao Hou <haohou302@gmail.com>"]
55
edition = "2018"
66
license = "MIT"
@@ -15,7 +15,7 @@ exclude = ["doc-template/*"]
1515
[dependencies]
1616
num-traits = "0.2.11"
1717
chrono = { version = "0.4.11", optional = true }
18-
# Plotters backend deps
18+
# Plotters backend deps
1919
# TODO: Update the version when publish
2020
plotters-backend = "0.0.*"
2121
plotters-svg = {version = "0.1.*", optional = true}
@@ -41,41 +41,54 @@ version = "0.2.62"
4141

4242
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
4343
version = "0.3.39"
44-
features = ['Document', 'DomRect', 'Element', 'HtmlElement', 'Node', 'Window', 'HtmlCanvasElement', 'CanvasRenderingContext2d']
44+
features = [
45+
"Document",
46+
"DomRect",
47+
"Element",
48+
"HtmlElement",
49+
"Node",
50+
"Window",
51+
"HtmlCanvasElement",
52+
"CanvasRenderingContext2d",
53+
]
4554

4655
[features]
4756
default = [
48-
"bitmap_backend", "bitmap_encoder", "bitmap_gif",
49-
"svg_backend",
50-
"chrono",
51-
"ttf",
52-
"image",
53-
"deprecated_items", "all_series", "all_elements"
54-
]
57+
"bitmap_backend", "bitmap_encoder", "bitmap_gif",
58+
"svg_backend",
59+
"chrono",
60+
"ttf",
61+
"image",
62+
"deprecated_items", "all_series", "all_elements"
63+
]
5564
all_series = ["area_series", "line_series", "point_series"]
5665
all_elements = ["errorbar", "candlestick", "boxplot", "histogram"]
66+
5767
# Tier 1 Backends
5868
bitmap_backend = ["plotters-bitmap", "ttf"]
5969
bitmap_encoder = ["plotters-bitmap/image_encoder"]
6070
bitmap_gif = ["plotters-bitmap/gif_backend"]
6171
svg_backend = ["plotters-svg"]
62-
# Elements
72+
73+
# Elements
6374
errorbar = []
6475
candlestick = []
6576
boxplot = []
66-
# Series
77+
78+
# Series
6779
histogram = []
6880
area_series = []
6981
line_series = []
7082
point_series = []
83+
7184
# Font implemnetation
7285
ttf = ["font-kit", "rusttype", "lazy_static"]
73-
# Misc
86+
87+
# Misc
7488
datetime = ["chrono"]
7589
evcxr = ["svg_backend"]
7690
deprecated_items = [] # Keep some of the deprecated items for backward compatibility
7791

78-
7992
[dev-dependencies]
8093
rand = "0.7.3"
8194
itertools = "0.9.0"

0 commit comments

Comments
 (0)