build from source
wis is a Cargo workspace with a React and TypeScript interface, wired together
with Tauri 2. everything runs through the Makefile.
prerequisites
Section titled “prerequisites”- Rust via rustup. the repository pins its compiler in
rust-toolchain.toml, and rustup installs that exact version (with clippy and rustfmt) the first time you build. - Node.js 22.13 or later and pnpm 11 or later. wis is pnpm-only; never use npm, npx, or yarn.
- the Tauri prerequisites for your platform: Xcode or its command-line tools on macOS (26.4 or later, since the build compiles a small Swift bridge to Apple’s Translation framework), the Microsoft C++ build tools and WebView2 on Windows, and the WebKitGTK development packages on Linux. on Ubuntu 22.04, the CI build installs these:
sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev \ libayatana-appindicator3-dev librsvg2-dev patchelfclone and run
Section titled “clone and run”git clone https://github.com/fuyu-myk/wis-browser.gitcd wis-browsermake install # install the frontend dependencies (pnpm)make dev # launch the app in development modemake dev runs pnpm tauri dev with a separate development profile
(src-tauri/tauri.dev.conf.json). the dev build runs under its own app
identifier, so it keeps its own browsing profile and never touches the data of
an installed copy of wis. the built-in
Tor client is a default cargo feature,
so a plain make dev already includes it. development builds never check for
updates.
a production build
Section titled “a production build”make buildthis produces an optimized app and its installers for your platform. the
Makefile picks the target for your machine: Apple Silicon or Intel on macOS,
x86_64 on Linux and Windows. set TARGET_TRIPLE to override it.
a local build without a signing identity stays unsigned. only the release workflow signs and notarizes the macOS app; see CI and releases.
the commands
Section titled “the commands”| command | what it does |
|---|---|
make install | install frontend dependencies with pnpm |
make dev | launch the app in development mode, on its own dev profile |
make build | production build and installers for your platform |
make build_frontend | build only the React frontend bundle |
make check | cargo check the whole workspace, tests included |
make test | run the Rust tests, then the frontend tests |
make lint | clippy with warnings as errors, then ESLint on the frontend |
make fmt | format all Rust code |
make fmt-check | check Rust formatting without changing files (the CI gate) |
make clean | remove build artefacts, the frontend bundle, and node_modules |
make help | list every target |
checks before you open a pull request
Section titled “checks before you open a pull request”cd crates/shell && pnpm exec tsc --noEmit # frontend type checkmake lint # clippy, then ESLintmake test # Rust tests, then frontend testsmake fmt-check # Rust formatting, as CI checks itpnpm buildincrates/shellruns the same type check (tsc) followed by a productionvite build.- ESLint enforces the React hooks rules and
no-console, all as errors. - the frontend tests run on Node’s built-in
node:testrunner, with no extra dependencies.pnpm testfails if line or function coverage of the frontend’s plain modules (src/liband each feature’slibcode) drops below 80%. the tests also run the page scripts embedded in the Rust source, read straight from it, so they test the text that ships.
CI runs these gates on macOS, Windows, and Linux for every push and pull request
to main and preview. the macOS job also builds for macOS 14, the oldest
version wis supports, and fails if the app links anything macOS 14 lacks.
cargo features
Section titled “cargo features”the tor feature, the bundled Arti Tor client, is on by default. to build
without it, pass --no-default-features through to cargo:
cd crates/shellpnpm tauri build -- --no-default-featureswhere to go next
Section titled “where to go next”read the contributing guide for branch names, commit style, and the review bar. the architecture reference explains how the six crates fit together and where new logic belongs, which is the best starting point if you plan to contribute.