Skip to content

Commit

Permalink
Merge pull request #7 from c-git/patch-1
Browse files Browse the repository at this point in the history
Add rfd deps and link to alternate implementation
  • Loading branch information
woelper authored Jan 2, 2025
2 parents 5108155 + b9082ef commit 6efd38b
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,29 @@ The web application can be accessed here:

https://woelper.github.io/egui_pick_file/


For native:

On linux install dependencies of [rfd](https://docs.rs/rfd/latest/rfd/index.html) as applicable.
Copied from https://docs.rs/rfd/latest/rfd/#linux--bsd-backends

> GTK backend is used with the `gtk3` Cargo feature which is enabled by default. The GTK3
> backend requires the C library and development headers to be installed to build RFD. The package
> names on various distributions are:
> | Distribution | Installation Command |
> | --------------- | ------------ |
> | Fedora | dnf install gtk3-devel |
> | Arch | pacman -S gtk3 |
> | Debian & Ubuntu | apt install libgtk-3-dev |
`cargo run`


For web:

`rustup target add wasm32-unknown-unknown`

`cargo install --locked trunk`

`trunk serve --open`
`trunk serve --open`

There is also an alternate example implementation that uses [poll-promise](https://docs.rs/poll-promise/latest/poll_promise/) instead available [here](https://github.com/c-git/egui_file_picker_poll_promise)https://github.com/c-git/egui_file_picker_poll_promise.

0 comments on commit 6efd38b

Please sign in to comment.