File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -21,5 +21,5 @@ install:
21
21
- pip install -e .
22
22
23
23
script :
24
- - cd example && python setup.py develop
25
- - cd example_tomlgen && python setup.py tomlgen_rust && cat **.toml
24
+ - cd example && python setup.py develop && cd ..
25
+ - cd example_tomlgen && python setup.py tomlgen_rust -w && cd ..
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ def run(self):
94
94
else :
95
95
log .warn ("skipping 'Cargo.toml' for workspace -- already exists" )
96
96
97
+ # Create a `.cargo/config` file
97
98
if self .create_workspace and self .extensions and not self .no_config :
98
99
99
100
dist = self .distribution
@@ -218,7 +219,10 @@ def find_rust_extensions(*directories, **kwargs):
218
219
All other keyword arguments will be directly passed to the
219
220
`RustExtension` instance created when an extension is found.
220
221
One may be interested in passing ``bindings`` and ``strip``
221
- options.
222
+ options::
223
+
224
+ >>> import setuptools_rust as rust
225
+ >>> rust.find_rust_extensions(binding=rust.Binding.PyO3)
222
226
223
227
Example:
224
228
@@ -232,7 +236,8 @@ def find_rust_extensions(*directories, **kwargs):
232
236
└ Cargo.toml
233
237
setup.py
234
238
235
- The only extension can be found in the ``lib`` module::
239
+ There is only one extension that can be found in the ``lib``
240
+ module::
236
241
237
242
>>> import setuptools_rust as rust
238
243
>>> for ext in rust.find_rust_extensions("lib"):
You can’t perform that action at this time.
0 commit comments