fpgad_macros 0.2.0

Procedural macros for the FPGAd project
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 5.85 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 284.29 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 6s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • canonical/fpgad
    10 0 18
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • artiepoole

fpgad_macros

Procedural macros for the FPGAd project.

Overview

This crate provides procedural macros used by the FPGAd daemon to simplify platform registration and other compile-time code generation tasks.

Macros

#[platform]

The platform attribute macro is used to register FPGA platform implementations with the daemon.

Usage:

use fpgad_macros::platform;

#[platform(compat_string = "xlnx,zynqmp")]
pub struct ZynqMPPlatform {
    // Platform-specific fields
}

This macro automatically implements the necessary registration code for the platform, making it discoverable by the FPGAd daemon at runtime.

License

GPL-3.0