Crate

bitflags

Macro for generating type-safe bitfield flag types.

What it is

bitflags! generates a newtype over an integer representing a set of named bit flags. The generated type implements bitwise operations (|, &, ^, !), Display, Debug, and iteration over the currently set flags.

Why it is commonly used

Used in system programming, graphics, OS wrappers, and protocol implementations that use bit fields — file permissions, event masks, capability flags, window style bits, and protocol option fields.

232
Repositories
2.1M
Total stars
339
Active
326
Owners
Browse 381 repositories using bitflags in Repos →
Often used with
Used by these organizations
50 of 381 repositories · ranked by stars
bun93kactive

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

⑂ 4.7k7.0k
zed85kactive

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

typst54kactive

A markup-based typesetting system that is powerful and easy to learn.

⑂ 1.6k1.2k
firecracker35kactive

Secure and fast microVMs for serverless computing.

⑂ 2.4k89
iced31kactive

A cross-platform GUI library for Rust, inspired by Elm

⑂ 1.6k445
egui29kactive

egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native

⑂ 2.0k1.1k
wezterm27kactive

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust

⑂ 1.5k1.7k
Graphite26kactive

Community-built comprehensive 2D content creation appplication for graphic design, digital art, and interactive real-time motion graphics powered by a node-based procedural graphics engine

⑂ 1.2k531
oxc22kactive

⚓ A collection of high-performance JavaScript tools.

⑂ 1.1k570
gitbutler21kactive

The GitButler version control client, backed by Git, powered by Tauri/Rust/Svelte

⑂ 951663
turso19kactive

Turso is an in-process SQL database, compatible with SQLite.

⑂ 1.0k695
wasmtime18kactive

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

⑂ 1.7k840
sqlx17kactive

🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.

windmill17kactive

Open-source developer platform to power your entire infra and turn scripts into webhooks, workflows and UIs. Fastest workflow engine (13x vs Airflow). Open-source alternative to Retool and Temporal.

rolldown14kactive

Fast Rust bundler for JavaScript/TypeScript with Rollup-compatible API.

⑂ 785279
← Browse all repos