mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 12:27:56 +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.
28 lines
677 B
TOML
28 lines
677 B
TOML
[package]
|
|
name = "sr-api-macros"
|
|
version = "0.1.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
|
|
[lib]
|
|
proc-macro = true
|
|
|
|
[dependencies]
|
|
quote = "0.6"
|
|
syn = { version = "^0.15.22", features = [ "full", "fold", "extra-traits", "visit" ] }
|
|
proc-macro2 = "0.4"
|
|
blake2-rfc = "0.2"
|
|
proc-macro-crate = "0.1.3"
|
|
|
|
[dev-dependencies]
|
|
substrate-client = { path = "../client" }
|
|
substrate-test-client = { path = "../test-client" }
|
|
substrate-state-machine = { path = "../state-machine" }
|
|
sr-primitives = { path = "../sr-primitives" }
|
|
sr-version = { path = "../sr-version" }
|
|
substrate-primitives = { path = "../primitives" }
|
|
criterion = "0.2"
|
|
|
|
[[bench]]
|
|
name = "bench"
|
|
harness = false
|