├── .clippy.toml ├── .github ├── FUNDING.yml └── workflows │ └── ci.yml ├── .gitignore ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── demo-hack-impl ├── Cargo.toml └── src │ └── lib.rs ├── demo-hack ├── Cargo.toml └── src │ └── lib.rs ├── example ├── Cargo.toml └── src │ └── main.rs ├── nested ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── build.rs └── src │ └── lib.rs ├── src ├── error.rs ├── iter.rs ├── lib.rs ├── parse.rs └── quote.rs └── tests ├── compiletest.rs └── ui ├── private.rs ├── private.stderr ├── unexpected-arg.rs ├── unexpected-arg.stderr ├── unexpected.rs ├── unexpected.stderr ├── unknown-arg.rs └── unknown-arg.stderr /.clippy.toml: -------------------------------------------------------------------------------- 1 | msrv = "1.31.0" 2 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: dtolnay 2 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | Cargo.lock 3 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/README.md -------------------------------------------------------------------------------- /demo-hack-impl/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/demo-hack-impl/Cargo.toml -------------------------------------------------------------------------------- /demo-hack-impl/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/demo-hack-impl/src/lib.rs -------------------------------------------------------------------------------- /demo-hack/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/demo-hack/Cargo.toml -------------------------------------------------------------------------------- /demo-hack/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/demo-hack/src/lib.rs -------------------------------------------------------------------------------- /example/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/example/Cargo.toml -------------------------------------------------------------------------------- /example/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/example/src/main.rs -------------------------------------------------------------------------------- /nested/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/nested/Cargo.toml -------------------------------------------------------------------------------- /nested/LICENSE-APACHE: -------------------------------------------------------------------------------- 1 | ../LICENSE-APACHE -------------------------------------------------------------------------------- /nested/LICENSE-MIT: -------------------------------------------------------------------------------- 1 | ../LICENSE-MIT -------------------------------------------------------------------------------- /nested/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/nested/build.rs -------------------------------------------------------------------------------- /nested/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/nested/src/lib.rs -------------------------------------------------------------------------------- /src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/src/error.rs -------------------------------------------------------------------------------- /src/iter.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/src/iter.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/parse.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/src/parse.rs -------------------------------------------------------------------------------- /src/quote.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/src/quote.rs -------------------------------------------------------------------------------- /tests/compiletest.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/tests/compiletest.rs -------------------------------------------------------------------------------- /tests/ui/private.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/tests/ui/private.rs -------------------------------------------------------------------------------- /tests/ui/private.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/tests/ui/private.stderr -------------------------------------------------------------------------------- /tests/ui/unexpected-arg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/tests/ui/unexpected-arg.rs -------------------------------------------------------------------------------- /tests/ui/unexpected-arg.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/tests/ui/unexpected-arg.stderr -------------------------------------------------------------------------------- /tests/ui/unexpected.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/tests/ui/unexpected.rs -------------------------------------------------------------------------------- /tests/ui/unexpected.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/tests/ui/unexpected.stderr -------------------------------------------------------------------------------- /tests/ui/unknown-arg.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/tests/ui/unknown-arg.rs -------------------------------------------------------------------------------- /tests/ui/unknown-arg.stderr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dtolnay/proc-macro-hack/HEAD/tests/ui/unknown-arg.stderr --------------------------------------------------------------------------------