Export "library" in common.

Change-Id: Ifaca0423c9a1fc5e32c1a8602d3cab579c07d62f
diff --git a/hdl/chisel/src/common/BUILD b/hdl/chisel/src/common/BUILD
index 1b5745b..78e3391 100644
--- a/hdl/chisel/src/common/BUILD
+++ b/hdl/chisel/src/common/BUILD
@@ -37,6 +37,9 @@
     deps = [
         ":library",
     ],
+    exports = [
+        ":library",
+    ],
     visibility = ["//visibility:public"],
 )
 
diff --git a/rules/chisel.bzl b/rules/chisel.bzl
index b22a008..253b51d 100644
--- a/rules/chisel.bzl
+++ b/rules/chisel.bzl
@@ -33,6 +33,7 @@
         name,
         srcs = [],
         deps = [],
+        exports = [],
         visibility = None):
     scala_library(
         name = name,
@@ -41,6 +42,7 @@
             "@kelvin_hw//lib:chisel_lib",
             "@org_chipsalliance_chisel_plugin//jar",
         ] + deps,
+        exports = exports,
         scalacopts = SCALA_COPTS,
         visibility = visibility,
     )