From 898a3cf765d9424c014397fbbbdd1c6fd0cc8d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Anast=C3=A1cio?= Date: Sun, 12 Apr 2026 16:04:35 -0300 Subject: [PATCH] fix: add NIF version features to Cargo.toml for Rustler v0.30+ compatibility Since Rustler v0.30.0, NIF version features must be declared in Cargo.toml and forwarded to the rustler dependency so RustlerPrecompiled can communicate the target NIF version during precompiled artifact builds. Co-Authored-By: Claude Sonnet 4.6 --- native/sql_parser_ex/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/native/sql_parser_ex/Cargo.toml b/native/sql_parser_ex/Cargo.toml index dcfc44e..5fed0e8 100644 --- a/native/sql_parser_ex/Cargo.toml +++ b/native/sql_parser_ex/Cargo.toml @@ -8,6 +8,10 @@ name = "sql_parser_ex" path = "src/lib.rs" crate-type = ["cdylib"] +[features] +nif_version_2_15 = ["rustler/nif_version_2_15"] +nif_version_2_16 = ["rustler/nif_version_2_16", "nif_version_2_15"] + [dependencies] rustler = { version = "0.37", features = ["derive"] } sqlparser = { version = "0.61", features = ["serde", "visitor"] }