Skip to content

Commit e2a4fda

Browse files
committed
Revert "Remove incorrect paragraph"
This reverts commit 0c149f3.
1 parent 78ebd04 commit e2a4fda

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

_posts/2021-06-22-new-release.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,18 @@ to be able to use them. Now, you only need to import GTK and then you can do:
8585
use gtk::{cairo, gdk};
8686
```
8787

88-
The `-sys` crates are also re-exported under the name `ffi`:
88+
And that's it! It'll make your management of dependencies much simpler. To be noted, they are also
89+
in the `prelude`, so importing it will give you access to them:
90+
91+
```rust
92+
use gtk::prelude::*;
93+
94+
// ...
95+
let x = cairo::something();
96+
let y = gdk::something();
97+
```
98+
99+
Last note about the re-exports: the `-sys` crates are also re-exported under the name `ffi`:
89100

90101
```rust
91102
use gtk::ffi;

0 commit comments

Comments
 (0)