11#![ warn( missing_docs) ]
2+ #![ cfg_attr( doc_cfg, feature( doc_cfg) ) ]
23/*!
34
45# Plotters - A Rust drawing library focusing on data plotting for both WASM and native applications 🦀📈🚀
@@ -796,12 +797,14 @@ pub mod style;
796797
797798/// Evaluation Context for Rust. See [the evcxr crate](https://crates.io/crates/evcxr) for more information.
798799#[ cfg( feature = "evcxr" ) ]
800+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "evcxr" ) ) ) ]
799801pub mod evcxr;
800802
801803#[ cfg( test) ]
802804pub use crate :: drawing:: { check_color, create_mocked_drawing_area} ;
803805
804806#[ cfg( feature = "palette_ext" ) ]
807+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "palette_ext" ) ) ) ]
805808pub use palette;
806809
807810/// The module imports the most commonly used types and modules in Plotters
@@ -825,6 +828,7 @@ pub mod prelude {
825828 pub use crate :: coord:: combinators:: LogRange ;
826829
827830 #[ cfg( feature = "chrono" ) ]
831+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "chrono" ) ) ) ]
828832 pub use crate :: coord:: types:: {
829833 IntoMonthly , IntoYearly , RangedDate , RangedDateTime , RangedDuration ,
830834 } ;
@@ -836,23 +840,30 @@ pub mod prelude {
836840
837841 // Series helpers
838842 #[ cfg( feature = "area_series" ) ]
843+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "area_series" ) ) ) ]
839844 pub use crate :: series:: AreaSeries ;
840845 #[ cfg( feature = "histogram" ) ]
846+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "histogram" ) ) ) ]
841847 pub use crate :: series:: Histogram ;
842848 #[ cfg( feature = "point_series" ) ]
849+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "point_series" ) ) ) ]
843850 pub use crate :: series:: PointSeries ;
844851 #[ cfg( feature = "surface_series" ) ]
852+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "surface_series" ) ) ) ]
845853 pub use crate :: series:: SurfaceSeries ;
846854 #[ cfg( feature = "line_series" ) ]
855+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "line_series" ) ) ) ]
847856 pub use crate :: series:: { DashedLineSeries , DottedLineSeries , LineSeries } ;
848857
849858 // Styles
850859 pub use crate :: style:: { BLACK , BLUE , CYAN , GREEN , MAGENTA , RED , TRANSPARENT , WHITE , YELLOW } ;
851860
852861 #[ cfg( feature = "full_palette" ) ]
862+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "full_palette" ) ) ) ]
853863 pub use crate :: style:: full_palette;
854864
855865 #[ cfg( feature = "colormaps" ) ]
866+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "colormaps" ) ) ) ]
856867 pub use crate :: style:: colors:: colormaps:: * ;
857868
858869 pub use crate :: style:: {
@@ -868,20 +879,25 @@ pub mod prelude {
868879 } ;
869880
870881 #[ cfg( feature = "boxplot" ) ]
882+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "boxplot" ) ) ) ]
871883 pub use crate :: element:: Boxplot ;
872884 #[ cfg( feature = "candlestick" ) ]
885+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "candlestick" ) ) ) ]
873886 pub use crate :: element:: CandleStick ;
874887 #[ cfg( feature = "errorbar" ) ]
888+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "errorbar" ) ) ) ]
875889 pub use crate :: element:: ErrorBar ;
876890
877891 #[ cfg( feature = "bitmap_backend" ) ]
892+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "bitmap_backend" ) ) ) ]
878893 pub use crate :: element:: BitMapElement ;
879894
880895 // Data
881896 pub use crate :: data:: Quartiles ;
882897
883898 // TODO: This should be deprecated and completely removed
884899 #[ cfg( feature = "deprecated_items" ) ]
900+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "deprecated_items" ) ) ) ]
885901 #[ allow( deprecated) ]
886902 pub use crate :: element:: Path ;
887903
@@ -893,25 +909,30 @@ pub mod prelude {
893909 Result < T , crate :: drawing:: DrawingAreaErrorKind < D :: ErrorType > > ;
894910
895911 #[ cfg( feature = "evcxr" ) ]
912+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "evcxr" ) ) ) ]
896913 pub use crate :: evcxr:: evcxr_figure;
897914
898915 // Re-export tier 1 backends for backward compatibility
899916 #[ cfg( feature = "bitmap_backend" ) ]
917+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "bitmap_backend" ) ) ) ]
900918 pub use plotters_bitmap:: BitMapBackend ;
901919
902920 #[ cfg( feature = "svg_backend" ) ]
921+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "svg_backend" ) ) ) ]
903922 pub use plotters_svg:: SVGBackend ;
904923}
905924
906925/// This module contains some useful re-export of backend related types.
907926pub mod backend {
908927 pub use plotters_backend:: DrawingBackend ;
909928 #[ cfg( feature = "bitmap_backend" ) ]
929+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "bitmap_backend" ) ) ) ]
910930 pub use plotters_bitmap:: {
911931 bitmap_pixel:: { BGRXPixel , PixelFormat , RGBPixel } ,
912932 BitMapBackend ,
913933 } ;
914934 #[ cfg( feature = "svg_backend" ) ]
935+ #[ cfg_attr( doc_cfg, doc( cfg( feature = "svg_backend" ) ) ) ]
915936 pub use plotters_svg:: SVGBackend ;
916937}
917938
0 commit comments