Skip to content

Commit

Permalink
Fix build and doccumentations (#353)
Browse files Browse the repository at this point in the history
* Fix build and doccumentations

* Fix examples

* cargo fmt
  • Loading branch information
Ngo Iok Ui (Wu Yu Wei) authored Jul 21, 2021
1 parent c0d0a78 commit 847cffe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ default = [ "file-drop", "protocol", "win32", "tray" ]
file-drop = [ ]
protocol = [ ]
dox = [ "tao/dox" ]
menu = [ "tao/menu" ]
tray = [ "tao/tray" ]
win32 = [ "webview2", "winapi", "webview2-sys" ]

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Cross-platform WebView rendering library in Rust that supports all major desktop

```toml
[dependencies]
wry = "0.9"
wry = "0.11"
```

<div align="center">
Expand Down Expand Up @@ -80,19 +80,19 @@ Tao uses [gtk-rs](https://gtk-rs.org/) and its related libraries for window crea
#### Arch Linux / Manjaro:

```bash
sudo pacman -S webkit2gtk gtksourceview3 libappindicator-gtk3 clang
sudo pacman -S webkit2gtk libappindicator-gtk3 clang
```

#### Debian / Ubuntu:

```bash
sudo apt install libwebkit2gtk-4.0-dev libgtksourceview-3.0-dev libappindicator3-dev clang
sudo apt install libwebkit2gtk-4.0-dev libappindicator3-dev clang
```

#### Fedora

```bash
sudo dnf install gtk3-devel webkit2gtk3-devel gtksourceview3-devel libappindicator-gtk3-devel clang
sudo dnf install gtk3-devel webkit2gtk3-devel libappindicator-gtk3-devel clang
```

### macOS
Expand Down
2 changes: 1 addition & 1 deletion examples/system_tray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ fn main() -> wry::Result<()> {
accelerator::{Accelerator, SysMods},
event::{Event, StartCause, WindowEvent},
event_loop::{ControlFlow, EventLoop},
global_shortcut::ShortcutManager,
keyboard::KeyCode,
menu::{ContextMenu, MenuItemAttributes, MenuType},
platform::global_shortcut::ShortcutManager,
system_tray::SystemTrayBuilder,
window::{WindowBuilder, WindowId},
},
Expand Down
6 changes: 1 addition & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@
//! - `tray`: Enables system tray and more menu item variants on **Linux**. You can still create
//! those types if you disable it. They just don't create the actual objects. We set this flag
//! because some implementations require more installed packages. Disable this if you don't want
//! to install `libappindicator`, `sourceview`, and `clang` package.
//! - `menu`: Enables menu item variants on **Linux**. You can still create those types if you
//! you disable it. They just don't create the actual objects. We set this flag because some
//! implementations require more installed packages. Disable this if you don't want to install
//! `sourceview` package.
//! to install `libappindicator` and `clang` package.
//! - `win32`: Enables purely Win32 APIs to build the WebView on **Windows**. This makes backward
//! compatibility down to Windows 7 possible.
//! - `dox`: Enables this in `package.metadata.docs.rs` section to skip linking some **Linux**
Expand Down

0 comments on commit 847cffe

Please sign in to comment.