#tcl #binding #proc

macro tcl_derive

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

2 releases

0.1.1 Apr 1, 2023
0.1.0 Mar 13, 2023

#12 in #tcl

44 downloads per month
Used in 2 crates

MIT/Apache

26KB
422 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.

Dependencies

~1–1.4MB
~33K SLoC