diff --git a/src/google/protobuf/compiler/rust/generator.h b/src/google/protobuf/compiler/rust/generator.h index 2d08bb68e7..5b3d0c426c 100644 --- a/src/google/protobuf/compiler/rust/generator.h +++ b/src/google/protobuf/compiler/rust/generator.h @@ -43,7 +43,8 @@ namespace protobuf { namespace compiler { namespace rust { -class RustGenerator final : public google::protobuf::compiler::CodeGenerator { +class PROTOC_EXPORT RustGenerator final + : public google::protobuf::compiler::CodeGenerator { public: RustGenerator() = default; RustGenerator(const RustGenerator&) = delete;