7 releases (stable)

1.1.3 Oct 29, 2024
1.0.1 Aug 13, 2024
1.0.0 Jun 10, 2024
0.1.0 Jun 11, 2022

#535 in Embedded development

Download history 10/week @ 2024-07-22 133/week @ 2024-08-12 5/week @ 2024-08-19 17/week @ 2024-08-26 26/week @ 2024-09-16 28/week @ 2024-09-23 73/week @ 2024-09-30 8/week @ 2024-10-07 5/week @ 2024-10-14 492/week @ 2024-10-28 8/week @ 2024-11-04

505 downloads per month
Used in 2 crates (via avr-simulator)

MIT license

3.5MB
21K SLoC

C 21K SLoC // 0.2% comments Rust 151 SLoC Intel HEX 125 SLoC Ruby 85 SLoC // 0.2% comments Python 63 SLoC // 0.0% comments

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.

Dependencies