Giter Site home page Giter Site logo

emoji-picker's Issues

Pinned Emojis

When app first start, can we add pinned emoji that we used most so it will be easy to use frequent emojis?

cargo install --path fails but cargo build --release works

emoji-picker on ๎‚  gtk3-docs [!+] via ๐Ÿฆ€ v1.49.0
โฏ cargo install --path
error: The argument '--path <PATH>' requires a value but none was supplied

USAGE:
    cargo install --path <PATH>

For more information try --help
emoji-picker on ๎‚  gtk3-docs [!+] via ๐Ÿฆ€ v1.49.0
โฏ cargo install --path .
  Installing emoji-picker v0.1.0 (/home/jesse/src/emoji-picker)
    Updating crates.io index
  Downloaded proc-macro-hack v0.5.19
  Downloaded termcolor v1.1.2
  Downloaded gdk-pixbuf v0.9.0
  Downloaded gobject-sys v0.10.0
  Downloaded futures-executor v0.3.12
  Downloaded futures-macro v0.3.12
  Downloaded thread_local v1.1.3
  Downloaded version-compare v0.0.10
  Downloaded getrandom v0.1.16
  Downloaded serde_derive v1.0.123
  Downloaded gio v0.9.1
  Downloaded log v0.4.14
  Downloaded pango-sys v0.10.0
  Downloaded ppv-lite86 v0.2.10
  Downloaded gdk v0.13.2
  Downloaded proc-macro-nested v0.1.7
  Downloaded quote v1.0.9
  Downloaded cairo-rs v0.9.1
  Downloaded glib-macros v0.10.1
  Downloaded rand_chacha v0.2.2
  Downloaded gtk-sys v0.10.0
  Downloaded gdk-sys v0.10.0
  Downloaded glib v0.10.3
  Downloaded strum_macros v0.18.0
  Downloaded pango v0.9.1
  Downloaded cairo-sys-rs v0.10.0
  Downloaded serde_json v1.0.62
  Downloaded proc-macro-crate v0.1.5
  Downloaded atk v0.9.0
  Downloaded atk-sys v0.10.0
  Downloaded futures v0.3.12
  Downloaded strum v0.18.0
  Downloaded serde v1.0.123
  Downloaded libc v0.2.86
  Downloaded syn v1.0.60
  Downloaded glib-sys v0.10.1
  Downloaded system-deps v1.3.2
  Downloaded gio-sys v0.10.1
  Downloaded gdk-pixbuf-sys v0.10.0
  Downloaded gtk v0.9.2
  Downloaded 40 crates (2.7 MB) in 0.78s
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.60
   Compiling serde_derive v1.0.123
   Compiling serde v1.0.123
   Compiling unicode-segmentation v1.7.1
   Compiling pkg-config v0.3.19
   Compiling strum v0.18.0
   Compiling version-compare v0.0.10
   Compiling libc v0.2.86
   Compiling memchr v2.3.4
   Compiling once_cell v1.5.2
   Compiling version_check v0.9.2
   Compiling proc-macro-hack v0.5.19
   Compiling proc-macro-nested v0.1.7
   Compiling futures-sink v0.3.12
   Compiling futures-core v0.3.12
   Compiling futures-io v0.3.12
   Compiling pin-project-lite v0.2.4
   Compiling bitflags v1.2.1
   Compiling pin-utils v0.1.0
   Compiling anyhow v1.0.38
   Compiling slab v0.4.2
   Compiling either v1.6.1
   Compiling cfg-if v1.0.0
   Compiling getrandom v0.1.16
   Compiling gio v0.9.1
   Compiling ryu v1.0.5
   Compiling gdk-pixbuf v0.9.0
   Compiling pango v0.9.1
   Compiling cairo-rs v0.9.1
   Compiling serde_json v1.0.62
   Compiling atk v0.9.0
   Compiling itoa v0.4.7
   Compiling gdk v0.13.2
   Compiling log v0.4.14
   Compiling quick-error v1.2.3
   Compiling unicode-width v0.1.8
   Compiling regex-syntax v0.6.22
   Compiling ppv-lite86 v0.2.10
   Compiling vec_map v0.8.2
   Compiling ansi_term v0.11.0
   Compiling termcolor v1.1.2
   Compiling strsim v0.8.0
   Compiling lazy_static v1.4.0
   Compiling futures-channel v0.3.12
   Compiling futures-task v0.3.12
   Compiling thread_local v1.1.3
   Compiling itertools v0.9.0
   Compiling humantime v1.3.0
   Compiling textwrap v0.11.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling heck v0.3.2
   Compiling gtk v0.9.2
   Compiling aho-corasick v0.7.15
   Compiling quote v1.0.9
   Compiling atty v0.2.14
   Compiling clap v2.33.3
   Compiling rand_core v0.5.1
   Compiling rand_chacha v0.2.2
   Compiling rand v0.7.3
   Compiling regex v1.4.3
   Compiling env_logger v0.7.1
   Compiling thiserror-impl v1.0.23
   Compiling strum_macros v0.18.0
   Compiling futures-macro v0.3.12
   Compiling futures-util v0.3.12
   Compiling thiserror v1.0.23
   Compiling futures-executor v0.3.12
   Compiling futures v0.3.12
   Compiling toml v0.5.8
   Compiling system-deps v1.3.2
   Compiling proc-macro-crate v0.1.5
   Compiling emoji-picker v0.1.0 (/home/jesse/src/emoji-picker)
   Compiling glib-macros v0.10.1
   Compiling glib-sys v0.10.1
   Compiling gobject-sys v0.10.0
   Compiling gio-sys v0.10.1
   Compiling cairo-sys-rs v0.10.0
   Compiling pango-sys v0.10.0
   Compiling gdk-pixbuf-sys v0.10.0
   Compiling gdk-sys v0.10.0
   Compiling atk-sys v0.10.0
   Compiling gtk-sys v0.10.0
   Compiling glib v0.10.3
