Skip to content
/ wef Public

Wef is a Rust library for embedding WebView functionality using Chromium Embedded Framework (CEF3) with offscreen rendering support.

License

Notifications You must be signed in to change notification settings

longbridge/wef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wef

Web Embedding Framework

CI Crates.io Documentation

Wef (Web Embedding Framework) is a Rust library for embedding WebView functionality using Chromium Embedded Framework (CEF3) with offscreen rendering support.

The Wef name is an abbreviation of "Web Embedding Framework", and it's also inspired by Wry.

Wef Example

Features

  • Cross-Platform: Support for Windows, macOS, and Linux
  • CEF3 Integration: Built on top of Chromium Embedded Framework for reliable web rendering
  • Offscreen Rendering: Advanced rendering capabilities with offscreen support
  • JavaScript Bridge: Seamless communication between Rust and JavaScript
  • Multi-Process Architecture: Leverages CEF's multi-process design for stability
  • Cargo Integration: Complete toolchain with cargo-wef for easy development

Quick Start

Installation

Add wef to your Cargo.toml:

[dependencies]
wef = "0.6.0"

Install cargo-wef

cargo install cargo-wef

Initialize CEF

cargo wef init

Basic Usage

use wef::Settings;

fn main() {
    let settings = Settings::new();
    wef::launch(settings, || {
        // Your application logic here
    });
}

Development

Building

# Build the library
cargo wef build

# Run tests
cargo test --all

# Run an example
cargo wef run -p wef-winit

Requirements

  • CEF binary distribution (automatically downloaded by cargo-wef)
  • Platform-specific dependencies:
    • Linux: libglib2.0-dev, pkg-config
    • Windows: Visual Studio Build Tools
    • macOS: Xcode Command Line Tools

Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

License

Licensed under the Apache License, Version 2.0. See LICENSE-APACHE for details.

About

Wef is a Rust library for embedding WebView functionality using Chromium Embedded Framework (CEF3) with offscreen rendering support.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •