Skip to main content

lib_onnx 0.3.0 copy "lib_onnx: ^0.3.0" to clipboard
lib_onnx: ^0.3.0 copied to clipboard

ONNX Runtime inference for Dart and Flutter with explicit execution policies and experimental CoreML and QNN integration.

150/ 160
pub points
657
downloads

We analyzed this package 5 hours ago, and awarded it 150 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

96 out of 276 API elements (34.8 %) have documentation comments.

Some symbols that are missing documentation: lib_onnx.CancellationToken.CancellationToken.new, lib_onnx.CancellationToken.cancel, lib_onnx.CancellationToken.isCancelled, lib_onnx.CoreMLComputeUnits.value, lib_onnx.DiagnosticReport.DiagnosticReport.new.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 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:lib_onnx/lib_onnx.dart that imports:
  • package:lib_onnx/src/ffi/bindings.dart that imports:
  • package:lib_onnx/src/ffi/native_library.dart that imports:
  • package:ffi/ffi.dart that imports:
  • package:ffi/src/utf8.dart that imports:
  • dart:ffi
Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

Found 28 issues. Showing the first 2:

INFO: Statements in an if should be enclosed in a block.

lib/src/runtime/onnx_runtime.dart:26:7

   ╷
26 │ ┌       throw StateError(
27 │ │         'Default runtime is initializing; await defaultRuntimeAsync',
28 │ └       );
   ╵

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

INFO: Statements in an if should be enclosed in a block.

lib/src/runtime/onnx_runtime.dart:50:7

   ╷
50 │       throw RangeError.range(maxConcurrency, 1, 64, 'maxConcurrency');
   │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

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

Partially passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

Partially passed check 10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
code_assets 2.1.0 2.1.0 2.2.0
crypto 3.0.7 3.0.7 3.0.8
ffi 2.2.0 2.2.0 2.2.0
hooks 2.2.0 2.2.0 2.2.0
meta 1.19.0 1.19.0 1.19.0
native_toolchain_c 0.19.5 0.19.5 0.19.6
path 1.9.1 1.9.1 1.9.1
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.1 2.13.1
collection - 1.19.1 1.19.1
file - 7.0.1 7.0.1
glob - 2.2.0 2.2.0
logging - 1.3.0 1.3.0
platform - 3.2.0 3.2.0
process - 5.0.6 5.0.6
pub_semver - 2.2.1 2.2.1
record_use - 1.1.1 1.1.1
source_span - 1.10.2 1.10.2
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
yaml - 3.1.4 3.1.4

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

Found 3 issues. Showing the first 2:

The constraint `2.1.0` on code_assets does not support the stable version `2.2.0`, that was published 5 days ago.

When code_assets is 30 days old, this package will no longer be awarded points in this category.

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

The constraint `3.0.7` on crypto does not support the stable version `3.0.8`, that was published 16 days ago.

When crypto is 30 days old, this package will no longer be awarded points in this category.

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

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.19, Dart 3.13.7.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
150
points
657
downloads

Documentation

API reference

Publisher

verified publishergsmlg.dev

Weekly Downloads

ONNX Runtime inference for Dart and Flutter with explicit execution policies and experimental CoreML and QNN integration.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

code_assets, crypto, ffi, hooks, meta, native_toolchain_c, path

More

Packages that depend on lib_onnx