Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure nightly? #95

Open
strowk opened this issue Oct 4, 2020 · 3 comments
Open

How to configure nightly? #95

strowk opened this issue Oct 4, 2020 · 3 comments

Comments

@strowk
Copy link

strowk commented Oct 4, 2020

I need to build the crate on nightly toolchain. Any way to give that info to the plugin?

@WanderHuang
Copy link

WanderHuang commented Oct 30, 2020

I need to build the crate on nightly toolchain. Any way to give that info to the plugin?

I'm using cargo 1.49.0-nightly (dd83ae55c 2020-10-20) & rustc 1.49.0-nightly (ffa2e7ae8 2020-10-24) and just works.

Here is how I config it.

In node:

{
    "@wasm-tool/wasm-pack-plugin": "^1.3.1",
    "clean-webpack-plugin": "^3.0.0",
    "copy-webpack-plugin": "^6.2.1",
    "css-loader": "^5.0.0",
    "html-webpack-plugin": "^4.5.0",
    "less": "^3.12.2",
    "less-loader": "^7.0.2",
    "style-loader": "^2.0.0",
    "wasm-pack": "^0.9.1",
    "webpack": "^4.42.0",
    "webpack-cli": "^3.3.11",
    "webpack-dev-server": "^3.11.0"
}

In rust:

log = "0.4.8"
wasm-logger = "0.2.0"
wasm-bindgen = "0.2.63"
wee_alloc = "0.4.5"
yew = { version = "0.16.2", features = ["web_sys"] }

Hope this will help u

@chrysn
Copy link

chrysn commented Feb 12, 2021

The workaround I'm using is to set rustup override set nightly on the directory. (It's something I otherwise try to avoid, but it's the only way I found to work; I'd be also interested in where to place it on the command-line. I've tried wasm-pack +nightly build --dev --target ..., but unlike the override it didn't do the trick.)

@GrandmasterTash
Copy link

There's some good/useful info in the readme for the rayon bridge - i.e. in this case using a rust-toolchain.toml file in the project dir can work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants