docs.rs failed to build adorn-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
adorn-0.4.0
rust-adorn
Python-style function decorators for Rust
Example usage:
In this case, foo
will become:
In other words, calling foo()
will actually call bar()
wrapped around foo()
.
There is a #[make_decorator]
attribute to act as sugar for creating decorators. For example,
desugars to
I intend to add support for decorating impl items and default trait methods too. Also passing arguments to the decorator; though rustc's current metaitem support limits us to strings (varargs are possible though).