diff --git a/README.md b/README.md index c2d34cb..eb83942 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,10 @@ Module initialization/teardown functions for Rust (like `__attribute__((construc This library currently requires **Rust > 1.31.0** at a minimum for the procedural macro support. -Idea inspired by [this code](https://github.com/neon-bindings/neon/blob/2277e943a619579c144c1da543874f4a7ec39879/src/lib.rs#L42) in the Neon project. +## Zero Dependency + +As of `ctor 0.3.0+`, `ctor` has no dependencies. The proc macro in this crate +inlines a helper declarative macro that does the majority of the work. ## Support @@ -108,3 +111,7 @@ The `#[dtor]` macro effectively creates a constructor that calls `libc::atexit` libc::atexit(dtor); } ``` + +## Inspiration + +Idea inspired by [this code](https://github.com/neon-bindings/neon/blob/2277e943a619579c144c1da543874f4a7ec39879/src/lib.rs#L42) in the Neon project. diff --git a/codegen/README.md b/codegen/README.md new file mode 100644 index 0000000..55cb3cc --- /dev/null +++ b/codegen/README.md @@ -0,0 +1,4 @@ +# ctor codegen + +This project does the codegen to ensure that ctor builds without dependencies. We use +the `quote!` macro to generate a `TokenStream`, and then dump that into a source file.