gpiod 3.0.1 copy "gpiod: ^3.0.1" to clipboard
gpiod: ^3.0.1 copied to clipboard

FFI for libgpiod, easy access to RaspberryPi gpio.

60/ 160
pub points
41
downloads

We analyzed this package 3 days ago, and awarded it 60 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

104 out of 432 API elements (24.1 %) have documentation comments.

Some symbols that are missing documentation: gpiod, gpiod.GPIOD, gpiod.GPIOD.GPIOD.new, gpiod.GPIOD.chip_iter_free_noclose, gpiod.GPIOD.chip_iter_new.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
0 / 20trigger folding of the section

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

Failed report section
Pass static analysis
0 / 50trigger folding of the section

Failed check 0/50 points: code has no errors, warnings, lints, or formatting issues

Found 198 issues. Showing the first 2:

ERROR: Can't invoke 'asFunction' because the function signature 'NativeFunction

lib/src/bindings/gpiod/bindings.dart:126:21

    ╷
126 │     chip_iter_new = _dynamicLibrary.lookup<NativeFunction<chip_iter_new_native_t>>("gpiod_chip_iter_new").asFunction();
    │                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵

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

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

lib/proxy_gpiod.dart:80:42

   ╷
80 │     return new GPIOError(_error.ref.error!=null && _error.ref.error.address != 0 ?_error.ref.error.toDartString(): 'code = ${_error.ref.code}');
   │                                          ^^^^^^
   ╵

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

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

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

Package Constraint Compatible Latest Notes
async ^2.5.0 2.13.0 2.13.0
ffi ^1.2.0 1.2.1 2.2.0
meta ^1.3.0 1.18.1 1.18.1
Transitive dependencies
Package Constraint Compatible Latest Notes
collection - 1.19.1 1.19.1

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

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

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

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

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 1 error:

  • NON_NATIVE_FUNCTION_TYPE_ARGUMENT_TO_POINTER - lib/src/bindings/gpiod/bindings.dart:126:21 - Can't invoke 'asFunction' because the function signature 'NativeFunction<chip_iter_new_native_t>' for the pointer isn't a valid C function signature.

Run dart pub downgrade and then dart analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.23.10, Dart 3.11.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
3
likes
60
points
41
downloads

Publisher

unverified uploader

Weekly Downloads

FFI for libgpiod, easy access to RaspberryPi gpio.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

async, ffi, meta

More

Packages that depend on gpiod