Skip to content

v1.2.0

Choose a tag to compare

@goshi-goruma goshi-goruma released this 14 Nov 13:26
· 15 commits to main since this release
d516ae5

What's Changed

  • update: scylla-driver version 1.10, Rust 2024 edition, fixes and tests by @GoranBrkuljan in #87

Driver and Rust

  • ScyllaDB Rust driver 1.10 (was 1.4) and the Rust 2024 edition. Rust 1.94 or newer is now required, because the driver requires it.
  • All other dependencies are on their latest versions, including syn 3 and darling 0.24. The code generated by the macros is unchanged.

Varint

Varint was an alias of i64 and could not be used with a varint column. It is now an integer of any size:

use charybdis::types::Varint;

let small = Varint::from(42);
let big: Varint = "123456789012345678901234567890".parse()?;

Like Decimal, it is written to JSON as a string and read from a string or a whole number. The underlying num_bigint::BigInt is available as .0.

Fixes

  • migrate: a Varchar column was seen as a changed type on every run. With --drop-and-replace the column was dropped and created again, losing its data; without it the migration panicked.
  • migrate: CLUSTERING ORDER BY or COMPACT STORAGE as the last entry of table_options produced an invalid ALTER TABLE statement on every run after the first.
  • CharybdisError::source() returned None for BatchError and TypeCheckError.

Upgrade notes

  • Rust 1.94+ is required.
  • Varint is no longer an i64.
  • TLS: since driver 1.5, the certificate of a node has to list the node's IP address in its SAN, otherwise the connection is rejected. This applies to migrate --ca and to sessions you build yourself.
  • Contact points: since driver 1.6, every node is expected to listen on the port of the contact point that was used. If your nodes are published on different host ports (for example docker with 9042, 9043 and 9044 on localhost), list a single contact point and let the driver discover the rest. Otherwise most sessions fail with ConnectionRefused.

Tests

Integration tests went from 10 to 30, and there are now 67 unit tests that run without a database.

Full Changelog: v1.1.0...v1.2.0