#patterns #macros #inline #macro #read #fix

defmac

A macro to define lambda-like macros inline

6 releases

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

#59 in Rust patterns

Download history 2578/week @ 2019-10-07 3042/week @ 2019-10-14 2817/week @ 2019-10-21 2976/week @ 2019-10-28 3198/week @ 2019-11-04 4053/week @ 2019-11-11 3146/week @ 2019-11-18 3040/week @ 2019-11-25 3663/week @ 2019-12-02 3862/week @ 2019-12-09 4895/week @ 2019-12-16 1282/week @ 2019-12-23 1437/week @ 2019-12-30 3913/week @ 2020-01-06 4219/week @ 2020-01-13

13,860 downloads per month
Used in 6 crates (3 directly)

Apache-2.0/MIT

8KB
73 lines

defmac

Please read the API documentation here

build_status crates

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