npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@proteus-vue/compiler-backend-rust

v0.3.0-beta.28

Published

G-29 B2 RustBackend——cargo crate(proteus-cc-rust CLI:Vue SFC → 语义等价的 CompilerIR JSON)。npm 包为 bin 工具壳(check:pkg bin 豁免);真实编译核心在 Rust 侧(Cargo.toml + src/)。Node/Rust/WASM 三端产出同一 CompilerIR(G-29.1 铁律)

Readme

@proteus-vue/compiler-backend-rust

G-29 B2 RustBackend(docs/proteus-compiler-backend-1-plan/)——编译器的 Rust 后端,与 Node / WASM 后端产出语义等价的 CompilerIR。

一句话

真编译核心在 Rust 侧(Cargo.toml + src/),npm 包只是 bin 工具壳: npx proteus-cc-rust compile <file.vue> → stdout 输出 CompilerIR JSON,与 Node 后端逐字段可比。

内容

| 模块 | 说明 | |------|------| | bin/cli.js | npm bin 壳——定位 cargo 产物(release 优先,缺则 cargo build --release)并透传参数 | | src/main.rs | CLI 入口:compile <file.vue> [--pretty] | | src/ir.rs | CompilerIR 结构与序列化(与 @proteus-vue/compiler-backend 的契约同源) | | src/template.rs | 模板解析 | | src/semantic.rs | 语义链接(p-* 标签 → 语义映射,与 Node 后端同表) |

用法

# 经 npm bin(首次调用会自动 cargo build --release)
npx proteus-cc-rust compile src/pages/index.vue
npx proteus-cc-rust compile src/pages/index.vue --pretty
// 经 CLI 的 --compiler rust:框架会做 Node/Rust 双编译语义等价校验(不一致则 fail fast)
// proteus build --target web --compiler rust

约束

  • G-29.1 铁律:Node / Rust / WASM 三端对同一份 SFC 必须产出同一份 CompilerIR—— 等价性由 verifyDualCompilerEquivalence 在每页编译前校验,不一致不产出。
  • 本包不进 npm 的是编译核心:发布物含 bin/ 与 package.json;Rust 源码随仓库分发, 用户侧首次运行由 cargo build --release 产出二进制(故需本机有 Rust 工具链)。