Michael-F-Bryan / arcs

A Rust CAD System
https://michael-f-bryan.github.io/arcs
Apache License 2.0
249 stars 23 forks source link

Wasm build: unresolved import `arcs::render` #4

Closed marcelbuesing closed 4 years ago

marcelbuesing commented 4 years ago

yarn start currently fails. I assume the module is either missing or no longer exists:

error[E0432]: unresolved import `arcs::render`
 --> src/app.rs:6:5
  |
6 |     render::{Renderer, Viewport},
  |     ^^^^^^ could not find `render` in `arcs`

error[E0433]: failed to resolve: could not find `render` in `arcs`
  --> src/app.rs:61:15
   |
61 |         arcs::render::to_drawing_coordinates(
   |               ^^^^^^ could not find `render` in `arcs`
Michael-F-Bryan commented 4 years ago

Lol, over the last hour I've been rearranging the crate so we have a window module with all window-related code (not just rendering). The demo was temporarily broken in 5e83eebc102c59b066ad5bede0d04050f25a9935 so I'm guessing you were just unlucky to see the WebAssembly demo in a broken state.

marcelbuesing commented 4 years ago

Ok bad luck I see =). Anyway I think it would be nice if the wasm-demo would also be build as part of the CI.

Michael-F-Bryan commented 4 years ago

Yep, my long-term plan is to have it built as part of CI and published to GitHub Pages alongside the API docs so people can play around without needing to download or compile anything locally.