bazelbuild/bazel

Document `feature` API

Open

#16,238 opened on Sep 8, 2022

View on GitHub
 (0 comments) (1 reaction) (0 assignees)Java (4,465 forks)batch import
P3help wantedteam-Documentationteam-Rules-CPPtype: feature request

Repository metrics

Stars
 (25,384 stars)
PR merge metrics
 (Avg merge 22d 20h) (77 merged PRs in 30d)

Description

Description of the feature request:

I was trying to compile a project with sanitizers enabled when I ran into an issue with a dependency. I figured that I'll disable the sanitizer for that dependency and move on. Based on this SO thread, it seemed like feature would be ideal for disabling sanitizers on a per-object basis. Now I just wanted to see the API specification for feature so that I can use it properly. But, it doesn't exist. Features are talked about here, but that's about it. I can't find anywhere in the docs where the parameters feature takes are listed or described. This is it (as far as I can see).

Could feature get some love in the docs please? I presume that it's still supported because of the multitude of rules which have a features list as a parameter.

Apologies if I've submitted this in the incorrect category or messed up the admin of this issue - I wasn't sure how a docs request fits in.

What underlying problem are you trying to solve with this feature?

Understanding the feature API.

Which operating system are you running Bazel on?

N/A

What is the output of bazel info release?

N/A

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

N/A

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

N/A

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

Contributor guide