hinto-janai
|
bf6c21c71e
|
database: split cumulative_difficulty into low/high bits (#114)
* types: split `cumulative_difficulty` into low/high bits
* helper: add `map` module
* database: use `helper`'s cumulative_diff functions
* helper: rename functions
splitting bits isn't necessarily `cumulative_difficulty` specific
* database: fix tests
* helper: docs
* helper: test output is low-endian bits
* helper: docs
* Update helper/src/map.rs
Co-authored-by: Boog900 <boog900@tutanota.com>
* Update helper/src/map.rs
Co-authored-by: Boog900 <boog900@tutanota.com>
---------
Co-authored-by: Boog900 <boog900@tutanota.com>
|
2024-04-24 21:47:48 +01:00 |
|
hinto-janai
|
e287ea1d84
|
helper: add fs (#67)
* helper: add `fs`
* fs: docs
* remove `cuprate_create_dir_all()`
Calling each function is better.
* fs: comments
* helper: fix `asynch` tokio import for tests
* fs: add sanity tests
* fs: add `is_absolute()` to tests
* fs: assert path is absolute
* Update helper/src/fs.rs
Co-authored-by: Boog900 <boog900@tutanota.com>
* Update helper/src/fs.rs
Co-authored-by: Boog900 <boog900@tutanota.com>
---------
Co-authored-by: Boog900 <boog900@tutanota.com>
|
2024-02-21 17:54:46 +00:00 |
|
hinto-janai
|
a58d33b95e
|
helper: add constants & COMMIT (#64)
* helper: add `build.rs`
* helper: add `constants` feature
* helper: add `constants.rs`
* helper: use `.as_bytes()` for commit hash length check
* helper: `to_lowercase()` and `trim()` to `COMMIT`
|
2024-02-15 21:44:43 +00:00 |
|
hinto-janai
|
ba0f82c356
|
helper: use crossbeam::atomic::AtomicCell for atomic floats (#56)
* cargo.toml: add `crossbeam`
* helper: use `crossbeam::atomic::AtomicCell` for `AtomicF(32|64)`
* helper: atomic docs
|
2024-02-10 23:19:12 +00:00 |
|
Boog900
|
ed598e374e
|
remove empty cuprate bin and common
|
2024-01-22 01:56:34 +00:00 |
|
Boog900
|
b9334b6a90
|
clean up dependencies
|
2024-01-21 14:46:03 +00:00 |
|
hinto-janai
|
50894bef89
|
helper/ (#45)
* add `/helper/`
* add `num.rs`
* add `sys.rs`
* add `crypto.rs`
* add lints and mod to `lib.rs`
* `sys` -> `time`, add more free functions
straight from https://docs.rs/readable/latest/readable/time/index.html
* num: add `Number/Float` types, `cmp_float()`, `cmp_float_nan()`
* `common/src/tower_utils.rs` -> `helper/src/asynch.rs`
* gate modules with `#[cfg(feature = "...")]`
* add `thread.rs`
* cargo fmt
* thread: test out of 100
* add `atomic.rs`
* atomic: fix `fetch_update()`
* atomic: impl `fetch_*()` for atomic floats
* `#[no_std]` where possible
* asynch: remove `InstaFuture`
https://docs.rs/futures/latest/futures/future/fn.ready.html
* crypto: remove `check_point()`
* thread: return percent computation without static
* thread: add `low_priority_thread()`
https://docs.rs/lpt
* add rayon_spawn_async, remove crypto
* remove current_time_try
---------
Co-authored-by: Boog900 <54e72d8a-345f-4599-bd90-c6b9bc7d0ec5@aleeas.com>
|
2024-01-21 00:04:09 +00:00 |
|