Skip to content

Commit d296748

Browse files
committed
Add README for qttypes
1 parent 2b1bc1c commit d296748

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

qmetaobject/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ build = "build.rs"
77
description = "Expose rust object to Qt and QML."
88
readme = "../README.md"
99
license = "MIT"
10+
categories = ["api-bindings", "gui"]
1011
keywords = ["Qt", "QML", "QMetaObject",]
1112
repository = "https://github.com/woboq/qmetaobject-rs"
1213

qttypes/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ build = "build.rs"
77
description = "Manually maintained buildings for Qt value types"
88
readme = "README.md"
99
license = "MIT"
10+
categories = ["api-bindings", "ffi"]
1011
keywords = ["Qt", "QtCore", "QtGui"]
1112
repository = "https://github.com/woboq/qmetaobject-rs"
1213
links = "qt"

qttypes/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# qttypes
2+
3+
This crate contains manually generated bindings to Qt basic value types.
4+
It is meant to be used by other crates, such as the `qmetaobject` crate which re-expose them
5+
6+
The Qt types are basically exposed using the `cpp` crate. They have manually writen rust idiomatic
7+
API which expose the C++ API.
8+
These types are the direct equivalent of the Qt types and are exposed on the stack.
9+
10+
In addition, the build script of this crate expose some metadata to downstream crate that also
11+
want to use Qt's C++ API:
12+
- `DEP_QT_VERSION`: The Qt version as given by qmake
13+
- `DEP_QT_INCLUDE_PATH`: The include directory to give to the `cpp_build` crate to locate the Qt headers
14+
- `DEP_QT_LIBRARY_PATH`: The path containing the Qt libraries.
15+
16+
See the [crate documentation](https://docs.rs/qttypes) for more info.

qttypes/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2222
//! API which expose the C++ API.
2323
//! These types are the direct equivalent of the Qt types and are exposed on the stack.
2424
//!
25-
//! In addition, the build script of this crate expose some metadata that are usefull to build.
25+
//! In addition, the build script of this crate expose some metadata to downstream crate that also
26+
//! want to use Qt's C++ API.
2627
//! Build scripts of crates that depends directly from this crate will have the following
27-
//! environment variable when the build script is run:
28+
//! environment variables set when the build script is run:
2829
//! - `DEP_QT_VERSION`: The Qt version as given by qmake
2930
//! - `DEP_QT_INCLUDE_PATH`: The include directory to give to the `cpp_build` crate to locate the Qt headers
3031
//! - `DEP_QT_LIBRARY_PATH`: The path containing the Qt libraries.

0 commit comments

Comments
 (0)