[package] name = "css-in-rust" version = "0.5.0" license = "MIT" repository = "https://github.com/lukidoescode/css-in-rust" authors = [ "Lukas Wagner ", ] 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"]