Closed
Description
🐛 Bug description
I set up the my Cargo.toml
files to use the workspace inheritance feature from Rust 1.64, which resulted in this error:
$ wasm-pack build --target no-modules --out-dir ../web/pkg
Error: failed to parse manifest: /Users/printfn/Code/fend/wasm/Cargo.toml
Caused by: invalid type: map, expected a string for key `package.description`
Compiling the same project with cargo build
works fine, so this error must be specific to wasm-pack
.
🤔 Expected Behavior
I would've expected the Cargo.toml file to be parsed correctly.
👟 Steps to reproduce
Workspace Cargo.toml:
[workspace]
members = ["cli", "core", "wasm"]
[workspace.package]
version = "1.1.0"
description = "Arbitrary-precision unit-aware calculator"
# ...
Wasm Cargo.toml:
[package]
name = "fend-wasm"
version.workspace = true
description.workspace = true
# ...
This commit shows the diff between the Cargo.toml
files.
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version: 0.10.3
rustc version: 1.64
$ cargo -vV
cargo 1.64.0 (387270bc7 2022-09-16)
release: 1.64.0
commit-hash: 387270bc7f446d17869c7f208207c73231d6a252
commit-date: 2022-09-16
host: aarch64-apple-darwin
libgit2: 1.4.2 (sys:0.14.2 vendored)
libcurl: 7.79.1 (sys:0.4.55+curl-7.83.1 system ssl:(SecureTransport) LibreSSL/3.3.6)
os: Mac OS 12.6.0 [64-bit]
Metadata
Metadata
Assignees
Labels
No labels