1[package] 2name = "plotters" 3version = "0.3.4" 4authors = ["Hao Hou <haohou302@gmail.com>"] 5edition = "2018" 6license = "MIT" 7description = "A Rust drawing library focus on data plotting for both WASM and native applications" 8repository = "https://github.com/plotters-rs/plotters" 9homepage = "https://plotters-rs.github.io/" 10keywords = ["WebAssembly", "Visualization", "Plotting", "Drawing"] 11categories = ["visualization", "wasm"] 12readme = "README.md" 13exclude = ["doc-template", "plotters-doc-data"] 14 15[dependencies] 16num-traits = "0.2.14" 17chrono = { version = "0.4.20", optional = true } 18 19[dependencies.plotters-backend] 20#path = "../plotters-backend" 21version = "0.3" 22 23[dependencies.plotters-bitmap] 24default_features = false 25optional = true 26#path = "../plotters-bitmap" 27version = "0.3" 28 29[dependencies.plotters-svg] 30version = "^0.3" 31optional = true 32#path = "../plotters-svg" 33 34[target.'cfg(not(all(target_arch = "wasm32", not(target_os = "wasi"))))'.dependencies] 35ttf-parser = { version = "0.15.0", optional = true } 36lazy_static = { version = "1.4.0", optional = true } 37pathfinder_geometry = { version = "0.5.1", optional = true } 38font-kit = { version = "0.11.0", optional = true } 39 40[target.'cfg(not(all(target_arch = "wasm32", not(target_os = "wasi"))))'.dependencies.image] 41version = "0.24.3" 42optional = true 43default-features = false 44features = ["jpeg", "png", "bmp"] 45 46[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.wasm-bindgen] 47version = "0.2.62" 48 49[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.web-sys] 50version = "0.3.51" 51features = [ 52 "Document", 53 "DomRect", 54 "Element", 55 "HtmlElement", 56 "Node", 57 "Window", 58 "HtmlCanvasElement", 59 "CanvasRenderingContext2d", 60] 61 62[features] 63default = [ 64 "bitmap_backend", "bitmap_encoder", "bitmap_gif", 65 "svg_backend", 66 "chrono", 67 "ttf", 68 "image", 69 "deprecated_items", "all_series", "all_elements", 70 "full_palette" 71] 72all_series = ["area_series", "line_series", "point_series", "surface_series"] 73all_elements = ["errorbar", "candlestick", "boxplot", "histogram"] 74 75# Tier 1 Backends 76bitmap_backend = ["plotters-bitmap", "ttf"] 77bitmap_encoder = ["plotters-bitmap/image_encoder"] 78bitmap_gif = ["plotters-bitmap/gif_backend"] 79svg_backend = ["plotters-svg"] 80 81# Colors 82full_palette = [] 83 84# Elements 85errorbar = [] 86candlestick = [] 87boxplot = [] 88 89# Series 90histogram = [] 91area_series = [] 92line_series = [] 93point_series = [] 94surface_series = [] 95 96# Font implementation 97ttf = ["font-kit", "ttf-parser", "lazy_static", "pathfinder_geometry"] 98# dlopen fontconfig C library at runtime instead of linking at build time 99# Can be useful for cross compiling, especially considering fontconfig has lots of C dependencies 100fontconfig-dlopen = ["font-kit/source-fontconfig-dlopen"] 101 102# Misc 103datetime = ["chrono"] 104evcxr = ["svg_backend"] 105evcxr_bitmap = ["evcxr", "bitmap_backend", "plotters-svg/bitmap_encoder"] 106deprecated_items = [] # Keep some of the deprecated items for backward compatibility 107 108[dev-dependencies] 109itertools = "0.10.0" 110criterion = "0.3.6" 111rayon = "1.5.1" 112serde_json = "1.0.82" 113serde = "1.0.139" 114serde_derive = "1.0.140" 115 116[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] 117rand = "0.8.3" 118rand_distr = "0.4.0" 119rand_xorshift = "0.3.0" 120 121[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dev-dependencies] 122wasm-bindgen-test = "0.3.24" 123 124[[bench]] 125name = "benchmark" 126harness = false 127path = "benches/main.rs" 128