amethyst / amethyst/bracket-lib

Compile problem with wasm32 using bracket-terminal 0.8.7

Aperta
#301 11 commenti 3 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
1.7k
Fork
126
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I'm pulling bracket-terminal into my project as a dependency and compiling for wasm:

```
rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen-cli
cargo build --release --target wasm32-unknown-unknown
```

I'm seeing the new errors:

```
error[E0432]: unresolved imports `glow::NativeFramebuffer`, `glow::NativeTexture`
--> /home/dan/.cargo/registry/src/github.com-1ecc6299db9ec823/bracket-terminal-0.8.7/src/hal/gl_common/framebuffer.rs:3:24
|
3 | use glow::{HasContext, NativeFramebuffer, NativeTexture};
| ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ no `NativeTexture` in the root
| |
| no `NativeFramebuffer` in the root

Compiling async-executor v1.4.1
error[E0609]: no field `fitscreen` on type `hal::wasm::InitHints`
--> /home/dan/.cargo/registry/src/github.com-1ecc6299db9ec823/bracket-terminal-0.8.7/src/initializer.rs:455:29
|
455 | self.platform_hints.fitscreen = fitscreen;
| ^^^^^^^^^ help: a field with a similar name exists: `fullscreen`
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.