@@ -56,24 +56,29 @@ rule.
56
56
name ,
57
57
module ,
58
58
output_file = None ,
59
+ output_directory = None ,
59
60
imports = [],
60
61
pattern_file = None ,
61
62
marker_file = None ,
62
63
include_private_members = False ,
63
- exclude_docstrings = False ):
64
+ exclude_docstrings = False ,
65
+ recursive = False ):
64
66
65
67
It generates a `py_binary <https://bazel.build/reference/be/
66
68
python#py_binary> `__ rule with a corresponding runfiles distribution,
67
69
which invokes nanobind's builtin stubgen script, outputs a stub file and,
68
- optionally, a typing marker file into the build
69
- output directory ( commonly called "bindir" in Bazel terms).
70
+ optionally, a typing marker file into `` output_directory `` (defaults to
71
+ the build output directory, commonly called "bindir" in Bazel terms).
70
72
71
73
All arguments (except the name, which is used only to refer to the target
72
74
in Bazel) correspond directly to nanobind's stubgen command line interface,
73
75
which is described in more detail in the :ref: `typing documentation <stubs >`.
74
76
75
77
*New in nanobind-bazel version 2.1.0. *
76
78
79
+ *New in nanobind-bazel v2.5.0: Added the "output_directory" and "recursive"
80
+ keyword arguments. *
81
+
77
82
To build a C++ library with nanobind as a dependency, use the
78
83
``nanobind_library `` rule.
79
84
0 commit comments