mirror of
https://github.com/aphrody-labs/cef-rs.git
synced 2026-10-14 05:09:23 +00:00
b08087bf2f00d7693b6f90c9e807139b2d2d4ed8
Supported Targets
| Target | Linux | macOS | Windows |
|---|---|---|---|
| x86_64 | ✅ | ✅ | ✅ |
| ARM64 | ✅ | ✅ | ✅ |
Usage
Linux
Manual Install
- Download Linux-64bit prebuilt with
sys/upgrade.rs:
cd sys
./upgrade.rs x86_64-unknown-linux-gnu --download
- Build and run the application with
LD_LIBRARY_PATH(or you can also add rpath to your cargo config or build script):
LD_LIBRARY_PATH=sys/cef/archive cargo r --example demo
Flatpak
- Install flatpak runtime & sdk:
flatpak install flathub dev.crabnebula.Platform
flatpak install flathub dev.crabnebula.Sdk
-
Setup cargo project for flatpak. See flatpak-builder-tools for more details. Here are files you will need to have at leaset:
- flatpak-cargo-generator.py
- flatpak manifest file (ie. app.example.demo.yml)
-
Build the flatpak application and run:
cargo b --example demo
python3 ./flatpak-cargo-generator.py ./Cargo.lock -o cargo-sources.json
touch run.sh
flatpak-builder --user --install --force-clean target app.example.demo.yml
flatpak run app.example.demo
Contributing
Please see CONTRIBUTING.md for details.
Languages
Rust
98.1%
C
1%
Nix
0.9%
