From 137d24ac86a29c6027fc576e71fdc27e3b84afd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Uzarski?= Date: Thu, 19 Dec 2024 15:23:43 +0100 Subject: [PATCH] cargo: add "lib" to crate-type list It's required to enable the doctests for the crate. I also marked the code snippets from documentation in binding.rs with `rust,ignore`. They should not be run as doc tests. --- scylla-rust-wrapper/Cargo.toml | 2 +- scylla-rust-wrapper/src/binding.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scylla-rust-wrapper/Cargo.toml b/scylla-rust-wrapper/Cargo.toml index 523831c3..87cb6549 100644 --- a/scylla-rust-wrapper/Cargo.toml +++ b/scylla-rust-wrapper/Cargo.toml @@ -39,7 +39,7 @@ ntest = "0.9.3" rusty-fork = "0.3.0" [lib] name = "scylla_cpp_driver" -crate-type = ["cdylib", "staticlib"] +crate-type = ["cdylib", "staticlib", "lib"] [profile.dev] panic = "abort" diff --git a/scylla-rust-wrapper/src/binding.rs b/scylla-rust-wrapper/src/binding.rs index a419f43a..e0ca9957 100644 --- a/scylla-rust-wrapper/src/binding.rs +++ b/scylla-rust-wrapper/src/binding.rs @@ -371,13 +371,13 @@ macro_rules! invoke_binder_maker_macro_with_type { /// There are also 2 helper variants, to accomodate scenarios often encountered in cppdriver (sets of 3 functions, /// binding the same type by index, name and name_n): /// * `make_binders!(type, fn_idx, fn_name, fn_name_n)` - is equivalent to: -/// ``` +/// ```rust,ignore /// make_binders!(@index type, fn_idx); /// make_binders!(@name type, fn_name); /// make_binders!(@name_n type, fn_name_n); /// ``` /// * `make_binders!(t1, fn_idx, t2, fn_name, t3, fn_name_n)` - is equivalent to: -/// ``` +/// ```rust,ignore /// make_binders!(@index t1, fn_idx); /// make_binders!(@name t2, fn_name); /// make_binders!(@name_n t3, fn_name_n);