You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix contractimpl macro composability with third party macros (#1510)
### What
Add a test vector that demonstrates a composability issue with third
party function macros. Apple the existing filtering of which attributes
get applied to the generated exported functions also to the generated
spec constant.
### Why
In #1427 I moved where the attributes were used as part of fixing
another bug, and inadvertently moved the expansion of the attributes to
the line before where the attributes are filtered. The filter ensures
that only a specific set of attributes get applied to the generated
code. The attributes still need to go through the filter for their use
on the spec constant and it was an error on my part not to also move the
filter.
Close#1509
description = "A test vector for testing the interactions of the soroban-sdk macros with third-party macros, validating that they are composable and compatible."
4
+
version.workspace = true
5
+
authors = ["Stellar Development Foundation <info@stellar.org>"]
6
+
license = "Apache-2.0"
7
+
edition = "2021"
8
+
publish = false
9
+
rust-version.workspace = true
10
+
11
+
[lib]
12
+
crate-type = ["cdylib"]
13
+
doctest = false
14
+
15
+
[dependencies]
16
+
soroban-sdk = {path = "../../soroban-sdk"}
17
+
proc_macros = {path = "./proc_macros"}
18
+
19
+
[dev-dependencies]
20
+
soroban-sdk = {path = "../../soroban-sdk", features = ["testutils"]}
description = "A collection of proc-macros used by the test_macros test vector to validate that the soroban-sdk macros are composable and compatible with a variety of other macros."
4
+
version = "0.0.0"
5
+
authors = ["Stellar Development Foundation <info@stellar.org>"]
0 commit comments