Skip to content

Commit

Permalink
Make building & running on Windows x64 easy (#54)
Browse files Browse the repository at this point in the history
Pin compiler version to avoid weird nightly discrepancies.
  • Loading branch information
kevinaboos authored Mar 9, 2024
1 parent b79cb92 commit 76dde27
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://stackoverflow.com/a/76427629>). Another way is to or download it
## directly from the sqlite website: <https://www.sqlite.org/download.html>,
## 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
Expand Down
2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "nightly-2023-12-22"

0 comments on commit 76dde27

Please sign in to comment.