Skip to content

Commit 4490fe2

Browse files
committed
Move the generator to bin
1 parent 9202afe commit 4490fe2

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ The package provides bindings to [LAPACK] (Fortran).
44

55
## [Architecture]
66

7+
## Development
8+
9+
The function definitions are generated via a shell script based on the `lapack`
10+
submodule. To re-generate, run the following command:
11+
12+
```sh
13+
./bin/generate.sh
14+
```
15+
716
## Contribution
817

918
Your contribution is highly appreciated. Do not hesitate to open an issue or a

bindgen.sh renamed to bin/generate.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -eux
77
#
88
# * By default, `char` is converted to `::std::os::raw::c_char`. However, to
99
# preserve no_std, it is truncated to `c_char` and gets taken from `libc`.
10-
bindgen --whitelist-function='^.*_$' --use-core wrapper.h \
10+
bindgen --whitelist-function='^.*_$' --use-core bin/wrapper.h \
1111
| sed -e 's/::std::os::raw:://g' \
1212
> src/lapack.rs
1313

bin/wrapper.h

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "../lapack/LAPACKE/include/lapack.h"

wrapper.h

-1
This file was deleted.

0 commit comments

Comments
 (0)