Skip to content

Commit f2183f3

Browse files
simoncozensctrlcctrlv
authored andcommitted
Make it possible to build without skia
1 parent 8f68ac3 commit f2183f3

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ glifimage = ["image"]
3535
glifserde = ["serde", "kurbo/serde", "integer_or_float/serde", "plist/default"]
3636
default = ["glifimage", "glifserde"]
3737
skia = ["default", "skia-safe"]
38-
mfek = ["default", "skia"]
38+
mfek = ["default"]
3939
more-image-formats = ["image/gif", "image/jpeg", "image/webp", "image/bmp", "image/tiff"]
4040
more-iof = ["integer_or_float/num-traits"]
4141

src/glif/mfek.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@ use std::collections::HashSet;
22
use std::path as stdpath;
33
use std::{fmt::Display, str::FromStr};
44

5-
use skia_safe::{self as skia, Path};
65
use kurbo::Affine;
7-
use serde::{Serialize, Deserialize};
6+
use serde::{Deserialize, Serialize};
7+
#[cfg(feature = "skia")]
8+
use skia_safe::{self as skia, Path};
89

910
use crate::anchor::Anchor;
1011
use crate::component::{ComponentRect, GlifComponents};
1112
use crate::error::{mfek::*, GlifParserError};
1213
use crate::glif::Glif;
1314
use crate::guideline::Guideline;
14-
use crate::outline::{Outline, Contour, OutlineType};
15+
#[cfg(feature = "skia")]
1516
use crate::outline::skia::{SkiaPaths, SkiaPointTransforms, ToSkiaPath, ToSkiaPaths};
17+
use crate::outline::{Contour, Outline, OutlineType};
1618
use crate::point::{Point, PointData, PointType};
1719

1820
#[macro_use] pub mod layer;

0 commit comments

Comments
 (0)