mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 04:37:57 +00:00
f9975af020
Procedural do not support `$crate` to get access to the crate where the macro is defined. We use a hack to re-export the crate under a known name. With rust edition 2018, people started to rename their crates in `Cargo.toml`, but that breaks the re-export. This commit introduces `proc-maco-crate` that supports finding the requested crate name, even if it was renamed.
13 lines
336 B
TOML
13 lines
336 B
TOML
[package]
|
|
name = "srml-support-procedural-tools"
|
|
version = "0.1.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
srml-support-procedural-tools-derive = { path = "./derive" }
|
|
proc-macro2 = "0.4"
|
|
quote = { version = "0.6" }
|
|
syn = { version = "0.15", features = ["full"] }
|
|
proc-macro-crate = "0.1.3"
|