Giter Site home page Giter Site logo

react_rust_wasm's People

Contributors

anderspitman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

react_rust_wasm's Issues

Suggested update to blog post - Freeze dependencies

Hi there. I am trying the tutorial from your react_rust_wasm tutorial. When I tried to run your tutorial verbatim, I got errors running npx webpack.

However, once I copied your exact package.json from this repo and ran npm i on that, npx webpack ran fine.

So my suggestion is, update the blog post to specify what versions to install with npm install, or tell readers to just use your exact package.json file.

Thanks!

unable to `npm run build-wasm`

I have been following your tutorial but have been unable to get past the build-wasm stage

There appears to be an issue with proc_macro_span

MacOS: 10.13.3

cargo build --target wasm32-unknown-unknown

Downloading wasm-bindgen v0.2.11
Downloading wasm-bindgen-macro v0.2.11                                                                                                                                            
Downloading wasm-bindgen-backend v0.2.11                                                                                                                                          
Downloading proc-macro2 v0.4.6                                                                                                                                                    
Downloading syn v0.14.2                                                                                                                                                           
Downloading serde_json v1.0.19                                                                                                                                                    
Downloading dtoa v0.4.2                                                                                                                                                           
Downloading serde v1.0.66                                                                                                                                                         
Downloading itoa v0.4.1                                                                                                                                                           
Downloading serde_derive v1.0.66                                                                                                                                                  
  Compiling proc-macro2 v0.4.6                                                                                                                                                    
error[E0658]: use of unstable library feature 'proc_macro_span' (see issue #38356)oc-macro2                                                                                        
  --> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:284:13
    |
284 |     Nightly(proc_macro::SourceFile, FileName),
    |             ^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: add #![feature(proc_macro_span)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'proc_macro_span' (see issue #38356)
  --> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:289:20
    |
289 |     fn nightly(sf: proc_macro::SourceFile) -> Self {
    |                    ^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: add #![feature(proc_macro_span)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'proc_macro_span' (see issue #38356)
  --> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:290:45
    |
290 |         let filename = stable::file_name(sf.path().to_string());
    |                                             ^^^^
    |
    = help: add #![feature(proc_macro_span)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'proc_macro_span' (see issue #38356)
  --> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:304:44
    |
304 |             SourceFile::Nightly(a, _) => a.is_real(),
    |                                            ^^^^^^^
    |
    = help: add #![feature(proc_macro_span)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'proc_macro_span' (see issue #38356)
  --> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:347:27
    |
347 |             Span::Nightly(proc_macro::Span::def_site())
    |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: add #![feature(proc_macro_span)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'proc_macro_span' (see issue #38356)
  --> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:355:69
    |
355 |             (Span::Nightly(a), Span::Nightly(b)) => Span::Nightly(a.resolved_at(b)),
    |                                                                     ^^^^^^^^^^^
    |
    = help: add #![feature(proc_macro_span)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'proc_macro_span' (see issue #38356)
  --> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:363:69
    |
363 |             (Span::Nightly(a), Span::Nightly(b)) => Span::Nightly(a.located_at(b)),
    |                                                                     ^^^^^^^^^^
    |
    = help: add #![feature(proc_macro_span)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'proc_macro_span' (see issue #38356)
  --> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:424:55
    |
424 |             (Span::Nightly(a), Span::Nightly(b)) => a.eq(b),
    |                                                       ^^
    |
    = help: add #![feature(proc_macro_span)] to the crate attributes to enable

error[E0658]: use of unstable library feature 'proc_macro_raw_ident' (see issue #38356)
  --> /Users/edwilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.6/src/unstable.rs:475:48
    |
475 |             Span::Nightly(s) => Ident::Nightly(proc_macro::Ident::new_raw(string, s)),
    |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: add #![feature(proc_macro_raw_ident)] to the crate attributes to enable

error: aborting due to 9 previous errors

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `proc-macro2`. 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.