#tcl #proc #binding

macro tcl_derive

Macros for tcl crate to register functions/closures as Tcl commands

6 releases

0.1.5 Feb 3, 2024
0.1.4 Jan 11, 2024
0.1.3 Nov 28, 2023
0.1.2 Sep 9, 2023
0.1.0 Mar 13, 2023

#15 in #tcl

Download history 17/week @ 2024-07-01 9/week @ 2024-07-08 32/week @ 2024-07-15 6/week @ 2024-07-22 36/week @ 2024-07-29 18/week @ 2024-08-05 9/week @ 2024-08-12 7/week @ 2024-08-19 8/week @ 2024-08-26 6/week @ 2024-09-02 10/week @ 2024-09-09 16/week @ 2024-09-16 28/week @ 2024-09-23 26/week @ 2024-09-30 1/week @ 2024-10-07 7/week @ 2024-10-14

63 downloads per month
Used in 4 crates (2 directly)

MIT/Apache

46KB
640 lines

The tcl_derive crate provides the proc-macro implementation for the tcl crate.

  1. The #[proc] attribute to get a Rust fn ready for registering as a Tcl command.

  2. The tclfn!{} macro to define a Rust fn and register it as a Tcl command.

  3. The tclosure!{} macro to define a Rust closure and register it as a Tcl command.

See tcl crate's doc for more.

License

Under Apache License 2.0 or MIT License, at your will.


lib.rs:

Proc macro for tcl (and tk).

Dependencies

~0.5–1MB
~21K SLoC