wild README

项目的 README,来自 github.com/wild-linker/wild。合并为一个 markdown 文件:README.md。

Wild linker

Wild logo - drawing of rusty chain links with vines

Wild is a linker with the goal of being very fast for iterative development.

The plan is to eventually make it incremental, however that isn't yet implemented. It is however already pretty fast even without incremental linking.

Benchmarks

The goal of Wild is to eventually be very fast via incremental linking. However, we also want to be as fast as we can be for non-incremental linking and for the initial link when incremental linking is enabled. See BENCHMARKING.md for details on running benchmarks.

We run benchmarks on a few different systems:

For example, linking Chromium with CREL relocations on the Ryzen system:

Benchmark of linking chrome-crel

Or linking a Wasm build of spidermonkey on the same system:

Benchmark of linking a Wasm build of spidermonkey

Feature support

The following platforms / architectures are currently supported:

Here are some of the bigger things we're looking ahead to:

Installation

From GitHub releases

Download a tarball from the releases page. Unpack it and copy the wild binary somewhere on your path.

Cargo binstall

If you have cargo-binstall, you can install wild as follows:

cargo binstall wild-linker

Brew

brew install wild-linker/wild/wild

Build latest release from crates.io

cargo install --locked wild-linker

Build from git head

To build and install the latest, unreleased code:

cargo install --locked --bin wild --git https://github.com/wild-linker/wild.git wild-linker

Nix

To use a stable Wild from Nixpkgs:

let
 wildStdenv = pkgs.useWildLinker pkgs.stdenv;
in
pkgs.callPackage ./package { stdenv = wildStdenv; }

to use the latest unstable git revision of wild, see the nix documentation.

Contributing

For more information on contributing to Wild, see CONTRIBUTING.md.

Chat server

We have a Zulip server for Wild-related chat. You can join here.

Further reading

Many of the posts on David's blog are about various aspects of the Wild linker.

Sponsorship

If you'd like to sponsor this work, that would be very much appreciated. The more sponsorship I get the longer I can continue to work on this project full time.

Also, the Wild project is supported by the Rust Foundation's Rust Innovation Lab: https://rustfoundation.org/media/welcoming-wild-to-the-rust-innovation-lab/

Code of Conduct

The Wild project adheres to the Rust code of conduct. If you have any moderation concerns or queries, please email [email protected].

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Wild by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

wild (wild-linker/wild)

正在搜索数据库…

4.1K ·GitHub
这是什么?Wild 是一款用 Rust 编写、面向 Linux 和 WebAssembly 的超快链接器,主要目标是通过缩短链接时间来加快迭代开发。
这是我要链接的库,还是独立的链接器可执行程序?它是一个独立的命令行链接器可执行程序,可以替代系统自带的链接器(如 ld),而不是需要导入到代码中的库。
如何安装 Wild?可以通过 cargo-binstall 或 Homebrew 安装,也可以从 crates.io 或 git HEAD 构建最新版本,通过 Nix 安装,或从 GitHub releases 页面下载预编译的压缩包,并将 wild 可执行文件加入 PATH。
使用它需要安装 Rust 工具链吗?只有从源码构建(crates.io 或 git HEAD)时才需要;通过 GitHub releases、Homebrew 或 Nix 安装,则可以直接获得现成的二进制文件,无需自己安装 Cargo。
增量链接已经可以用了吗?还不行。增量链接是项目长期的主要目标,但目前尚未实现;Mach-O(macOS)和原生 Windows 支持也仍只是路线图中的计划。
Wild 目前实际支持哪些平台和架构?Wild 目前面向 Linux 上的 x86-64、AArch64、RISC-V(riscv64gc)和 LoongArch64,并初步支持 PPC64LE,同时支持输出 WebAssembly(wasm32)。
我能自己验证 Wild 的速度宣称吗?可以。仓库中包含 BENCHMARKING.md 指南,并提供实际场景的基准测试,例如链接带有 CREL 重定位的 Chromium,以及链接 SpiderMonkey 的 Wasm 构建,测试机器包括 Ryzen 9 9955HX、Raspberry Pi 5 和 Mac Mini。
Wild 支持链接器脚本吗?支持。链接器脚本的用法已与使用指南和常见问题一同写入文档,因此依赖自定义脚本的现有构建配置不会成为障碍。
谁在支持 Wild 的开发?它由一位独立开发者构建,该开发者同时撰写相关博客;项目部分由 Rust 基金会的 Rust Innovation Lab 赞助。也欢迎个人赞助,用于资助全职投入该项目的开发工作。
有哪些类似的项目?blaze, simdjson, mold, hexyl, liteparse, spinel, ripgrep, libfyaml
大小
10.6 MB
星标
4.1K
时长
2年
提交 · 90 天