dart_randomx 1.0.6 copy "dart_randomx: ^1.0.6" to clipboard
dart_randomx: ^1.0.6 copied to clipboard

Dart wrapper for RandomX proof-of-work (PoW) algorithm with built-in binaries for Linux and macOS.

2
likes
110/ 140
pub points
0%
popularity

We analyzed this package 16 hours ago, and awarded it 110 pub points (of a possible 140):

OK
Follow Dart file conventions
30 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

OK
Provide documentation
20 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

22 out of 45 API elements (48.9 %) have documentation comments.

Some symbols that are missing documentation: dart_randomx.FFIFunctionRandomxDestroy, dart_randomx.FFIFunctionRandomxGetID, dart_randomx.FFIFunctionRandomxHash, dart_randomx.FFIFunctionRandomxHashFirst, dart_randomx.FFIFunctionRandomxHashLast.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android
  • ✓ iOS
  • ✓ Windows
  • ✓ Linux
  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:dart_randomx/dart_randomx.dart that imports:
  • package:dart_randomx/src/dart_randomx_base.dart that imports:
  • package:ffi/ffi.dart that imports:
  • package:ffi/src/utf16.dart that imports:
  • dart:ffi
failed
Pass static analysis
30 / 50trigger folding of the section

30/50 points: code has no errors, warnings, lints, or formatting issues

WARNING: The operand can't be null, so the condition is always 'false'.

lib/src/dart_randomx_base.dart:469:9

    ╷
469 │     if (error != null) {
    │         ^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/dart_randomx_base.dart

failed
Support up-to-date dependencies
10 / 20trigger folding of the section

0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
base_codecs ^1.0.1 1.0.1 1.0.1
collection ^1.15.0 1.18.0 1.18.0
ffi ^1.1.2 1.2.1 2.1.2
path ^1.8.0 1.9.0 1.9.0
statistics ^1.0.7 1.1.0 1.1.0
Transitive dependencies
Package Constraint Compatible Latest
clock - 1.1.1 1.1.1
crypto - 3.0.3 3.0.3
data_serializer - 1.1.0 1.1.0
intl - 0.19.0 0.19.0
meta - 1.15.0 1.15.0
typed_data - 1.3.2 1.3.2

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^1.1.2` on ffi does not support the stable version `2.0.0`.

Try running dart pub upgrade --major-versions ffi to update the constraint.

10/10 points: Package supports latest stable Dart and Flutter SDKs

Analyzed with Pana 0.22.3, Dart 3.3.4.

Check the analysis log for details.

2
likes
110
pub points
0%
popularity

Publisher

unverified uploader

Dart wrapper for RandomX proof-of-work (PoW) algorithm with built-in binaries for Linux and macOS.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

base_codecs, collection, ffi, path, statistics

More

Packages that depend on dart_randomx