error[E0599]: no method named `map` found for struct `glib::GString` in the current scope
   --> src/main.rs:345:28
    |
345 |         match q.get_text().map(|text| text.to_string()) {
    |                            ^^^ method not found in `glib::GString`
    |
   ::: /home/jesse/.asdf/installs/rust/1.49.0/registry/src/github.com-1ecc6299db9ec823/glib-0.10.3/src/gstring.rs:24:1
    |
24  | pub struct GString(Inner);
    | --------------------------
    | |
    | doesn't satisfy `glib::GString: IsA<gtk::Widget>`
    | doesn't satisfy `glib::GString: Iterator`
    | doesn't satisfy `glib::GString: gtk::WidgetExt`
    |
    = note: the method `map` exists but the following trait bounds were not satisfied:
            `glib::GString: IsA<gtk::Widget>`
            which is required by `glib::GString: gtk::WidgetExt`
            `glib::GString: Iterator`
            which is required by `&mut glib::GString: Iterator`
            `str: Sized`
            which is required by `str: gtk::WidgetExt`
            `str: IsA<gtk::Widget>`
            which is required by `str: gtk::WidgetExt`
            `str: Iterator`
            which is required by `&mut str: Iterator`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0599`.
error: failed to compile `emoji-picker v0.1.0 (/home/jesse/src/emoji-picker)`, intermediate artifacts can be found at `/home/jesse/src/emoji-picker/targe
t`

Caused by:
  could not compile `emoji-picker`

To learn more, run the command again with --verbose.
emoji-picker on ๎‚  gtk3-docs [!+] via ๐Ÿฆ€ v1.49.0 took 1m
โฏ cargo build --release
   Compiling pkg-config v0.3.17
   Compiling libc v0.2.67
   Compiling proc-macro2 v1.0.9
   Compiling unicode-xid v0.2.0
   Compiling syn v1.0.16
   Compiling proc-macro-nested v0.1.3
   Compiling futures-core v0.3.4
   Compiling pin-utils v0.1.0-alpha.4
   Compiling futures-task v0.3.4
   Compiling cfg-if v0.1.10
   Compiling memchr v2.3.3
   Compiling getrandom v0.1.14
   Compiling ryu v1.0.2
   Compiling gio v0.8.1
   Compiling serde v1.0.104
   Compiling pango v0.8.0
   Compiling cairo-rs v0.8.1
   Compiling gdk-pixbuf v0.8.0
   Compiling futures-io v0.3.4
   Compiling atk v0.8.0
   Compiling ppv-lite86 v0.2.6
   Compiling itoa v0.4.5
   Compiling log v0.4.8
   Compiling gdk v0.12.1
   Compiling gtk v0.8.1
   Compiling regex-syntax v0.6.16
   Compiling unicode-width v0.1.7
   Compiling termcolor v1.1.0
   Compiling vec_map v0.8.1
   Compiling thread_local v1.0.1
   Compiling futures-channel v0.3.4
   Compiling textwrap v0.11.0
   Compiling glib-sys v0.9.1
   Compiling gobject-sys v0.9.1
   Compiling gio-sys v0.9.1
   Compiling gdk-pixbuf-sys v0.9.1
   Compiling cairo-sys-rs v0.9.2
   Compiling pango-sys v0.9.1
   Compiling gdk-sys v0.9.1
   Compiling atk-sys v0.9.1
   Compiling gtk-sys v0.9.2
   Compiling c2-chacha v0.2.3
   Compiling aho-corasick v0.7.9
   Compiling quote v1.0.3
   Compiling atty v0.2.14
   Compiling clap v2.33.0
   Compiling rand_core v0.5.1
   Compiling rand_chacha v0.2.1
   Compiling rand v0.7.3
   Compiling regex v1.3.4
   Compiling env_logger v0.7.1
   Compiling proc-macro-hack v0.5.11
   Compiling serde_derive v1.0.104
   Compiling futures-macro v0.3.4
   Compiling futures-util v0.3.4
   Compiling futures-executor v0.3.4
   Compiling glib v0.9.3
   Compiling serde_json v1.0.48
   Compiling emoji-picker v0.1.0 (/home/jesse/src/emoji-picker)
    Finished release [optimized] target(s) in 55.62s
emoji-picker on ๎‚  gtk3-docs [!+] via ๐Ÿฆ€ v1.49.0 took 55s
โฏ

Building a release binary and moving into $PATH works for me on Ubuntu 20.10, maybe it's the --release flag?

Regardless, this is a perfect little emoji picker, thank you!

Document GTK deps for install

I had to install libgtk-3-dev on Ubuntu 20.10 and then I could build. I'm not 100% sure that's the only GTK-related dep needed but after uninstalling as many of the possible deps and reinstalling only libgtk-3-dev I was able to successfully compile. Does this seem right to you? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.