-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
58 lines (49 loc) · 1.48 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[package]
name = "css-in-rust"
version = "0.5.0"
license = "MIT"
repository = "https://github.com/lukidoescode/css-in-rust"
authors = [
"Lukas Wagner <appdev.lukaswagner@gmail.com>",
]
edition = "2018"
description = "CSSinRust is a package for use with WASM applications providing a component level CSS styling experience."
keywords = [
"CSS",
"web",
"CSSinRust",
"yew"
]
categories = ["wasm", "web-programming"]
readme = "README.md"
homepage = "https://crates.io/crates/css-in-rust"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
nom = "^5.1.1"
lazy_static = "^1.4.0"
yew = {version = "^0.17.2", features=["web_sys"], optional = true}
seed = {version = "^0.6.0", optional = true}
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "^0.3"
features = [
"Window",
"Document",
"Element",
"HtmlElement",
"HtmlHeadElement",
"HtmlStyleElement",
]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
rand = { version = "^0.7.0", features = ["small_rng"]}
# Changes here must be reflected in `build.rs`
[target.'cfg(all(target_arch = "wasm32", not(target_os="wasi"), not(cargo_web)))'.dependencies]
wasm-bindgen = "^0.2.59"
# Changes here must be reflected in `build.rs`
[target.'cfg(all(target_arch = "wasm32", not(target_os="wasi"), not(cargo_web)))'.dev-dependencies]
wasm-bindgen-test = "^0.3.9"
[features]
yew_integration = ["yew"]
seed_integration = ["seed"]
[package.metadata.docs.rs]
features = ["yew_integration", "seed_integration"]