libedax4dart

Dart wrapper for libedax.
With using libedax4dart, you can execute functions equivalent to edax commands.

Usage

  1. Add libedax4dart under dependencies in your pubspec.yaml.
  2. Add your libedax assets in the path which you like.
    If you don't have yours, you can also download from here.
  • (Required) dynamic library
    • macos: libedax.universal.dylib
    • windows: libedax-x64.dll
    • linux: libedax.so
  • (Optional) data for edax
    • book.dat
    • eval.dat
  1. With using LibEdax, you can run edax commands !

Document

Real World Example

Reference


Development

Dart CI codecov

commands

run example

cd example && dart pub get && cd ..
dart example/example.dart

format

# fix with line length 80 for pana, although I don't like.
# See: https://github.com/dart-lang/dart_style/issues/918
dart format --fix .

test

dart run test .

analyze

dart analyze .

dart fix --apply # auto fix

pana

dart run pana

document

dart doc . --validate-links && open doc/api/index.html

change libedax bin

# After you edit .libedax-version, run this.
# See: https://developer.apple.com/documentation/apple-silicon/building-a-universal-macos-binary
libedax_build_command="make universal_osx_libbuild" dst="." ./scripts/build_libedax.sh

generate bindings

# Before this, you must run build_libedax.sh.
dart run ffigen --config ffigen.yaml --verbose severe && dart format --fix .

reference

Libraries

libedax4dart
dart wrapper for libedax