David Hewitt
2500e22e13
release: 0.19.0
2023-05-31 13:53:37 +01:00
David Hewitt
bfcc1f8c27
update release notes for 0.18.3
2023-04-13 22:47:55 +01:00
David Hewitt
e7e58ba51e
update release notes for 0.18.2
2023-03-24 20:40:06 +00:00
Adam Reichold
39d19113fa
Remove stale references to tox.ini from template substitution scripts.
2023-03-05 09:17:34 +01:00
David Hewitt
92cca896de
release notes for 0.18.1
2023-02-07 21:38:07 +00:00
David Hewitt
224a4160b4
release: 0.18.0
2023-01-17 19:04:30 +00:00
David Hewitt
548e90fcec
release: 0.17.3
2022-11-01 20:47:46 +00:00
David Hewitt
bd40011e93
release: 0.17.2
2022-10-04 08:13:53 +01:00
David Hewitt
caaf7bbda7
release: 0.17.1
2022-08-28 08:27:56 +01:00
David Hewitt
04c1ac87f1
release: 0.17.0
2022-08-23 21:21:19 +01:00
David Hewitt
5ca3001957
examples: update maturin to 0.13
2022-08-18 08:17:53 +01:00
David Hewitt
3dcbcb7a95
update main to reflect 0.16.5 release
2022-05-15 20:31:00 +01:00
Adam Reichold
d2caa056e9
release: 0.16.4
2022-04-14 07:56:42 +01:00
David Hewitt
1ae0971a09
release: 0.16.3
2022-04-05 04:05:57 +01:00
mejrs
6f1cf1b662
Add more lints
2022-03-23 08:07:28 +01:00
Adam Reichold
922bbfc92d
release: 0.16.2
2022-03-15 19:20:00 +01:00
David Hewitt
7056bae21f
release: 0.16.1
2022-03-05 16:21:44 +00:00
David Hewitt
4c434a21bd
release: 0.16.0
2022-02-27 20:28:51 +00:00
David Hewitt
000a903676
ci: build all examples in debug
2022-01-23 08:41:39 +00:00
messense
081c8082cb
Use --no-build-isolation
2022-01-17 10:02:03 +08:00
messense
ce80b7e0f3
Switch from tox to nox
2022-01-17 00:24:33 +08:00
David Hewitt
bd3c3adf46
examples: make Cargo.toml files more uniform
2021-12-15 08:28:25 +00:00
David Hewitt
888b10c373
examples: add links to cargo-generate
...
Co-authored-by: Adam Reichold <adamreichold@users.noreply.github.com>
2021-12-15 08:12:43 +00:00
David Hewitt
ce7e17c0e6
examples: add cargo-generate configuration
2021-12-15 08:11:46 +00:00
Bruno Kolenbrander
39cac9075b
Organize examples + add __call__ example ( #2043 )
...
* Add decorator example crate and split off chapter
* Move not-examples to their own folder
* Add some readme's
* Make black happy
* Make clippy happy
* Add decorator example crate and split off chapter
* Fix ci
* Add empty workspace key
* Try fix ci
* fix ci
* reuse target dir for examples CI
* add pytests folder to makefile recipes
* fix ci, try 2
* add missing pyproject.toml
* remove TOX_TESTENV_PASSENV from Makefile
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2021-12-15 00:45:26 +00:00
David Hewitt
8495d77722
examples: use setuptools-rust 1.0.0
2021-11-21 20:39:52 +00:00
David Hewitt
da885f696d
examples: use pip 21.3
2021-10-13 00:05:33 +01:00
David Hewitt
06ff76fec2
examples: make word-count
example comparison fairer
2021-08-13 14:19:46 +01:00
messense
b5b9a480cd
Add wrap_pyfunction
macro to prelude
2021-06-24 22:34:55 +08:00
David Hewitt
f1dd1380a5
examples: use pip 21.1
2021-04-29 08:52:01 +01:00
winxton
5498b7ee3c
Fix wordcount example docs
2021-02-24 13:41:45 -05:00
David Hewitt
33b8aba3bb
examples: simplify tox instructions
2020-11-10 12:50:41 +00:00
Arnav Jindal
042337b423
Update lib.rs
2020-10-21 19:37:23 +05:30
Arnav Jindal
a3d0c86c1c
Docs: Fixed example word_count
2020-10-21 12:36:36 +05:30
David Hewitt
afd9b823d2
Drop support for Python 3.5
2020-10-18 19:02:27 +01:00
kngwyu
2e22066feb
Do not test PyPy on Windows
2020-10-08 16:29:50 +09:00
Sebastian Pütz
22881a3c2f
Change add_function, ensure static docstrings.
...
Change add_function to take `&PyCFunction` instead of a wrapper
fn and ensure that dostrings of functions are `&'static str`.
2020-09-09 12:37:37 +02:00
Sebastian Pütz
3214249010
Make python function wrapper creation fallible.
...
Wrapping a function can fail if we can't get the module name.
Based on suggestion by @kngwyu
2020-09-03 15:48:32 +02:00
Sebastian Pütz
5bbca1a052
Set the module of #[pyfunction]
s.
...
Previously neither the module nor the name of the module of
pyfunctions were registered. This commit passes the module and
its name when creating a new pyfunction.
PyModule::add_function and PyModule::add_module have been added and are
set to replace `add_wrapped` in a future release. `add_wrapped` is kept
for compatibility reasons during the transition.
Depending on whether a `PyModule` or `Python` is the argument for the
Python function-wrapper, the module will be registered with the function.
2020-09-03 14:49:28 +02:00
Alexander Niederbühl
d2c7645bad
Add benchmark for Python threaded word count
...
Add benchmark where the sequential Rust version of the word count is
executed twice to demonstrate parallelism with Python threads. Also
slightly simplify the benchmark functions.
2020-06-05 20:22:20 +02:00
Alexander Niederbühl
bafe269dde
Set debug to False
in word-count example
2020-06-05 16:40:29 +02:00
Alexander Niederbühl
de9aae1e82
Use string slices as function arguments
...
Also use the same names as parameters.
2020-06-05 16:40:29 +02:00
Alexander Niederbühl
4c55fa6b38
Remove unnecessary wrapping of test function
2020-06-05 16:40:29 +02:00
Alexander Niederbühl
eb73105625
Make benchmarks more comparable
2020-06-05 16:40:29 +02:00
Alexander Niederbühl
bcf48c0bd2
Fix clippy lints
2020-06-05 13:53:01 +02:00
kngwyu
acb1120c55
Fix examples with the new #[new] API
2019-12-22 23:59:28 +09:00
kngwyu
dadeb17c3a
Fix Windows test
2019-11-17 16:34:55 +09:00
Yuji Kanagawa
5eb7656a5e
Merge branch 'master' into examples-debug
2019-09-07 11:53:00 +09:00
konstin
73947d84b4
Format examples with black ( #590 )
2019-09-06 01:16:09 +02:00
konstin
94f6248d87
Compile examples in debug mode
2019-09-05 13:13:06 +02:00