Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Master branch fails building #14

@Kaiden42

Description

@Kaiden42

Steps to reproduce:

  1. create a new project: cargo new foo
  2. add iced_web to the dependencies:
[dependencies]
iced_web = { git="https://github.com/iced-rs/iced_web", branch="master" }
  1. build it for wasm: cargo build --target wasm32-unknown-unknown

The build fails with the following errors:

error[E0432]: unresolved import `iced_style::toggler`
 --> /home/user/.cargo/git/checkouts/iced_web-dc0b863299b68507/5f85529/src/widget/toggler.rs:4:21
  |
4 | pub use iced_style::toggler::{Style, StyleSheet};
  |                     ^^^^^^^ could not find `toggler` in `iced_style`

error[E0432]: unresolved import `iced_core::alignment`
  --> /home/user/.cargo/git/checkouts/iced_web-dc0b863299b68507/5f85529/src/lib.rs:81:9
   |
81 | pub use iced_core::alignment;
   |         ^^^^^^^^^^^^^^^^^^^^ no `alignment` in the root

error[E0432]: unresolved imports `iced_core::Alignment`, `iced_core::Padding`
  --> /home/user/.cargo/git/checkouts/iced_web-dc0b863299b68507/5f85529/src/lib.rs:88:5
   |
88 |     Alignment, Background, Color, Font, Length, Padding, Point, Rectangle,
   |     ^^^^^^^^^ no `Alignment` in the root        ^^^^^^^ no `Padding` in the root

error[E0433]: failed to resolve: use of undeclared type `Alignment`
   --> /home/user/.cargo/git/checkouts/iced_web-dc0b863299b68507/5f85529/src/widget/container.rs:128:36
    |
128 |                     css::alignment(Alignment::from(self.horizontal_alignment)),
    |                                    ^^^^^^^^^ not found in this scope
    |
help: consider importing one of these items
    |
2   | use core::fmt::Alignment;
    |
2   | use core::fmt::rt::v1::Alignment;
    |
2   | use std::fmt::Alignment;
    |
2   | use std::fmt::rt::v1::Alignment;
    |

error[E0433]: failed to resolve: use of undeclared type `Alignment`
   --> /home/user/.cargo/git/checkouts/iced_web-dc0b863299b68507/5f85529/src/widget/container.rs:129:36
    |
129 |                     css::alignment(Alignment::from(self.vertical_alignment)),
    |                                    ^^^^^^^^^ not found in this scope
    |
help: consider importing one of these items
    |
2   | use core::fmt::Alignment;
    |
2   | use core::fmt::rt::v1::Alignment;
    |
2   | use std::fmt::Alignment;
    |
2   | use std::fmt::rt::v1::Alignment;
    |

It seems that the dependencies used by iced_web are outdated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions