pub fn expected_slot_count(version: &str) -> Option<usize>Expand description
Returns the verified duckdb_ext_api_v1 slot count for a DuckDB release,
or None if this build has no verified entry for it.
ยงExample
use quack_rs::abi::expected_slot_count;
assert_eq!(expected_slot_count("v1.5.4"), Some(546));
assert_eq!(expected_slot_count("v1.5.0"), Some(545));
assert_eq!(expected_slot_count("v1.4.4"), Some(459));
// Unreleased / unknown versions are explicitly not guessed at.
assert_eq!(expected_slot_count("v9.9.9"), None);
assert_eq!(expected_slot_count("v1.6.0-dev42"), None);