Skip to content

Commit 454b6e5

Browse files
committed
use "dep:" syntax in Cargo.toml for declaring ab_glyph feature
1 parent e80d4b7 commit 454b6e5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

plotters/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ ttf = ["font-kit", "ttf-parser", "lazy_static", "pathfinder_geometry"]
100100
# Can be useful for cross compiling, especially considering fontconfig has lots of C dependencies
101101
fontconfig-dlopen = ["font-kit/source-fontconfig-dlopen"]
102102

103-
ab_glyph_ = ["ab_glyph", "once_cell"]
103+
ab_glyph = ["dep:ab_glyph", "once_cell"]
104104

105105
# Misc
106106
datetime = ["chrono"]

plotters/src/style/font/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,27 @@ mod ttf;
1818
use ttf::FontDataInternal;
1919

2020
#[cfg(all(not(target_arch = "wasm32"), not(target_os = "wasi"),
21-
feature = "ab_glyph_"))]
21+
feature = "ab_glyph"))]
2222
mod ab_glyph;
2323
#[cfg(all(
2424
not(target_arch = "wasm32"), not(target_os = "wasi"),
25-
feature = "ab_glyph_", not(feature = "ttf")
25+
feature = "ab_glyph", not(feature = "ttf")
2626
))]
2727
use self::ab_glyph::FontDataInternal;
2828
#[cfg(all(
2929
not(target_arch = "wasm32"), not(target_os = "wasi"),
30-
feature = "ab_glyph_"
30+
feature = "ab_glyph"
3131
))]
3232
pub use self::ab_glyph::register_font;
3333

3434
#[cfg(all(
3535
not(all(target_arch = "wasm32", not(target_os = "wasi"))),
36-
not(feature = "ttf"), not(feature = "ab_glyph_")
36+
not(feature = "ttf"), not(feature = "ab_glyph")
3737
))]
3838
mod naive;
3939
#[cfg(all(
4040
not(all(target_arch = "wasm32", not(target_os = "wasi"))),
41-
not(feature = "ttf"), not(feature = "ab_glyph_")
41+
not(feature = "ttf"), not(feature = "ab_glyph")
4242
))]
4343
use naive::FontDataInternal;
4444

0 commit comments

Comments
 (0)