From a57dfad52f838715c361fbee1d32630e54000cc2 Mon Sep 17 00:00:00 2001 From: Victor Mamede <58049412+victormamede@users.noreply.github.com> Date: Fri, 2 Aug 2024 16:50:40 -0300 Subject: [PATCH] updated documentation to reflect default features (#208) --- src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 5078ef5..a1ba2ec 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,7 +43,7 @@ //! [zbus](https://gitlab.freedesktop.org/dbus/zbus/). //! //! ## GTK backend -//! The GTK backend is used with the `gtk3` Cargo feature which is enabled by default. The GTK3 +//! The GTK backend is used when the `xdg-portal` feature is disabled with the [`default-features = false`](https://doc.rust-lang.org/cargo/reference/features.html#dependency-features), and `gtk3` is enabled instead. The GTK3 //! backend requires the C library and development headers to be installed to build RFD. The package //! names on various distributions are: //! @@ -54,8 +54,7 @@ //! | Debian & Ubuntu | apt install libgtk-3-dev | //! //! ## XDG Desktop Portal backend -//! The XDG Desktop Portal backend is used when the `gtk3` feature is disabled with -//! [`default-features = false`](https://doc.rust-lang.org/cargo/reference/features.html#dependency-features), and `xdg-portal` is enabled instead. Either the `tokio` or `async-std` feature must be enabled. This backend will use either the GTK or KDE file dialog depending on the desktop environment +//! The XDG Desktop Portal backend is used with the `xdg-portal` Cargo feature which is enabled by default. Either the `tokio` or `async-std` feature must be enabled. This backend will use either the GTK or KDE file dialog depending on the desktop environment //! in use at runtime. It does not have any non-Rust //! build dependencies, however it requires the user to have either the //! [GTK](https://github.com/flatpak/xdg-desktop-portal-gtk),