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 🙏

© 2024 – Pkg Stats / Ryan Hefner

cloud-rustc

v1.0.4

Published

从 crate 入口 rust 文件开始,分析 module 之间的层级关系,连接关联的多个 rust 文件成为一个 rust 文件。再把被连接在一起的单个 rust 文件发送给 https://play.rust-lang.org/execute 进行编译。最后,显示后端返回的内容。

Downloads

11

Readme

cloud-rustc

crate入口rust文件开始,分析modules之间的层级关系,连接关联的多个rust文件成为一个rust文件。再把被连接在一起的单个rust文件发送给POST - https://play.rust-lang.org/executePOST - https://play.rust-lang.org/compile云端服务进行编译。最后,显示云端编译后返回的结果(区分标准输出与标准错误输出)。

从而,利用Mozilla云端编译器,缓解本地rustc编译过慢(这逼着我换电脑呀!),但又急于获悉cargo test(甚至cargo run)运行结果的尴尬。

安装

npm i -g cloud-rustc

用法

cloud-rustc run -e rust-samples/sm4_like/mod.rs

子命令

|命令|描述| |--------|-------------| |run|功能等同于 cargo run| |build|功能等同于 cargo build| |test|功能等同于 cargo test| |wasm|编译生成 WEB 字节码文件| |asm|编译生成字节码文件| |mir|编译生成 MIR 文件| |llvm-ir|编译生成 LLVM-IR 文件| |help [command]|显示指定子命令的帮助信息|

选项

|选项|描述| |--------|-------------| |-e, --entry <uri>|rust crate 入口文件| |-md, --mode [mode]|编译模式:debug | release (default: "debug")| |-cl, --channel [channel]|rustc 编译器类型:nightly | beta | stable (default: "nightly")| |-ed, --edition [edition]|rustc 编译器大版本号:2018 | 2015 (default: "2018")| |-bt, --back-trace|在错误信息中,显示详细的函数调用栈 (default: false)| |-o, --output-file [file]|输出编译结果至文件| |-V, --version|此工具当前版本号| |-h, --help|显示帮助信息|