Plume-org / Plume

Federated blogging application, thanks to ActivityPub (now on https://git.joinplu.me/ — this is just a mirror)

Home Page:https://joinplu.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compile error: unresolved import `web_sys::ClipboardEvent`

starsareintherose opened this issue · comments

commented

compile error

error[E0432]: unresolved import `web_sys::ClipboardEvent`
 --> plume-front/src/editor.rs:7:22
  |
7 |     console, window, ClipboardEvent, Element, Event, FocusEvent, HtmlAnchorElement, HtmlDocument,
  |                      ^^^^^^^^^^^^^^
  |                      |
  |                      no `ClipboardEvent` in the root
  |                      help: a similar name exists in the module: `KeyboardEvent`

error[E0277]: the size for values of type `str` cannot be known at compilation time
   --> plume-front/src/editor.rs:262:23
    |
262 |             if let Ok(data) = data.get_data("text") {
    |                       ^^^^ doesn't have a size known at compile-time
    |
    = help: the trait `Sized` is not implemented for `str`
    = note: all local variables must have a statically known size
    = help: unsized locals are gated as an unstable feature

error[E0277]: the size for values of type `str` cannot be known at compilation time
   --> plume-front/src/editor.rs:262:20
    |
262 |             if let Ok(data) = data.get_data("text") {
    |                    ^^^^^^^^ doesn't have a size known at compile-time
    |
    = help: the trait `Sized` is not implemented for `str`
note: required by a bound in `Ok`

Some errors have detailed explanations: E0277, E0432.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `plume-front` due to 3 previous errors
Error: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit status: 101
  full command: "cargo" "build" "--lib" "--release" "--target" "wasm32-unknown-unknown"

  • Plume version: git and 0.7.2
  • Operating system: Arch
  • Web Browser: