Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace stopwatch with a builtin implementation to avoid extra depend…
…encies stopwatch crate has too much dependencies: $ cargo tree ... ├── stopwatch v0.0.7 │ └── num v0.1.42 │ ├── num-bigint v0.1.44 │ │ ├── num-integer v0.1.46 (*) │ │ ├── num-traits v0.2.18 (*) │ │ ├── rand v0.4.6 │ │ │ └── libc v0.2.153 │ │ └── rustc-serialize v0.3.25 │ ├── num-complex v0.1.43 │ │ ├── num-traits v0.2.18 (*) │ │ └── rustc-serialize v0.3.25 │ ├── num-integer v0.1.46 (*) │ ├── num-iter v0.1.44 (*) │ ├── num-rational v0.1.42 │ │ ├── num-bigint v0.1.44 (*) │ │ ├── num-integer v0.1.46 (*) │ │ ├── num-traits v0.2.18 (*) │ │ └── rustc-serialize v0.3.25 │ └── num-traits v0.2.18 (*) ... And one of them after upgrading rust toolchain fail to compiles: Checking num-bigint v0.1.44 error[E0658]: use of unstable library feature 'libstd_sys_internals': used by the panic! macro --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/num-bigint-0.1.44/src/bigint.rs:41:64 | 41 | #[cfg_attr(feature = "rustc-serialize", derive(RustcEncodable, RustcDecodable))] | ^^^^^^^^^^^^^^ | = help: add `#![feature(libstd_sys_internals)]` to the crate attributes to enable = note: this compiler was built on 2024-03-27; consider upgrading it if it is out of date = note: this error originates in the derive macro `RustcDecodable` (in Nightly builds, run with -Z macro-backtrace for more info) So let's write our own implementation.
- Loading branch information