-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b331c83
commit 20ac6af
Showing
2 changed files
with
30 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,33 +7,43 @@ SPDX-License-Identifier: MPL-2.0 | |
|
||
# Servo WebView for Qt using CXX-Qt | ||
|
||
TODO | ||
KDAB has built a demo of using [CXX-Qt](https://github.com/KDAB/cxx-qt/) to expose a [Servo](https://servo.org/) in Rust as a component to Qt. | ||
|
||
# Setup | ||
## Setup | ||
|
||
We need the nightly compiler for now. | ||
* Ensure that you have Qt installed and `qmake` in your `PATH`. | ||
* Ensure that you have the dependencies of `./mach boostrap` from the [https://github.com/servo/servo/](https://github.com/servo/servo/) repository. | ||
* Alternatively use the `shell.nix` | ||
* Install the nightly compiler from February | ||
|
||
```console | ||
rustup install nightly-2024-02-01 | ||
rustup default nightly-2024-02-01 | ||
$ rustup install nightly-2024-02-01 | ||
$ rustup default nightly-2024-02-01 | ||
``` | ||
|
||
# Notes | ||
* Then run in release mode | ||
|
||
## cargo.lock | ||
```console | ||
$ cargo run --release | ||
``` | ||
|
||
We need to copy the cargo.lock from the servo repository to ensure we have the correct patched versions of crates. | ||
## Licensing | ||
|
||
## Logging | ||
This demo is Copyright (C) Klarälvdalens Datakonsult AB, and is available under | ||
the terms of the [MPL-2.0](https://github.com/KDABLabs/cxx-qt-servo-webview/blob/main/LICENSES/MPL-2.0.txt) license. | ||
|
||
```console | ||
RUST_LOG="debug" cargo run | ||
``` | ||
Contact KDAB at <[email protected]> to inquire about additional features or | ||
services related to this project. | ||
|
||
## Rust | ||
# About KDAB | ||
|
||
We might need | ||
The KDAB Group is the global No.1 software consultancy for Qt, C++ and | ||
OpenGL applications across desktop, embedded and mobile platforms. | ||
|
||
```console | ||
rustup components add llvm-tools rustc-dev | ||
``` | ||
The KDAB Group provides consulting and mentoring for developing Qt applications | ||
from scratch and in porting from all popular and legacy frameworks to Qt. | ||
We continue to help develop parts of Qt and are one of the major contributors | ||
to the Qt Project. We can give advanced or standard trainings anywhere | ||
around the globe on Qt as well as C++, OpenGL, 3D and more. | ||
|
||
Please visit <https://www.kdab.com> to meet the people who write code like this. |