DioxusLabs / DioxusLabs/docsite
Hotdog tutorial - cannot add rusqlite as a dependency
- Dominant language
- Rust
- Stars
- 206
- Forks
- 208
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 3
Description
On the tutorial at page https://dioxuslabs.com/learn/0.6/guide/databases#
it is recommended to add rusqlite by adding this to Cargo.toml:
```
[dependencies]
...
rusqlite = { version = "0.32.1", optional = true } # <--- add rusqlite
[features]
...
server = ["dioxus/server", "dep:rusqlite"] # <---- add dep:rusqlite
```
This fails to link on windows with this error:
LINK : fatal error LNK1181: cannot open input file 'sqlite3.lib'
This is because the lib isn't bundled without adding the bundled feature to rusqlite.
Here is how i fixed the issue:
`
rusqlite = { version = "0.32.1", features = ["bundled"], optional = true }
`
It might be a good idea to update the web site.
Hope this is the correct place to report such things, sorry if it isn't !
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.