diff --git a/Cargo.toml b/Cargo.toml index 238b034..a6a45d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,6 +24,7 @@ kde_frameworks = "0.1" [dev-dependencies] lazy_static = "1.4" +cstr = "0.2" [package.metadata.docs.rs] dependencies = ["qtbase5-dev", "qtdeclarative5-dev", "libkf5i18n-dev"] diff --git a/README.md b/README.md index ca6ab83..3bcb9cd 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ The crate searches from KF5I18n using either the environment variables (`KF_VERS ```rust use cstr::cstr; use qmetaobject::prelude::*; -use ki18n::KLocalizedContext; +use ki18n::klocalizedcontext::KLocalizedContext; fn main() { let mut engine = QmlEngine::new(); diff --git a/src/lib.rs b/src/lib.rs index e105a3b..7197886 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,10 +28,10 @@ //! //! //! # Example -//! ```rust +//! ```no_run //! use cstr::cstr; //! use qmetaobject::prelude::*; -//! use ki18n::KLocalizedContext; +//! use ki18n::klocalizedcontext::KLocalizedContext; //! //! fn main() { //! let mut engine = QmlEngine::new();