def
defmac
cargo install defmac
def

defmac

A macro to define lambda-like macros inline.

by bluss

0.2.1 (see all)License:Apache-2.0/MIT
cargo install defmac
Readme

defmac

Please read the API documentation here__

__ https://docs.rs/defmac

|buildstatus| |crates|_

.. |build_status| image:: https://travis-ci.org/bluss/defmac.svg .. _build_status: https://travis-ci.org/bluss/defmac

.. |crates| image:: http://meritbadge.herokuapp.com/defmac .. _crates: https://crates.io/crates/defmac

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.

GitHub Stars

14

LAST COMMIT

3yrs ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
0.2.1
3yrs ago
0.2.0
4yrs ago
0.1.3
5yrs ago
0.1.2
5yrs ago
No alternatives found
No tutorials found
Add a tutorial