Skip to content

Commit

Permalink
Switch to bindgen
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanUkhov committed Apr 21, 2024
1 parent a40f905 commit 803ff80
Show file tree
Hide file tree
Showing 9 changed files with 5,427 additions and 1,299 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile=minimal --component clippy --component rustfmt
- run: cargo clippy -- -D warnings
- run: rustup toolchain install stable --profile=minimal --component rustfmt
- run: cargo fmt --all -- --check

test:
Expand Down
6 changes: 0 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ default = ["linkage"]
bundled = ["sqlite3-src/bundled"]
linkage = ["sqlite3-src"]

[dependencies]
libc = "0.2"

[dependencies.sqlite3-src]
version = "0.6"
optional = true

[dev-dependencies]
temporary = "0.6"
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

The package provides bindings to [SQLite].

## Development

```shell
cargo install bindgen-cli
git clone https://github.com/stainless-steel/sqlite3-src.git --recursive
bindgen --use-core sqlite3-src/source/sqlite3.h \
| sed -E "s/^pub const ([0-9A-Z_]+): u32/pub const \1: ::core::ffi::c_int/" \
> src/bindings.rs
```

## Contribution

Your contribution is highly appreciated. Do not hesitate to open an issue or a
Expand Down
5,413 changes: 5,413 additions & 0 deletions src/bindings.rs

Large diffs are not rendered by default.

524 changes: 0 additions & 524 deletions src/constants.rs

This file was deleted.

Loading

0 comments on commit 803ff80

Please sign in to comment.