Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
92fa703
add support for sqlite loadable extensions
jrandall Jun 15, 2019
5c97c48
install rustfmt in travis ci
jrandall Jun 15, 2019
4caff14
add rustfmt to appveyor install
jrandall Jun 15, 2019
b21aed2
fix reference to link_lib in vcpkg build
jrandall Jun 16, 2019
0bf1e74
Merge remote-tracking branch 'upstream/master' into pr/loadable-exten…
gwenn Feb 9, 2020
955521f
Remove old bindgens
gwenn Feb 9, 2020
26c9193
Remove some more old bindgens
gwenn Feb 11, 2020
e1fffce
Remove unused `api_routines_stub` feature
gwenn Feb 11, 2020
d4b710a
Remove unused `vtab_v3` feature
gwenn Feb 11, 2020
2b3fd57
Merge remote-tracking branch 'upstream/master' into pr/loadable-exten…
gwenn Feb 11, 2020
168821a
Revert changes on old bindgens
gwenn Feb 11, 2020
2c6b6ac
Ignore PATH change on Windows
gwenn Feb 11, 2020
68bea40
Remove copyright header from build script
gwenn Feb 15, 2020
325bfb6
Generate all three bindgen files
gwenn Feb 15, 2020
2b170f0
Generate new bindgen files for bundled version
gwenn Feb 15, 2020
3494e67
Remove generate-bindgen-bindings script
gwenn Feb 15, 2020
7dd7204
Upgrade syn / quote
gwenn Feb 15, 2020
1e19268
Fix warning after wrong merge
gwenn Feb 15, 2020
0b042d0
Run rustfmt manually only while regenerating bindgen files
gwenn Feb 15, 2020
9be9358
Fix warnings in build script
gwenn Feb 15, 2020
5e20e5d
Remove code specific to SQLITE_DETERMINISTIC
gwenn Feb 15, 2020
e4b669c
Fix build_loadable_extension conditional compilation
gwenn Feb 15, 2020
df9a1b1
Remove non_threadsafe feature
gwenn Feb 15, 2020
14ef2d1
Make loadable_extension compatible with bundled* features
gwenn Feb 16, 2020
347c9ff
Fix clippy warnings
gwenn Feb 16, 2020
112b061
Fix compilation error with loadable_extension feature
gwenn Feb 16, 2020
5181cca
Revert output mutability
gwenn Feb 16, 2020
ffbf6b5
Fix warnings
gwenn Feb 16, 2020
0f6ad74
Check loadable_extension build
gwenn Feb 16, 2020
1e211b3
Merge remote-tracking branch 'upstream/master' into pr/loadable-exten…
gwenn Feb 22, 2020
39ac443
eliminate -ext-embed versions of bindgen-bindings
jrandall Feb 22, 2020
be120ef
Merge pull request #2 from Genomicsplc/pr/loadable-extensions
gwenn Feb 28, 2020
121fdba
Merge remote-tracking branch 'upstream/master' into pr/loadable-exten…
gwenn Mar 1, 2020
d52a920
Fix bindgen_bundled_version-ext.rs
gwenn Mar 8, 2020
db04c93
Add comments
gwenn Mar 8, 2020
f3b58e1
`config_log` cannot be used with `loadable_extension`
gwenn Mar 8, 2020
643c0f6
Introduce `to_sqlite_error`
gwenn Mar 8, 2020
a252561
Add `dummy-extension` module
gwenn Mar 8, 2020
bceef65
Fix dummy-extension module
gwenn Mar 15, 2020
03cb901
Document and export check macro
gwenn Mar 15, 2020
84bae86
Merge remote-tracking branch 'upstream/master' into pr/loadable-exten…
gwenn Mar 15, 2020
ad842a3
Try to fix CI build
gwenn Mar 15, 2020
f1ae27c
Fix dummy-extension
gwenn Mar 15, 2020
66de561
Merge remote-tracking branch 'upstream/master' into pr/loadable-exten…
gwenn Apr 1, 2020
cf658af
Merge remote-tracking branch 'upstream/master' into pr/loadable-exten…
gwenn Apr 5, 2020
cb9e702
Merge remote-tracking branch 'upstream/master' into pr/loadable-exten…
gwenn Jun 13, 2020
bbbc76a
Fix build error
gwenn Jun 13, 2020
61ee112
Fix bindgen ext files.
gwenn Jun 13, 2020
a20039b
Export check macro
gwenn Jun 13, 2020
9b93d38
Fix to_sqlite_error doc
gwenn Jun 13, 2020
3770778
Fix dummy extension
gwenn Jun 13, 2020
944ad5e
Fix sqlite3_api_routines size
gwenn Jun 13, 2020
5fb3f42
Merge remote-tracking branch 'upstream/master' into gwenntest
phiresky Dec 16, 2020
c409018
fix build for loadable_extension
phiresky Dec 16, 2020
44cf295
update bundled bindgen for loadable_extension
phiresky Dec 16, 2020
98bb78f
add test function to dummy module as well
phiresky Dec 16, 2020
763364f
format
phiresky Dec 18, 2020
efd88cb
Merge remote-tracking branch 'upstream/master' into loadable-extensions
phiresky Dec 23, 2020
28f7c42
Fix up loadable extensions work
jrandall Mar 7, 2021
63c66ed
Merge branch 'master' into loadable-extensions
jrandall Mar 7, 2021
e63b17f
improve loadable_extension integration test and add loadable_extensio…
jrandall Mar 7, 2021
4f68759
Merge tag 'v0.25.0' into loadable-extensions
jrandall Apr 4, 2021
6980767
Merge tag 'v0.26.2' into loadable-extensions
jrandall Dec 8, 2021
568dfea
rename dummy-extension and dummy-embedded-extension to example-extens…
jrandall Dec 8, 2021
462ff15
fix issues resulting from merge conflict resolution in libsqlite3-sys…
jrandall Dec 8, 2021
f87a94c
fix issue with header_path in libsqlite3-sys/build.rs
jrandall Dec 8, 2021
a2ac5f2
don't specify version in example-*/Cargo.toml so that they can be bui…
jrandall Dec 8, 2021
0c50fd3
cargo fmt
jrandall Dec 8, 2021
2472ec9
remove extraneous cmoment line in libsqlite3-sys/build.rs
jrandall Dec 8, 2021
5069474
add runtime version checks to loadable extension wrappers, improve sa…
jrandall Dec 8, 2021
b252f5e
cargo fmt
jrandall Dec 9, 2021
55c0c3c
add safety docs to unsafe functions in example-extension and example-…
jrandall Dec 9, 2021
069fc87
cargo fmt
jrandall Dec 9, 2021
b4ae3e0
fix doctests in src/loadable_extension.rs
jrandall Dec 10, 2021
3819e07
access sqlite3_api_routines fields in generated wrapper functions usi…
jrandall Dec 10, 2021
2ef1eb9
Merge branch 'loadable-extensions' of github.com:Genomicsplc/rusqlite…
polyrand May 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix issues resulting from merge conflict resolution in libsqlite3-sys…
…/build.rs
  • Loading branch information
