@@ -15,7 +15,6 @@ categories = ["gui"]
15
15
exclude = [" ./assets/*" , " ./doc/*" , " ./examples/*" ]
16
16
autoexamples = false
17
17
edition = " 2021"
18
- build = " build.rs"
19
18
20
19
[lib ]
21
20
crate-type = [" cdylib" , " rlib" ]
@@ -28,27 +27,29 @@ time = { version = "0.3.25", default-features = false, features = ["std", "serde
28
27
allsorts = { version = " 0.15" , git = " https://github.com/fschutt/allsorts" , branch = " optional-brotli" , default-features = false , features = [" flate2_rust" ] }
29
28
image = { version = " 0.25" , default-features = false }
30
29
svg2pdf = { version = " 0.12.0" }
31
- azul-css = { git = " https://github.com/fschutt/azul" , rev = " a09ccbd5be6429f8c40c1acd5ebe05850a45380f" , default-features = false }
32
- azul-css-parser = { git = " https://github.com/fschutt/azul" , rev = " a09ccbd5be6429f8c40c1acd5ebe05850a45380f" , default-features = false }
33
- azul-core = { git = " https://github.com/fschutt/azul" , rev = " a09ccbd5be6429f8c40c1acd5ebe05850a45380f" , default-features = false , features = [" std" ] }
34
- azul-layout = { git = " https://github.com/fschutt/azul" , rev = " a09ccbd5be6429f8c40c1acd5ebe05850a45380f" , default-features = false , features = [" std" , " text_layout" ] }
35
- azul-text-layout = { git = " https://github.com/fschutt/azul" , rev = " a09ccbd5be6429f8c40c1acd5ebe05850a45380f" , default-features = false }
36
- azulc = { git = " https://github.com/fschutt/azul" , rev = " a09ccbd5be6429f8c40c1acd5ebe05850a45380f" , default-features = false , features = [" std" , " xml" , " text_layout" , " font_loading" ] }
37
- rust-fontconfig = { version = " 0.1.13" , default-features = false }
38
- xmlparser = { version = " 0.13.6" , default-features = false }
30
+ base64 = " 0.22.1"
39
31
serde = { version = " 1" }
40
32
serde_derive = { version = " 1" }
41
- serde_json = { version = " 1" }
42
- wasm-bindgen = { version = " 0.2" , optional = true }
43
- base64 = " 0.22.1"
44
- flate2 = " 1.0.35"
33
+ flate2 = " 1.0.35" # for decompression of builtin fonts
34
+ # feature=html, independent of feature=wasm
35
+ azul-css = { git = " https://github.com/fschutt/azul" , rev = " a09ccbd5be6429f8c40c1acd5ebe05850a45380f" , default-features = false , optional = true }
36
+ azul-css-parser = { git = " https://github.com/fschutt/azul" , rev = " a09ccbd5be6429f8c40c1acd5ebe05850a45380f" , default-features = false , optional = true }
37
+ azul-core = { git = " https://github.com/fschutt/azul" , rev = " a09ccbd5be6429f8c40c1acd5ebe05850a45380f" , default-features = false , features = [" std" ], optional = true }
38
+ azul-layout = { git = " https://github.com/fschutt/azul" , rev = " a09ccbd5be6429f8c40c1acd5ebe05850a45380f" , default-features = false , features = [" std" , " text_layout" ], optional = true }
39
+ azul-text-layout = { git = " https://github.com/fschutt/azul" , rev = " a09ccbd5be6429f8c40c1acd5ebe05850a45380f" , default-features = false , optional = true }
40
+ azulc = { git = " https://github.com/fschutt/azul" , rev = " a09ccbd5be6429f8c40c1acd5ebe05850a45380f" , default-features = false , features = [" std" , " xml" , " text_layout" , " font_loading" ], optional = true }
41
+ rust-fontconfig = { version = " 0.1.13" , default-features = false , optional = true }
42
+ xmlparser = { version = " 0.13.6" , default-features = false , optional = true }
43
+ serde_json = { version = " 1" , optional = true }
45
44
46
45
[target .'cfg(target_family = "wasm")' .dependencies ]
47
46
wasm-bindgen = { version = " 0.2" }
47
+ serde_json = { version = " 1" }
48
48
49
49
[features ]
50
- default = []
51
- wasm = [" wasm-bindgen" ]
50
+ default = [" html" ]
51
+ html = [" azul-css" , " azul-css-parser" , " azul-core" , " azul-layout" , " azul-text-layout" , " azulc" , " rust-fontconfig" , " xmlparser" , " serde_json" ]
52
+ js-sys = [" dep:js-sys" ] # enables js-sys features on wasm
52
53
gif = [" image/gif" ]
53
54
jpeg = [" image/jpeg" ]
54
55
png = [" image/png" ]
@@ -61,7 +62,6 @@ hdr = ["image/hdr"]
61
62
dds = [" image/dds" ]
62
63
webp = [" image/webp" ]
63
64
rayon = [" image/rayon" ] # enables multithreading for decoding images
64
- js-sys = [" dep:js-sys" , " wasm" ] # enables js-sys features on wasm
65
65
66
66
[package .metadata .docs .rs ]
67
67
all-features = true
@@ -75,7 +75,7 @@ required-features = []
75
75
76
76
[[example ]]
77
77
name = " html"
78
- required-features = []
78
+ required-features = [" html " ]
79
79
80
80
# re-generates the /defaultfonts/*.ttf fonts
81
81
[[example ]]
0 commit comments