DioxusLabs / DioxusLabs/docsite

sqlite mising lib issue in tutorial for Windows

Open
#547 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
206
Forks
208
Avg merge
1h 11m
Merged PRs (30d)
3

Description

[On this line of the tutorial:](https://github.com/DioxusLabs/docsite/blob/main/docs-src/0.6/src/guide/databases.md?plain=1#L49)
```
rusqlite = { version = "0.32.1", optional = true } # <--- add rusqlite
```

Users developing on Windows (and maybe other platforms?) may get compilation errors like ` LINK : fatal error LNK1181: cannot open input file 'sqlite3.lib` as sqlite isn't installed on the system. The fix is to add `features = ["bundled"]` in the Cargo dependencies like:
```
rusqlite = { version = "0.37.0", features = ["bundled"], optional = true }
```

I found the solution [here on Stack Overflow](https://stackoverflow.com/questions/76349657/what-is-the-missing-sqlite3-lib-file-when-trying-to-run-rustqlite-with-precomp) when I encountered this issue myself. There are alternative solutions in that SO but adding the feature is the simpliest.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.