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 01bc96d commit 90bf52aCopy full SHA for 90bf52a
src/builders/module.rs
@@ -175,6 +175,14 @@ impl ModuleBuilder<'_> {
175
for (method, flags) in T::method_builders() {
176
builder = builder.method(method, flags);
177
}
178
+ for interface in T::IMPLEMENTS {
179
+ builder = builder.implements(*interface);
180
+ }
181
+ for (name, value, docs) in T::constants() {
182
+ builder = builder
183
+ .dyn_constant(*name, *value, docs)
184
+ .expect("Failed to register constant");
185
186
for (name, value, docs) in T::constants() {
187
builder = builder
188
.dyn_constant(*name, *value, docs)
0 commit comments