6 releases

Uses old Rust 2015

0.2.1 Sep 8, 2019
0.2.0 Nov 19, 2018
0.1.3 Nov 4, 2017
0.1.2 Jul 28, 2017
0.1.0 Oct 5, 2016

#1044 in Rust patterns

Download history 2168/week @ 2024-07-21 2017/week @ 2024-07-28 1310/week @ 2024-08-04 1204/week @ 2024-08-11 1769/week @ 2024-08-18 1701/week @ 2024-08-25 1958/week @ 2024-09-01 1659/week @ 2024-09-08 1591/week @ 2024-09-15 1443/week @ 2024-09-22 2674/week @ 2024-09-29 2012/week @ 2024-10-06 2013/week @ 2024-10-13 2219/week @ 2024-10-20 2275/week @ 2024-10-27 1978/week @ 2024-11-03

8,664 downloads per month
Used in 30 crates (14 directly)

Apache-2.0/MIT

8KB
73 lines

defmac

Please read the API documentation here

build_status

Recent Changes

  • 0.2.1
    • Fix so that the macro can be used through its full path (like defmac::defmac! { .. }
    • Fix so that the macro can expand at module level
  • 0.2.0
    • New implementation that is general and variadic: defmac now supports making macros with arbitrarily many parameters!
    • Requires Rust 1.20
  • 0.1.3
    • Update docs with another example and a tip about syntactical variable capture.

License

Dual-licensed to be compatible with the Rust project.

Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.

No runtime deps