Skip to content

Commit

Permalink
v0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Colonial-Dev committed Aug 18, 2024
1 parent 3119469 commit c6e0bb7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### v0.11.0
- (Routine Maintenance) Updated `rusqlite` from `0.31` to `0.32`.
- This is a *breaking change,* requiring you to upgrade your `rusqlite` to match - trying to link against two different copies of `libsqlite3` will cause a compile fail.

### v0.10.0
- (Routine Maintenance) Updated `rusqlite` from `0.30.0` to `0.31.0`.
- This is a *breaking change,* requiring you to upgrade your `rusqlite` to match - trying to link against two different copies of `libsqlite3` will cause a compile fail.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ members = [
]

[workspace.package]
version = "0.10.0"
version = "0.11.0"
authors = ["Colonial"]
edition = "2021"
license = "MIT OR Apache-2.0"
Expand Down
13 changes: 8 additions & 5 deletions exemplar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
exemplar_proc_macro = { version = "0.7.1" }
rusqlite = "0.31.0"
rusqlite = "0.32"

[dev-dependencies]
anyhow = "1.0.75"
criterion = "0.5.1"
serde = "1.0.189"
serde_rusqlite = "0.35.0"

# Disabled; we only use this in a benchmark, and it's a massive hassle
# when it comes to keeping the rusqlite dependency up to date.
# serde_rusqlite = "0.35.0"

[[bench]]
name = "binding_strategies"
Expand All @@ -32,9 +35,9 @@ harness = false
name = "query_exemplar"
harness = false

[[bench]]
name = "query_serde"
harness = false
# [[bench]]
# name = "query_serde"
# harness = false

[[bench]]
name = "query_manual"
Expand Down
4 changes: 2 additions & 2 deletions exemplar/benches/query_serde.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use criterion::*;
/*use criterion::*;
use serde::{Serialize, Deserialize};
use serde_rusqlite::*;
Expand Down Expand Up @@ -63,4 +63,4 @@ fn criterion_benchmark(c: &mut Criterion) {
}
criterion_group!(benches, criterion_benchmark);
criterion_main!(benches);
criterion_main!(benches);*/
6 changes: 3 additions & 3 deletions exemplar/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ pub trait Model {
/// This method serves two purposes:
/// - Enabling insertions into secondary tables (such as in-memory caches.)
/// - Squeezing out a few hundred extra nanoseconds of performance on insert operations. [`insert`](Model::insert)
/// and [`insert_or`](Model::insert_or) use [`prepare_cached`](https://docs.rs/rusqlite/latest/rusqlite/struct.Connection.html#method.prepare_cached)
/// to make the API convenient, but this incurs a map lookup on every call. [`insert_with`](Model::insert_with) can therefore
/// help you squeeze out a bit more speed if your program is extremely write-heavy.
/// and [`insert_or`](Model::insert_or) use [`prepare_cached`](https://docs.rs/rusqlite/latest/rusqlite/struct.Connection.html#method.prepare_cached)
/// to make the API convenient, but this incurs a map lookup on every call. [`insert_with`](Model::insert_with) can therefore
/// help you squeeze out a bit more speed if your program is extremely write-heavy.
///
/// # Usage
/// Exemplar binds fields to statements as *named parameters.* Take this example model type:
Expand Down

0 comments on commit c6e0bb7

Please sign in to comment.