2024-11-22 15:30:00 +08:00
2024-11-14 11:38:40 +08:00
2024-11-14 16:41:05 +08:00
2024-11-21 20:21:01 +08:00
2024-11-20 14:46:21 +08:00
2024-11-22 15:30:00 +08:00
2024-11-22 15:30:00 +08:00
2024-11-20 14:46:21 +08:00
2023-06-01 19:31:53 +08:00
2024-11-21 20:21:01 +08:00
2024-11-20 19:28:33 +08:00
2023-10-20 22:19:31 +09:00
2024-11-14 16:41:05 +08:00
2023-06-01 19:31:53 +08:00
2024-11-20 14:46:21 +08:00
2023-06-01 13:40:36 +08:00
2023-06-01 17:02:19 +08:00
2023-06-01 17:02:19 +08:00
2024-11-20 19:28:33 +08:00
2024-11-20 17:31:38 +08:00

cef-rs logo

cef-rs - Emebbed CEF into Rust Application

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.

S
Description
No description provided
Readme
39 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 98.1%
C 1%
Nix 0.9%