mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
The Servo Browser Engine
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.45.1 to 1.46.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tokio-rs/tokio/releases">tokio's releases</a>.</em></p> <blockquote> <h2>Tokio v1.46.0</h2> <h1>1.46.0 (July 2nd, 2025)</h1> <h3>Fixed</h3> <ul> <li>net: fixed <code>TcpStream::shutdown</code> incorrectly returning an error on macOS (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7290">#7290</a>)</li> </ul> <h2>Added</h2> <ul> <li>sync: <code>mpsc::OwnedPermit::{same_channel, same_channel_as_sender}</code> methods (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7389">#7389</a>)</li> <li>macros: <code>biased</code> option for <code>join!</code> and <code>try_join!</code>, similar to <code>select!</code> (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7307">#7307</a>)</li> <li>net: support for cygwin (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7393">#7393</a>)</li> <li>net: support <code>pope::OpenOptions::read_write</code> on Android (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7426">#7426</a>)</li> <li>net: add <code>Clone</code> implementation for <code>net::unix::SocketAddr</code> (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7422">#7422</a>)</li> </ul> <h2>Changed</h2> <ul> <li>runtime: eliminate unnecessary lfence while operating on <code>queue::Local<T></code> (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7340">#7340</a>)</li> <li>task: disallow blocking in <code>LocalSet::{poll,drop}</code> (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7372">#7372</a>)</li> </ul> <h2>Unstable</h2> <ul> <li>runtime: add <code>TaskMeta::spawn_location</code> tracking where a task was spawned (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7417">#7417</a>)</li> <li>runtime: removed borrow from <code>LocalOptions</code> parameter to <code>runtime::Builder::build_local</code> (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7346">#7346</a>)</li> </ul> <h2>Documented</h2> <ul> <li>io: clarify behavior of seeking when <code>start_seek</code> is not used (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7366">#7366</a>)</li> <li>io: document cancellation safety of <code>AsyncWriteExt::flush</code> (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7364">#7364</a>)</li> <li>net: fix docs for <code>recv_buffer_size</code> method (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7336">#7336</a>)</li> <li>net: fix broken link of <code>RawFd</code> in <code>TcpSocket</code> docs (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7416">#7416</a>)</li> <li>net: update <code>AsRawFd</code> doc link to current Rust stdlib location (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7429">#7429</a>)</li> <li>readme: fix double period in reactor description (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7363">#7363</a>)</li> <li>runtime: add doc note that <code>on_*_task_poll</code> is unstable (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7311">#7311</a>)</li> <li>sync: update broadcast docs on allocation failure (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7352">#7352</a>)</li> <li>time: add a missing panic scenario of <code>time::advance</code> (<a href="https://redirect.github.com/tokio-rs/tokio/issues/7394">#7394</a>)</li> </ul> <p><a href="https://redirect.github.com/tokio-rs/tokio/issues/7290">#7290</a>: <a href="https://redirect.github.com/tokio-rs/tokio/pull/7290">tokio-rs/tokio#7290</a> <a href="https://redirect.github.com/tokio-rs/tokio/issues/7307">#7307</a>: <a href="https://redirect.github.com/tokio-rs/tokio/pull/7307">tokio-rs/tokio#7307</a> <a href="https://redirect.github.com/tokio-rs/tokio/issues/7311">#7311</a>: <a href="https://redirect.github.com/tokio-rs/tokio/pull/7311">tokio-rs/tokio#7311</a> <a href="https://redirect.github.com/tokio-rs/tokio/issues/7336">#7336</a>: <a href="https://redirect.github.com/tokio-rs/tokio/pull/7336">tokio-rs/tokio#7336</a> <a href="https://redirect.github.com/tokio-rs/tokio/issues/7340">#7340</a>: <a href="https://redirect.github.com/tokio-rs/tokio/pull/7340">tokio-rs/tokio#7340</a> <a href="https://redirect.github.com/tokio-rs/tokio/issues/7346">#7346</a>: <a href="https://redirect.github.com/tokio-rs/tokio/pull/7346">tokio-rs/tokio#7346</a> <a href="https://redirect.github.com/tokio-rs/tokio/issues/7352">#7352</a>: <a href="https://redirect.github.com/tokio-rs/tokio/pull/7352">tokio-rs/tokio#7352</a> <a href="https://redirect.github.com/tokio-rs/tokio/issues/7363">#7363</a>: <a href="https://redirect.github.com/tokio-rs/tokio/pull/7363">tokio-rs/tokio#7363</a> <a href="https://redirect.github.com/tokio-rs/tokio/issues/7364">#7364</a>: <a href="https://redirect.github.com/tokio-rs/tokio/pull/7364">tokio-rs/tokio#7364</a> <a href="https://redirect.github.com/tokio-rs/tokio/issues/7366">#7366</a>: <a href="https://redirect.github.com/tokio-rs/tokio/pull/7366">tokio-rs/tokio#7366</a> <a href="https://redirect.github.com/tokio-rs/tokio/issues/7372">#7372</a>: <a href="https://redirect.github.com/tokio-rs/tokio/pull/7372">tokio-rs/tokio#7372</a> <a href="https://redirect.github.com/tokio-rs/tokio/issues/7389">#7389</a>: <a href="https://redirect.github.com/tokio-rs/tokio/pull/7389">tokio-rs/tokio#7389</a> <a href="https://redirect.github.com/tokio-rs/tokio/issues/7393">#7393</a>: <a href="https://redirect.github.com/tokio-rs/tokio/pull/7393">tokio-rs/tokio#7393</a></p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
---|---|---|
.cargo | ||
.github | ||
.vscode | ||
components | ||
docs | ||
etc | ||
ports/servoshell | ||
python | ||
resources | ||
support | ||
tests | ||
third_party | ||
.gitattributes | ||
.gitignore | ||
.mailmap | ||
.python-version | ||
Cargo.lock | ||
Cargo.toml | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
deny.toml | ||
Info.plist | ||
LICENSE | ||
LICENSE_WHATWG_SPECS | ||
mach | ||
mach.bat | ||
PULL_REQUEST_TEMPLATE.md | ||
README.md | ||
ruff.toml | ||
rust-toolchain.toml | ||
rustfmt.toml | ||
SECURITY.md | ||
servo-tidy.toml | ||
servobuild.example | ||
shell.nix | ||
taplo.toml | ||
uv.toml |
The Servo Parallel Browser Engine Project
Servo is a prototype web browser engine written in the Rust language. It is currently developed on 64-bit macOS, 64-bit Linux, 64-bit Windows, 64-bit OpenHarmony, and Android.
Servo welcomes contribution from everyone. Check out:
- The Servo Book for documentation
- servo.org for news and guides
Coordination of Servo development happens:
- Here in the Github Issues
- On the Servo Zulip
- In video calls advertised in the Servo Project repo.
Getting started
For more detailed build instructions, see the Servo book under Setting up your environment, Building Servo, Building for Android and Building for OpenHarmony.
macOS
- Download and install Xcode and
brew
. - Install
uv
:curl -LsSf https://astral.sh/uv/install.sh | sh
- Install
rustup
:curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Restart your shell to make sure
cargo
is available - Install the other dependencies:
./mach bootstrap
- Build servoshell:
./mach build
Linux
- Install
curl
:- Arch:
sudo pacman -S --needed curl
- Debian, Ubuntu:
sudo apt install curl
- Fedora:
sudo dnf install curl
- Gentoo:
sudo emerge net-misc/curl
- Arch:
- Install
uv
:curl -LsSf https://astral.sh/uv/install.sh | sh
- Install
rustup
:curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Restart your shell to make sure
cargo
is available - Install the other dependencies:
./mach bootstrap
- Build servoshell:
./mach build
Windows
- Download
uv
,choco
, andrustup
- Be sure to select Quick install via the Visual Studio Community installer
- In the Visual Studio Installer, ensure the following components are installed:
- Windows 10 SDK (10.0.19041.0) (
Microsoft.VisualStudio.Component.Windows10SDK.19041
) - MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest) (
Microsoft.VisualStudio.Component.VC.Tools.x86.x64
) - C++ ATL for latest v143 build tools (x86 & x64) (
Microsoft.VisualStudio.Component.VC.ATL
) - C++ MFC for latest v143 build tools (x86 & x64) (
Microsoft.VisualStudio.Component.VC.ATLMFC
)
- Windows 10 SDK (10.0.19041.0) (
- Restart your shell to make sure
cargo
is available - Install the other dependencies:
.\mach bootstrap
- Build servoshell:
.\mach build
Android
- Ensure that the following environment variables are set:
ANDROID_SDK_ROOT
ANDROID_NDK_ROOT
:$ANDROID_SDK_ROOT/ndk/26.2.11394342/
ANDROID_SDK_ROOT
can be any directory (such as~/android-sdk
). All of the Android build dependencies will be installed there.
- Install the latest version of the Android command-line
tools to
$ANDROID_SDK_ROOT/cmdline-tools/latest
. - Run the following command to install the necessary components:
sudo $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --install \ "build-tools;34.0.0" \ "emulator" \ "ndk;26.2.11394342" \ "platform-tools" \ "platforms;android-33" \ "system-images;android-33;google_apis;x86_64"
- Follow the instructions above for the platform you are building on
OpenHarmony
- Follow the instructions above for the platform you are building on to prepare the environment.
- Depending on the target distribution (e.g.
HarmonyOS NEXT
vs pureOpenHarmony
) the build configuration will differ slightly. - Ensure that the following environment variables are set
DEVECO_SDK_HOME
(Required when targetingHarmonyOS NEXT
)OHOS_BASE_SDK_HOME
(Required when targetingOpenHarmony
)OHOS_SDK_NATIVE
(e.g.${DEVECO_SDK_HOME}/default/openharmony/native
or${OHOS_BASE_SDK_HOME}/${API_VERSION}/native
)SERVO_OHOS_SIGNING_CONFIG
: Path to json file containing a valid signing configuration for the demo app.
- Review the detailed instructions at Building for OpenHarmony.
- The target distribution can be modified by passing
--flavor=<default|harmonyos>
to `mach <build|package|install>.