Skip to content

build fails for wasm32-wasi target #1780

Closed
@wucke13

Description

@wucke13

Rust Version

rustc 1.42.0 (b8cedc004 2020-03-09)

Code

fn main()->{}

Steps to reproduce the issue

  1. Run cargo run --target wasm32-wasi

Affected Version of clap*

master

Actual Behavior Summary

The compilation does not finish due to 31 errors, mostly:

  • error[E0599]: no function or associated item named from_bytes found for struct std::ffi::OsStr in the current scope
  • error[E0599]: no method named as_bytes found for reference &std::ffi::OsStr in the current scope

Expected Behavior Summary

The compilation does finish with 0 errors

Additional context

I really like the idea of having universal bytecode, and I really like powerful CLI tools. I would love to use clap for the wasm32-wasi target!

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions