We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c65232 commit c1ce8adCopy full SHA for c1ce8ad
src/builders/module.rs
@@ -179,6 +179,14 @@ impl ModuleBuilder<'_> {
179
for (method, flags) in T::method_builders() {
180
builder = builder.method(method, flags);
181
}
182
+ for interface in T::IMPLEMENTS {
183
+ builder = builder.implements(*interface);
184
+ }
185
+ for (name, value, docs) in T::constants() {
186
+ builder = builder
187
+ .dyn_constant(*name, *value, docs)
188
+ .expect("Failed to register constant");
189
190
for (name, value, docs) in T::constants() {
191
builder = builder
192
.dyn_constant(*name, *value, docs)
0 commit comments