jrandall committed Dec 8, 2021
commit 462ff150c0d101ee0df0ec337a3e36dfd64dd9cd
8 changes: 3 additions & 5 deletions libsqlite3-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@ openssl-sys = { version = "0.9", optional = true }

[build-dependencies]
bindgen = { version = "0.59", optional = true, default-features = false, features = ["runtime"] }
pkg-config = { version = "0.3.19", optional = true }
cc = { version = "1.0", optional = true }
syn = { version = "1.0", features = ["extra-traits", "full", "printing"], optional = true }
pkg-config = { version = "0.3.19", optional = true }
quote = { version = "1.0", optional = true }
which = { version = "4.0.2", optional = true }

[target.'cfg(target_env = "msvc")'.build-dependencies]
syn = { version = "1.0", features = ["extra-traits", "full", "printing"], optional = true }
vcpkg = { version = "0.2", optional = true }
which = { version = "4.0.2", optional = true }
13 changes: 7 additions & 6 deletions libsqlite3-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,9 @@ fn main() {
or 'bundled-sqlcipher-vendored-openssl' to also bundle OpenSSL crypto."
)
}
build_linked::main(&out_dir, &out_path);
return;
build_linked::main(&out_dir, &out_path)
} else if cfg!(feature = "loadable_extension") {
build_loadable_extension::main(&out_dir, &out_path);
return;
build_loadable_extension::main(&out_dir, &out_path)
} else if cfg!(feature = "bundled")
|| (win_target() && cfg!(feature = "bundled-windows"))
|| cfg!(feature = "bundled-sqlcipher")
Expand Down Expand Up @@ -96,7 +94,8 @@ mod build_bundled {
#[cfg(feature = "buildtime_bindgen")]
{
use super::{bindings, header_file, HeaderLocation};
let header = HeaderLocation::FromPath(format!("{}/{}", lib_name, header_file()));
let header_path = format!("{}/{}", lib_name, header_file());
let header = HeaderLocation::FromPath(header_path);
bindings::write_to_out_dir(header, out_path);
println!("cargo:rerun-if-changed={}", header_path);
}
Expand Down Expand Up @@ -332,8 +331,10 @@ fn wrapper_file() -> &'static str {
"wrapper-ext.h"
} else {
"wrapper.h"
}
}

fn lib_name() -> &'static str {
fn lib_name() -> &'static str {
if cfg!(any(feature = "sqlcipher", feature = "bundled-sqlcipher")) {
"sqlcipher"
} else if cfg!(all(windows, feature = "winsqlite3")) {
Expand Down