cxx-qt-io is a library of Rust bindings to Qt's I/O framework, built on top of cxx and cxx-qt-lib. It provides bindings for QIODevice and its subclasses, as well as helper classes.
For more information about the CXX-Qt project and how to use Qt in Rust, visit the CXX-Qt Documentation book.
cxx-qt-io currently supports all Qt versions from Qt 6.1 onward.
-
QtCore:
-
QtNetwork:
-
QtCore:
-
QtNetwork:
- QAbstractNetworkCache
- QAuthenticator
- QCryptographicHashAlgorithm
- QDtls
- QDtlsClientVerifier
- QDtlsGeneratorParameters
- QHostAddress
- QHstsPolicy
- QHttp1Configuration
- QHttp2Configuration
- QHttpHeaders
- QHttpMultiPart
- QHttpPart
- QNetworkAccessManager
- QNetworkAddressEntry
- QNetworkCacheMetaData
- QNetworkCookie
- QNetworkCookieJar
- QNetworkDatagram
- QNetworkDiskCache
- QNetworkInterface
- QNetworkProxy
- QNetworkRequest
- QOcspResponse
- QSslCertificate
- QSslCertificateExtension
- QSslCipher
- QSslConfiguration
- QSslDiffieHellmanParameters
- QSslEllipticCurve
- QSslError
- QSslKey
- QSslPreSharedKeyAuthenticator
- QSslServer
- QTcpServer
Ensure that you have the following installed
- C++ compiler
- clang-format
- CMake
- Qt 6
- Rust toolchain
- mold, lld, or GNU ld.gold for Linux (lld is included in the XCode toolchain on macOS)
To build the library:
cargo buildTesting assumes that cargo clippy and cargo fmt are available, you may need to install these with rustup component add clippy rustfmt.
To test the library:
cargo testLicensed under MIT license.
Test utilities are adapted from KDAB's own tests in the cxx-qt repository under its MIT License:
SPDX license attributions are present in all adapted files.