Boshen 08da7bd29a refactor(allocator): clean up obsolete bumpalo references (#18172)
## Summary

Now that bumpalo has been inlined into oxc_allocator (#18168), this PR cleans up comments and documentation that still reference bumpalo as an external dependency.

- Update module docs in `bump.rs` and `bumpalo_alloc.rs` to say "originally derived from" instead of "ported from"
- Remove obsolete comments about bumpalo version pinning in `from_raw_parts.rs`
- Update inline comments in `allocator.rs` from "delegates to bumpalo" to "it's a small function"
- Remove outdated TODO about replacing bumpalo in `tracking.rs`
- Update `ARCHITECTURE.md` and parser docs to reference `oxc_allocator` instead of bumpalo
- Clean up bumpalo references in other crates (`oxc_semantic`, `oxc_data_structures`, `apps/oxlint`, `napi/parser`, `tasks/ast_tools`)

## Test plan

- [x] `cargo check -p oxc_allocator` passes
- [x] `cargo test -p oxc_allocator` passes
- [x] Changes are documentation/comment only - no functional changes

🤖 Generated with [Claude Code](https://claude.ai/code)
2026-01-18 08:47:25 +00:00
2025-02-22 11:56:25 +08:00



Oxc logo


MIT licensed Build Status Code Coverage CodSpeed Badge Sponsors

Discord chat Playground Website

Oxc

/oʊ ɛks siː/

The Oxidation Compiler is a collection of high-performance tools for JavaScript and TypeScript written in Rust.

Oxc is part of VoidZero's vision for a unified, high-performance toolchain for JavaScript. It powers Rolldown (Vite's future bundler) and enables the next generation of ultra-fast development tools that work seamlessly together.

For more information, check out our website at oxc.rs.

* Oxidation is the chemical process that creates rust

🏗️ Design Principles

  • Performance: Through rigorous performance engineering.
  • Correctness: Through conformance testing to standards and similar projects.
  • Developer Experience: Clear APIs, comprehensive documentation, and sensible configuration.
  • Modular composability: Use individual components independently or compose them into complete toolchains.

Read more about our architecture and performance philosophy.

📦 Tools & Packages

Tool npm crates.io
Linter oxlint -
Formatter oxfmt -
Parser oxc-parser oxc_parser
Transformer oxc-transform oxc_transformer
Minifier oxc-minify oxc_minifier
Resolver oxc-resolver oxc_resolver

See documentation for detailed usage guides for each tool.

Quick Start

Linter

The production-ready linter catches mistakes for you with sensible defaults and optional configuration:

npx oxlint@latest

To give you an idea of its capabilities, here is an example from the vscode repository, which finishes linting 4800+ files in 0.7 seconds:

oxlint documentation

Formatter

Fast, opinionated code formatter compatible with Prettier:

npx oxfmt@latest

Formatter documentation

Parser (Node.js)

The fastest JavaScript/TypeScript parser written in Rust:

npm install oxc-parser
import { parseSync } from "oxc-parser";
const result = parseSync("const x = 1;");

Parser documentation

Transformer (Node.js)

TypeScript, React, and modern JavaScript transformation:

npm install oxc-transform
import { transform } from "oxc-transform";
const result = transform("source.tsx", code, { typescript: true });

Transformer documentation

Minifier (Node.js)

High-performance JavaScript minifier:

npm install oxc-minify
import { minify } from "oxc-minify";
const result = minify(code, { mangle: true });

Minifier documentation

Rust

Individual crates are published for building your own JavaScript tools:

[dependencies]
oxc = "0.x"

Rust documentation

VoidZero Inc.

Oxc is a project of VoidZero, see our announcement Announcing VoidZero - Next Generation Toolchain for JavaScript.

If you have requirements for JavaScript tools at scale, please get in touch!

🙋 Who's using Oxc?

Rolldown and Nuxt use Oxc for parsing. Rolldown also uses Oxc for transformation and minification. Nova, swc-node, and knip use oxc_resolver for module resolution. Preact, Shopify, ByteDance, and Shopee use oxlint for linting.

See more projects using Oxc →

✍️ Contribute

Check out some of the good first issues or ask us on Discord.

See CONTRIBUTING.md for guidance, or read the complete contributing guide on our website →

If you are unable to contribute by code, you can still participate by:

🤝 Credits

This project was incubated with the assistance of these exceptional mentors and their projects:

Special thanks go to:

❤ Who's Sponsoring Oxc?

My sponsors

📖 License

Oxc is free and open-source software licensed under the MIT License.

Oxc ports or copies code from other open source projects, their licenses are listed in Third-party library licenses.

S
Description
migrate-oxlint: Guide for migrating a project from ESLint to Oxlint. Use when asked to migrate, convert, or switch a JavaScript/TypeScript project's linter from ESLint to…; migrate-oxfmt: Guide for migrating a project from Prettier or Biome to Oxfmt. Use when asked to migrate, convert, or switch a JavaScript/TypeScript project's formatter from…
Readme MIT 551 MiB
Languages
Rust 83.4%
JavaScript 9.4%
TypeScript 7.1%