wrangler 1.3.0

wrangle your workers, CLI for rustwasm Cloudflare workers!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::env;

fn main() {
    if let Ok(profile) = env::var("PROFILE") {
        if profile == "debug" {
            println!("cargo:rustc-cfg=feature={:?}", profile);
            println!(
                "cargo:rustc-env=SOURCE_DIR={:?}",
                env::current_dir().unwrap()
            );
        } else {
            println!("cargo:rustc-env=SOURCE_DIR={:?}", "");
        }
    }
}