Skip to content

Patryk27/simavr-ffi

Repository files navigation

simavr-ffi   crates-badge

Low-level unsafe bindings to simavr:

[dependencies]
simavr-ffi = "1"

Supported platforms: Linux & Mac (pull requests for Windows etc. welcome!).

If you're looking for something high-level and safe, see AvrTester.

Requirements

Compile-time:

  • clang,
  • patch (optional, required only if you enable the patch-twi-inconsistencies feature flag),
  • libelf,
  • pkg-config,
  • zlib.

Nix (Linux / Mac)

$ nix develop

Ubuntu

$ sudo apt install clang libelf-dev pkg-config

Mac

$ brew install libelf pkg-config

Feature flags

If you want, you can activate following feature flags (disabled by default):

FAQ

How does it compare to simavr-sys?

simavr-sys seems unmaintained at the moment, while simavr-ffi is up-to-date.

License

Copyright (c) 2022 Patryk Wychowaniec pwychowaniec@pm.me.
Licensed under the MIT license.