css-in-rust 0.4.0

CSSinRust is a package for use with WASM applications providing a component level CSS styling experience.
Documentation
1
2
3
4
5
6
7
8
9
10
// Props to the Yew team https://github.com/yewstack/yew/blob/master/build.rs

use std::env;

pub fn main() {
    let using_cargo_web = env::var("COMPILING_UNDER_CARGO_WEB").is_ok();
    if using_cargo_web {
        panic!("cargo-web is not compatible with web-sys");
    }
}