Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ max, min 5.83625092886 -3.4749002526
m2, m3, m4 999218.191078 -7187.64448532 2993126.28574
```

Rust Usage
----------
A standalone Rust crate `faststat-core` provides the same streaming statistics.
Example:
```rust
use faststat_core::Stats;

let mut s = Stats::new();
s.add(1.0);
s.add(2.0);
println!("mean {}", s.mean());
```

Profiler
--------
The :mod:`faststat.profiler` module can attach using the standard
Expand Down
83 changes: 83 additions & 0 deletions faststat-core/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions faststat-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "faststat-core"
version = "0.1.0"
edition = "2021"

[dependencies]
libc = "0.2"
windows-sys = { version = "0.48", optional = true, features = ["Win32_Foundation", "Win32_System_SystemInformation"] }
Loading
Loading