tcl_derive

Crates.iotcl_derive
lib.rstcl_derive
version0.1.5
sourcesrc
created_at2023-03-13 06:18:42.088943
updated_at2024-02-03 08:26:15.807543
descriptionMacros for tcl crate to register functions/closures as Tcl commands
homepage
repositoryhttps://github.com/oooutlk/tcltk
max_upload_size
id808610
size45,324
(oooutlk)

documentation

README

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.

Commit count: 18

cargo fmt