From 76dde2703d0577b4b6674cbdaf76ffa6890ae5e8 Mon Sep 17 00:00:00 2001 From: Kevin Boos <1139460+kevinaboos@users.noreply.github.com> Date: Fri, 8 Mar 2024 16:06:16 -0800 Subject: [PATCH] Make building & running on Windows x64 easy (#54) Pin compiler version to avoid weird nightly discrepancies. --- Cargo.toml | 13 +++++++++++++ rust-toolchain.toml | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 rust-toolchain.toml diff --git a/Cargo.toml b/Cargo.toml index 4a1c6ea7..f07da314 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,6 +58,19 @@ url = "2.2.2" openssl = { version = "*", features = ["vendored"] } rusqlite = { version = "*", features = ["bundled"] } +## On Windows, there are prebuilt versions of sqlite3 available, +## but building it from bundled source is just easier and works out of the box. +## +## If you don't want to include sqlite3 as a static library built from source, +## you can comment out the below lines and link against a prebuilt version. +## One way to easily do this is to install sqlite using a package manager like `chocolatey` +## (see ). Another way is to or download it +## directly from the sqlite website: , +## where you'll want the 64-bit DLL (x64) under "Precompiled Binaries for Windows". +## You'll need to add the directory of that prebuilt sqlite DLL to your path env variable. +[target.'cfg(target_os = "windows")'.dependencies] +rusqlite = { version = "*", features = ["bundled"] } + [package.metadata.docs.rs] all-features = true diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 00000000..d8c7a9d4 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "nightly-2023-12-22"