Skip to content

Commit

Permalink
add missing Rust symbols to generated docs
Browse files Browse the repository at this point in the history
do not generate for Go as that would require aliasing the Go library,
which in turn would introduce a strict dependency on
`@io_bazel_rules_go`. instead link to the existing module `README.md`.
  • Loading branch information
fricklerhandwerk committed Mar 24, 2022
1 parent 3785f94 commit d55b95f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ filegroup(

# necessary boilerplate: to build a Bazel library, we always need to include
# `bazel_tools` as a dependency.
# `@bazel_tools//tools` does not define a `bzl_library` itself, instead we
# have to define our own using the `@bazel_tools//tools:bzl_srcs` filegroup.
# https://github.com/bazelbuild/skydoc/issues/166
# https://github.com/bazelbuild/stardoc/issues/38#issuecomment-568909109
bzl_library(
Expand Down
1 change: 0 additions & 1 deletion docs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ generate_documentation(
"nixpkgs_java_configure",
"nixpkgs_python_configure",
"nixpkgs_rust_configure",
"nixpkgs_go_configure",
"nixpkgs_sh_posix_configure",
],
deps = [
Expand Down
7 changes: 6 additions & 1 deletion nixpkgs/nixpkgs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Links:
* [nixpkgs_cc_configure_deprecated](#nixpkgs_cc_configure_deprecated)
* [nixpkgs_java_configure](#nixpkgs_java_configure)
* [nixpkgs_python_configure](#nixpkgs_python_configure)
* [nixpkgs_go_configure](#nixpkgs_go_configure)
* [nixpkgs_go_configure](toolchains/go/README.md#nixpkgs_go_configure)
* [nixpkgs_rust_configure](#nixpkgs_rust_configure)
* [nixpkgs_sh_posix_configure](#nixpkgs_sh_posix_configure)
Expand Down Expand Up @@ -134,6 +134,10 @@ load(
"@rules_nixpkgs_cc//:cc.bzl",
_nixpkgs_cc_configure = "nixpkgs_cc_configure",
)
load(
"@rules_nixpkgs_rust//:rust.bzl",
_nixpkgs_rust_configure = "nixpkgs_rust_configure",
)
load(
"@rules_nixpkgs_posix//:posix.bzl",
_nixpkgs_sh_posix_configure = "nixpkgs_sh_posix_configure",
Expand All @@ -146,6 +150,7 @@ nixpkgs_package = _nixpkgs_package
nixpkgs_python_configure = _nixpkgs_python_configure
nixpkgs_java_configure = _nixpkgs_java_configure
nixpkgs_cc_configure = _nixpkgs_cc_configure
nixpkgs_rust_configure = _nixpkgs_rust_configure
nixpkgs_sh_posix_configure = _nixpkgs_sh_posix_configure

def nixpkgs_cc_autoconf_impl(repository_ctx):
Expand Down

0 comments on commit d55b95f

Please sign in to comment.