reportme

Crates.ioreportme
lib.rsreportme
version0.2.1
sourcesrc
created_at2024-01-13 05:13:12.714799
updated_at2024-03-18 08:27:33.02855
descriptionA metrics crate used in build environment. Used to know the actual usage of your crates.
homepage
repositoryhttps://github.com/xuxiaocheng0201/reportme/
max_upload_size
id1098308
size13,104
(xuxiaocheng0201)

documentation

https://docs.rs/reportme/

README

ReportMe

Crate GitHub last commit GitHub issues GitHub pull requests GitHub

Read this in other languages: English, 简体中文.

Description

A Rust metrics crate used in build environment. Used to know the actual usage of your crates.

Usage

Add this to your Cargo.toml:

[build.dependencies]
reportme = "~0.2"

Example

Use Cloudflare to build server. IT IS FREE!

use std::time::Duration;
use reportme::report_build;

fn main() {
    report_build("https://<YourUrl>.pages.dev/metrics",
                 Duration::from_secs(10),
                 env!("CARGO_PKG_NAME"),
                 env!("CARGO_PKG_VERSION"));
}
Commit count: 15

cargo fmt