Skip to content

Failure targeting wasm32-unknown-unknown #98

@joshlf

Description

@joshlf

TLDR: Running with --target wasm32-unknown-unknown fails regardless of crate contents.

Steps to reproduce:

  • Create empty crate via cargo init --vcs none --lib
  • Run cargo semver-checks check-release --target wasm32-unknown-unknown

Observed output:

     Parsing tmp067 v0.1.0 (current)
error: running cargo-doc on crate tmp067 failed with output:
-----
error: output of --print=file-names missing when learning about target-specific information from rustc
command was: `.../.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc - --crate-name ___ --print=file-names --cap-lints=allow --target wasm32-unknown-unknown --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg`

--- stdout
___.wasm
lib___.rlib
___.wasm
lib___.a
.../.rustup/toolchains/stable-aarch64-apple-darwin
off
___
debug_assertions
fmt_debug="full"
overflow_checks
panic="abort"
proc_macro
relocation_model="static"
target_abi=""
target_arch="wasm32"
target_endian="little"
target_env=""
target_family="wasm"
target_feature="multivalue"
target_feature="mutable-globals"
target_feature="reference-types"
target_feature="sign-ext"
target_has_atomic
target_has_atomic="16"
target_has_atomic="32"
target_has_atomic="64"
target_has_atomic="8"
target_has_atomic="ptr"
target_has_atomic_equal_alignment="16"
target_has_atomic_equal_alignment="32"
target_has_atomic_equal_alignment="64"
target_has_atomic_equal_alignment="8"
target_has_atomic_equal_alignment="ptr"
target_has_atomic_load_store
target_has_atomic_load_store="16"
target_has_atomic_load_store="32"
target_has_atomic_load_store="64"
target_has_atomic_load_store="8"
target_has_atomic_load_store="ptr"
target_os="unknown"
target_pointer_width="32"
target_thread_local
target_vendor="unknown"
ub_checks


-----

error: failed to build rustdoc for crate tmp067 v0.1.0
note: this is usually due to a compilation error in the crate,
      and is unlikely to be a bug in cargo-semver-checks
note: the following command can be used to reproduce the compilation error:
      cargo new --lib example &&
          cd example &&
          echo '[workspace]' >> Cargo.toml &&
          cargo add --path .../tmp/tmp067 --no-default-features &&
          cargo check

error: aborting due to failure to build rustdoc for crate tmp067 v0.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions