Sean Griffin
2c58b3f804
Remove the dependency on libc
...
Recent versions of bindgen use `std::os::raw` over `libc`, but currently
`libsqlite3-sys` is overriding that. `std::os::raw` is a subset of
`libc` that exports only the relevant type definitions, but not any
functions which require additional linking. This enables
`libsqlite3-sys` to be more easily used on targets that may not have a
libc available (presumably sqlite itself would have been compiled with
musl in that case)
2017-02-16 11:17:24 -05:00
John Gallagher
c4417bee0e
Manual fixes for rustfmt overly long lines.
2016-05-19 20:09:40 -05:00
John Gallagher
4a6c7b5329
Reset in Rows's drop impl instead of waiting for the next query
2016-05-16 14:02:39 -05:00
gwenn
b20168fe9c
Use String::from_utf8_lossy for error/trace.
...
Try to use the original message even if there are invalid
characters.
2016-05-07 12:08:57 +02:00
John Gallagher
c0b8be99e8
Fix crash due to 0-sized function type change in nightly
2016-03-29 16:14:12 -04:00
John Gallagher
047861b928
Move Error
into its own module (internal organization only - public API remains).
2015-12-16 20:30:27 -05:00
John Gallagher
aac4d59fcc
Change Error
from a struct to an enum (BREAKING CHANGE).
...
This allows us to separate out the underlying SQLite error codes from
errors that occur on the Rust side.
2015-12-16 20:30:27 -05:00
John Gallagher
b883ab651d
Update unsafety of C function pointers for new bindgen
2015-12-13 08:40:51 -05:00
John Gallagher
eb60bb3111
Rename SqliteResult
-> Result
.
2015-12-12 14:06:03 -05:00
John Gallagher
f0b6bf9152
Rename SqliteError -> Error.
2015-12-12 13:53:58 -05:00
John Gallagher
4327a84edb
Rename SqliteConnection -> Connection.
...
Leave old name in as a (deprecated) typealias.
2015-12-12 13:53:34 -05:00
John Gallagher
a1f1480b18
Run rustfmt on all crate files
2015-12-10 16:48:09 -05:00
John Gallagher
e6fef5107d
Change profile() to take a Rust fn instead of an extern "C" fn.
2015-12-01 10:34:18 -05:00
John Gallagher
ace5b1ebdc
Change trace() to take a Rust fn instead of an extern "C" fn.
2015-11-30 21:08:39 -05:00
John Gallagher
dbfa6ca31f
Change config_log to take a Rust fn instead of an extern "C" fn.
...
Moves the unit test for config_log out of #[ignore] and into its own
test file since it affects the entire process.
2015-11-30 21:08:39 -05:00
Gwenael Treguier
a2327fb048
Revert "Remove usage of unstable library feature 'duration'"
...
This reverts commit 9c415f9c9e
.
2015-11-11 15:00:39 +01:00
Gwenael Treguier
50bfba1e1d
Ignore test_log.
2015-11-11 14:29:40 +01:00
Gwenael Treguier
59a4c5593a
Improve documentation.
2015-08-08 09:57:07 +02:00
Gwenael Treguier
9c415f9c9e
Remove usage of unstable library feature 'duration'
2015-08-02 12:16:01 +02:00
gwenn
ef254fdca0
Rename feature to 'trace'
2015-08-01 18:58:04 +02:00