< 返回版块

qwy16 发表于 2020-06-17 12:43

Rust语言实现网页分析器。

A simple web analytics in Rust

https://github.com/kooparse/bast

Rust语言实现网页分析器,生成网站流量简明报告。

Install

Unix and OS/X

  • For the api.

    • Fork or download this repository.
    • cd to the project's location.
    • cargo install diesel_cli --no-default-features --features "postgres".
    • diesel setup (You'll need postgres up and running).
  • For the front.

    • cd to website folder.
    • npm install

Running the api in development

  • For the api.

    First create a new .env file at the root. You should use .env.sample to get all required values. If you want to watch the project while developping it, install cargo-watch first.

    • cargo install cargo-watch
    • run cargo watch -i "website/**/*" -x run
    • Live at http://localhost/3333.

    Otherwise simply run cargo run.

  • For the front (website).

    • cd to website folder.
    • npm run dev
    • Live at http://localhost/3000.

Rust和WebAssembly多线程系统库。

A multithreading library for Rust and WebAssembly

https://github.com/w3reality/wasm-mt

A multithreading library for Rust and WebAssembly. Rust和WebAssembly多线程系统库。

wasm-mt helps you create and execute Web Worker based threads. You can program the threads simply using Rust closures and orchestrate them with async/await.

Examples

  • wasm-mt-pool - Thread pool library based on wasm-mt.

You can run all the following apps in browser!

  • exec - How to use wasm_mt.
  • fib - Computing a Fibonacci sequence with nested threads.
  • executors - Minimal serial/parallel executors using wasm_mt.
  • parallel - Julia set benchmark of serial/parallel executors.

用Rust语言清除Gitignored垃圾。

Using Rust to Delete Gitignored Cruft

https://www.forrestthewoods.com/blog/using-rust-to-delete-gitignored-cruft/

  • Delete files across many source repos at once.
  • Delete files inside Git, Mercurial, and Perforce repos.
  • Delete files within a monorepo.
  • Support Windows, macOS, and Linux.
  • Source Code: GitHub
  • Installation: cargo install fts_gitignore_nuke

native-dialog - 跨平台文件选取器和消息框开发库。

native-dialog - A cross-platform file picker and message box library. https://github.com/balthild/native-dialog-rs

native-dialog显示文件选取器和消息框,目前支持GNU/Linux, MacOS和Windows。

安装:

cargo add native-dialog

用法:

cargo add native-dialoguse native_dialog::*;
                       
let dialog = OpenMultipleFile {
    dir: None,
    filter: None,
};
let result = dialog.show().unwrap();

let message = format!("{:?}", result);

let dialog = MessageConfirm {
    title: "Do you want to open these files?",
    text: &message,
    typ: MessageType::Info,
};
let result = dialog.show().unwrap();

assert_eq!(result, true);

Ropey 1.2 - 一个rust语言可编程文本编辑缓存

Ropey 1.2 - an editable text buffer for Rust

https://crates.io/crates/ropey/1.2.0

Ropey是rust语言的UTF8文本利器,是设计来支持文本缓存用到的类似文本编辑器这样的应用的。Ropey是快速,高效, 稳健的能处理大量的文本编辑特性造成的内存相对支离破碎的文本处理编辑器。

From 日报小组 BobQ

独立日报订阅地址:

社区学习交流平台订阅:

评论区

写评论

还没有评论

1 共 0 条评论, 1 页