Crates.io | cef |
lib.rs | cef |
version | 117.2.6 |
source | src |
created_at | 2023-05-22 11:50:39.688149 |
updated_at | 2023-10-20 10:44:33.655773 |
description | Use cef in Rust |
homepage | |
repository | https://github.com/wusyong/cef-rs |
max_upload_size | |
id | 870608 |
size | 102,792 |
Use CEF in Rust.
Target | Linux | macOS | Windows |
---|---|---|---|
x86_64 | ✅ | ❎ | ❎ |
ARM64 | ✅ | ❎ | ❎ |
Download Linux-64bit build.
Copy files to .local
:
cp -r Resources/* ~/.local/share/cef
cp -r Release/* ~/.local/share/cef
LD_LIBRARY_PATH
:LD_LIBRARY_PATH=~/.local/share/cef cargo r --example demo
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:
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
Please see CONTRIBUTING.md for details.
Cef-rs is looking for the best approach to use CEF. On Linux, this is achived by using same local share directory or same flatpak runtime. So every application can share the same library. We are looking for the similar methods on macOS and Windows. Welcome to open feature requests if the feature you look for isn't listed below. But please understand that some requests might result into not planned.