File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ readme = "README.md"
1212license = " MIT OR Apache-2.0"
1313
1414[workspace .dependencies ]
15- svg2pdf = { path = " ." , version = " 0.9.1" }
15+ svg2pdf = { path = " ." , version = " 0.9.1" , default-features = false }
1616clap = { version = " 4.4.2" , features = [" derive" ] }
1717clap_complete = " 4.4.3"
1818clap_mangen = " 0.2.14"
@@ -45,7 +45,7 @@ bench = false
4545[features ]
4646default = [" image" , " filters" ]
4747image = [" dep:image" ]
48- filters = [" dep:tiny-skia" , " dep:resvg" ]
48+ filters = [" image " , " dep:tiny-skia" , " dep:resvg" ]
4949
5050[dependencies ]
5151miniz_oxide = { workspace = true }
Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ svg2pdf = { workspace = true }
2828termcolor = { workspace = true }
2929usvg = { workspace = true }
3030
31+ [features ]
32+ default = [" svg2pdf/default" ]
33+ image = [" svg2pdf/image" ]
34+ filters = [" svg2pdf/filters" ]
35+
3136[build-dependencies ]
3237clap = { workspace = true , features = [" string" ] }
3338clap_complete = { workspace = true }
Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ impl Render for Node {
6666 content,
6767 ctx,
6868 ) ,
69+ #[ cfg( not( feature = "image" ) ) ]
70+ Node :: Image ( _) => { } ,
6971 Node :: Text ( ref text) => {
7072 group:: render (
7173 text. flattened ( ) ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ publish = false
1010
1111[dependencies ]
1212fontdb = { workspace = true }
13- svg2pdf = { workspace = true }
13+ svg2pdf = { workspace = true }
1414usvg = { workspace = true }
1515pdfium-render = { workspace = true , features = [" sync" ] }
1616pdf-writer = { workspace = true }
You can’t perform that action at this time.
0 commit comments