Closed adomasven closed 4 years ago
You need a newer nightly Rust, so rustup update nightly
. datatest
lives on the edge with the pretty unstable libtest API, which changed about a month ago. I'm running citeproc-rs off my PR branch from https://github.com/commure/datatest/pull/19 which accommodates that change. I really need to update the readme, sorry!
Also it strikes me that it shouldn't be built at all in that configuration, apparently I made it a dependency instead of a dev-dependency.
Actually, once that's fixed, you can even wasm-pack build
on stable! As of stable 1.39.0, which was released earlier this month, the async/await syntax and Vec::new
being a const fn
are stable, so it really does go.
At the moment the demo's webpack config uses the nightly-only -Z config-profile
to change opt-level for debug builds without affecting the whole workspace. But if you're only building a package with wasm-pack in release mode, opt-level is already correct and you don't need that. This is great news for reliable CI builds, which I'm looking into with #7 at the moment. However for development you still want datatest and hence nightly.
(Quick note: wasm-pack defies convention and builds in release mode by default. Mostly this is what you want, but it can be confusing.)
Attached is the build log: