This repository was archived by the owner on Feb 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
This repository was archived by the owner on Feb 15, 2024. It is now read-only.
Master branch fails building #14
Copy link
Copy link
Open
Description
Steps to reproduce:
- create a new project:
cargo new foo
- add iced_web to the dependencies:
[dependencies]
iced_web = { git="https://github.com/iced-rs/iced_web", branch="master" }
- 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
Labels
No labels