docs.rs failed to build js-macros-0.1.0
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:
js-macros-0.1.5
js-macros
Quickly prototype procedural macros using JavaScript or TypeScript!
Have you ever thought "this would be a great use case for a procedural macro," but didn't want to go through the effort? This crate is the perfect fix for you!
[]
= "0.1"
How to use
Setup is just three easy steps!
- Create a
js-macros
folder at the root of your cargo workspace - Create a new
.js
or.ts
macro file in the folder - Import your new macro and use it anywhere in your project!
Helpful tip: These macros are invoked using node
, allowing you to use tools like require()
Examples
Example macros can be found in this repository's js-macros folder, with example usage in the examples folder.