Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 2.29 KB

README.md

File metadata and controls

56 lines (38 loc) · 2.29 KB

Pure Data Externals in Pure Rust

Does not require any C, builds entirely with Cargo.

Requirements

Crates/Subdirs

  • pd-sys The basic generated bindings to m_pd.h, all you need to roll your own interface to puredata.
  • external The Rust specific wrappers and ease of use methods for creating externals.
  • macros The macros that generate all the guts for externals you don't want to have to deal with yourself, used the examples.
  • macros/examples See below.
  • utils Utilities for building and packaging externals.

Examples

The examples can all be built with cargo build but you can also use cargo-make for more helpful features. See utils/README.md for more details on the cargo-make setup.

cd macros/examples/helloworld && cargo build

or

cd macros/examples/helloworld && cargo make run

If you want to see what code the macro actually produces, use cargo-expand.

TODO

  • Documentation
  • Expose pointer methods
  • Support more creation argument configurations
  • Clean up macros
  • crates.io release

References

Links