# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "ggplot-rs"
version = "0.11.0"
authors = ["Simon Müller <sm@data-zoo.de>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust implementation of ggplot2's Grammar of Graphics"
homepage = "https://github.com/sipemu/ggplot-rs"
documentation = "https://docs.rs/ggplot-rs"
readme = "README.md"
keywords = [
    "ggplot2",
    "plotting",
    "dataviz",
    "charts",
    "grammar",
]
categories = [
    "visualization",
    "science",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/sipemu/ggplot-rs"

[features]
arrow = ["dep:arrow"]
cli = [
    "dep:clap",
    "dep:duckdb",
    "serde",
    "dep:toml",
    "dep:serde_json",
    "sf",
]
default = ["polars"]
geojson = [
    "sf",
    "dep:serde_json",
]
polars = ["dep:polars"]
regression = [
    "dep:anofox-regression",
    "dep:faer",
]
serde = ["dep:serde"]
sf = []
wasm = [
    "sf",
    "dep:wasm-bindgen",
    "dep:serde_json",
]

[lib]
name = "ggplot_rs"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "ggplot-rs"
path = "src/bin/ggplot.rs"
required-features = ["cli"]

[[example]]
name = "annotations"
path = "examples/annotations.rs"
required-features = ["polars"]

[[example]]
name = "bar_chart"
path = "examples/bar_chart.rs"
required-features = ["polars"]

[[example]]
name = "color_palettes"
path = "examples/color_palettes.rs"
required-features = ["polars"]

[[example]]
name = "continuous_color"
path = "examples/continuous_color.rs"
required-features = ["polars"]

[[example]]
name = "coord_flip"
path = "examples/coord_flip.rs"
required-features = ["polars"]

[[example]]
name = "density"
path = "examples/density.rs"
required-features = ["polars"]

[[example]]
name = "faceted"
path = "examples/faceted.rs"
required-features = ["polars"]

[[example]]
name = "gallery"
path = "examples/gallery.rs"
required-features = ["polars"]

[[example]]
name = "histogram"
path = "examples/histogram.rs"
required-features = ["polars"]

[[example]]
name = "loess_smooth"
path = "examples/loess_smooth.rs"
required-features = ["polars"]

[[example]]
name = "log_scale"
path = "examples/log_scale.rs"
required-features = ["polars"]

[[example]]
name = "scatter"
path = "examples/scatter.rs"
required-features = ["polars"]

[[example]]
name = "spatial"
path = "examples/spatial.rs"
required-features = [
    "sf",
    "polars",
]

[[example]]
name = "supplier_leadtime"
path = "examples/supplier_leadtime.rs"

[[test]]
name = "a58_polar"
path = "tests/a58_polar.rs"

[[test]]
name = "a59_fonts"
path = "tests/a59_fonts.rs"

[[test]]
name = "a60_serde_config"
path = "tests/a60_serde_config.rs"

[[test]]
name = "a63_backend"
path = "tests/a63_backend.rs"

[[test]]
name = "cov_builder"
path = "tests/cov_builder.rs"

[[test]]
name = "cov_gaps"
path = "tests/cov_gaps.rs"

[[test]]
name = "cov_gaps2"
path = "tests/cov_gaps2.rs"

[[test]]
name = "cov_geoms"
path = "tests/cov_geoms.rs"

[[test]]
name = "cov_scales"
path = "tests/cov_scales.rs"

[[test]]
name = "cov_stats_data"
path = "tests/cov_stats_data.rs"

[[test]]
name = "cov_themes"
path = "tests/cov_themes.rs"

[[test]]
name = "extended_breaks_r"
path = "tests/extended_breaks_r.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[[test]]
name = "issue10_glm_smooth"
path = "tests/issue10_glm_smooth.rs"

[[test]]
name = "issue11_quantile"
path = "tests/issue11_quantile.rs"

[[test]]
name = "issue12_ellipse"
path = "tests/issue12_ellipse.rs"

[[test]]
name = "issue13_transforms"
path = "tests/issue13_transforms.rs"

[[test]]
name = "issue14_binned"
path = "tests/issue14_binned.rs"

[[test]]
name = "issue15_filled_contours"
path = "tests/issue15_filled_contours.rs"

[[test]]
name = "issue16_raster_summary2d"
path = "tests/issue16_raster_summary2d.rs"

[[test]]
name = "issue17_coordtrans"
path = "tests/issue17_coordtrans.rs"

[[test]]
name = "issue19_axis"
path = "tests/issue19_axis.rs"

[[test]]
name = "issue19_datetime"
path = "tests/issue19_datetime.rs"

[[test]]
name = "issue20_formatters"
path = "tests/issue20_formatters.rs"

[[test]]
name = "issue21_facet_stat"
path = "tests/issue21_facet_stat.rs"

[[test]]
name = "issue21_space"
path = "tests/issue21_space.rs"

[[test]]
name = "issue22_axis_angle"
path = "tests/issue22_axis_angle.rs"

[[test]]
name = "issue22_legend_inside"
path = "tests/issue22_legend_inside.rs"

[[test]]
name = "issue22_tag_dodge"
path = "tests/issue22_tag_dodge.rs"

[[test]]
name = "issue46_linetype"
path = "tests/issue46_linetype.rs"

[[test]]
name = "issue47_face"
path = "tests/issue47_face.rs"

[[test]]
name = "issue48_hjust"
path = "tests/issue48_hjust.rs"

[[test]]
name = "issue49_inheritance"
path = "tests/issue49_inheritance.rs"

[[test]]
name = "issue50_advanced"
path = "tests/issue50_advanced.rs"

[[test]]
name = "issue50_finalize"
path = "tests/issue50_finalize.rs"

[[test]]
name = "issue9_after_scale"
path = "tests/issue9_after_scale.rs"

[[test]]
name = "issue9_after_stat_expr"
path = "tests/issue9_after_stat_expr.rs"

[[test]]
name = "issue9_computed_aes"
path = "tests/issue9_computed_aes.rs"

[[test]]
name = "position_stack_r"
path = "tests/position_stack_r.rs"

[[test]]
name = "proptest_invariants"
path = "tests/proptest_invariants.rs"

[[test]]
name = "qq_ppoints_r"
path = "tests/qq_ppoints_r.rs"

[[test]]
name = "sf"
path = "tests/sf.rs"

[[test]]
name = "stat_bin_center_r"
path = "tests/stat_bin_center_r.rs"

[[test]]
name = "validation"
path = "tests/validation.rs"

[[bench]]
name = "pipeline"
path = "benches/pipeline.rs"
harness = false

[dependencies.anofox-regression]
version = "0.5"
optional = true

[dependencies.arrow]
version = "53"
optional = true
default-features = false

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.duckdb]
version = "1"
features = ["bundled"]
optional = true

[dependencies.faer]
version = "0.23"
features = [
    "std",
    "linalg",
]
optional = true
default-features = false

[dependencies.image]
version = "0.24"
features = ["png"]
default-features = false

[dependencies.indexmap]
version = "2"

[dependencies.plotters]
version = "0.3"
features = [
    "bitmap_backend",
    "bitmap_encoder",
    "bitmap_gif",
    "svg_backend",
    "chrono",
    "image",
    "deprecated_items",
    "all_series",
    "all_elements",
    "full_palette",
    "colormaps",
    "ab_glyph",
]
default-features = false

[dependencies.polars]
version = "0.46"
features = ["lazy"]
optional = true

[dependencies.rand]
version = "0.8"

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.toml]
version = "0.8"
optional = true

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.proptest]
version = "1"

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"
features = ["js"]
