amethyst / amethyst/bracket-lib

Compile problem with wasm32 using bracket-terminal 0.8.7

Ouverte
#301 11 commentaires 3 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Rust
Étoiles
1.7k
Forks
126
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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`
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.