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

#534 in Embedded development

Download history 18/week @ 2024-08-17 8/week @ 2024-08-24 10/week @ 2024-08-31 23/week @ 2024-09-14 26/week @ 2024-09-21 75/week @ 2024-09-28 8/week @ 2024-10-05 7/week @ 2024-10-12 1/week @ 2024-10-19 459/week @ 2024-10-26 40/week @ 2024-11-02 1/week @ 2024-11-09 6/week @ 2024-11-16 2/week @ 2024-11-23 99/week @ 2024-11-30

108 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