diff options
Diffstat (limited to 'rust/rust.go')
-rw-r--r-- | rust/rust.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rust/rust.go b/rust/rust.go index 4324ecbb9..e524c9fb6 100644 --- a/rust/rust.go +++ b/rust/rust.go @@ -631,6 +631,15 @@ func (mod *Module) CcLibraryInterface() bool { return false } +func (mod *Module) RustLibraryInterface() bool { + if mod.compiler != nil { + if _, ok := mod.compiler.(libraryInterface); ok { + return true + } + } + return false +} + func (mod *Module) IsFuzzModule() bool { if _, ok := mod.compiler.(*fuzzDecorator); ok { return true |