Skip to main content
Article·servo.org
rustweb-developmentopen-sourceinfrastructureautomationservocrates.io

Servo is now available on crates.io

Integrate Servo, a high-performance, Rust-based web rendering engine, into your Rust projects by adding it as a dependency on crates.io. This enables modular web content rendering and UI development within your applications.

beginner5 min4 steps
The play
  1. Create a New Rust Project
    Initialize a new Rust binary project where you want to use Servo's capabilities.
  2. Add Servo Dependency
    Open your `Cargo.toml` file and add `servo` under the `[dependencies]` section. This makes Servo's components available to your project.
  3. Verify Dependency Integration
    Run a `cargo build` command to ensure the Servo crate is successfully fetched and compiled into your project. While this doesn't use Servo directly, it confirms the setup.
  4. Start Implementing Servo Components
    Now that Servo is a dependency, you can begin exploring its modular APIs in `src/main.rs` to render web content, build custom UIs, or integrate webview solutions. Refer to Servo's official documentation for specific usage examples.
Starter code
[dependencies]
servo = "*"
Source
Servo is now available on crates.io — Action Pack