lpotthast / leptonic

Leptos component framework.
https://leptonic.dev
Apache License 2.0
264 stars 48 forks source link

Outdated time dependency causes build error #73

Open LewisHein5 opened 3 months ago

LewisHein5 commented 3 months ago

When building on stable rust with v0.5.0, time 0.3.31 is causing a build error:

error[E0282]: type annotations needed for `Box<_>
  --> /home/lewis/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.31/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
help: consider giving `items` an explicit type, where the placeholders `_` are specified
   |
83 |     let items: Box<_> = format_items
   |              ++++++++`

I assume this will be fixed by depending on time 0.3.36

LewisHein5 commented 3 months ago

Also, it looks like the leptos-use dependency may be outdated.

ababkin commented 3 months ago

confirmed, I get the following:

error[E0599]: no variant or associated item named `__Nonexhaustive` found for enum `web_sys::NotificationPermission` in the current scope
   --> /Users/ababkin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/leptos-use-0.10.10/src/use_web_notification.rs:451:46
    |
451 |             web_sys::NotificationPermission::__Nonexhaustive => Self::Default,
    |                                              ^^^^^^^^^^^^^^^ variant or associated item not found in `NotificationPermission`