dart_libusb 1.0.0 copy "dart_libusb: ^1.0.0" to clipboard
dart_libusb: ^1.0.0 copied to clipboard

A fork of the libusb Dart package with updated dependencies. Provides Dart FFI bindings for the libusb native library on Linux, macOS, and Windows.

150/ 160
pub points
453
downloads

We analyzed this package 3 days 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: BSD-3-Clause.

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

162 out of 361 API elements (44.9 %) have documentation comments.

Some symbols that are missing documentation: dart_libusb, dart_libusb.Dartlibusb_hotplug_callback_fnFunction, dart_libusb.Dartlibusb_hotplug_callback_handle, dart_libusb.Dartlibusb_log_cbFunction, dart_libusb.Dartlibusb_pollfd_added_cbFunction.

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 3 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package does not support platform `Android`.

Because:

  • package:dart_libusb/dart_libusb.dart that declares support for platforms: Windows, Linux, macOS.
Package does not support platform `iOS`.

Because:

  • package:dart_libusb/dart_libusb.dart that declares support for platforms: Windows, Linux, macOS.
Package does not support platform `Web`.

Because:

  • package:dart_libusb/dart_libusb.dart that declares support for platforms: Windows, Linux, macOS.
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

INFO: The variable name 'tv_sec' isn't a lowerCamelCase identifier.

lib/src/libusb_base.dart:5:16

  ╷
5 │   external int tv_sec;
  │                ^^^^^^
  ╵

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

INFO: The variable name 'tv_usec' isn't a lowerCamelCase identifier.

lib/src/libusb_base.dart:8:16

  ╷
8 │   external int tv_usec;
  │                ^^^^^^^
  ╵

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

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

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

Package Constraint Compatible Latest Notes
ffi ^2.2.0 2.2.0 2.2.0

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

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.12, Dart 3.11.4.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
1
likes
150
points
453
downloads

Documentation

API reference

Publisher

verified publisherascress.com

Weekly Downloads

A fork of the libusb Dart package with updated dependencies. Provides Dart FFI bindings for the libusb native library on Linux, macOS, and Windows.

Repository (GitHub)
View/report issues

Topics

#usb #ffi #hardware #libusb

License

BSD-3-Clause (license)

Dependencies

ffi

More

Packages that depend on dart_libusb