rust-buildpack | Cloud Foundry Rust Buildpack | Cloud library
kandi X-RAY | rust-buildpack Summary
kandi X-RAY | rust-buildpack Summary
Super simple proof of concept online buildpack for Rust on Cloud Foundry.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rust-buildpack
rust-buildpack Key Features
rust-buildpack Examples and Code Snippets
Community Discussions
Trending Discussions on rust-buildpack
QUESTION
I have built an API using Rocket, Diesel and SQLite. It runs fine locally.
Now I want to deploy my API it to Heroku. I'm going off this example: https://github.com/emk/rust-buildpack-example-rocket
I've followed the included instructions as close as I can. However, the build step returns the following error:
...ANSWER
Answered 2021-Jan-07 at 17:53As the error message indicates your build system is missing libsqlite3
.
There are two ways to solve this problem:
Add
libsqlite3-sys = { version = "0.18", features = ["bundled"]}
to yourCargo.toml
. This instructs the cargo to also buildlibsqlite3
as part of your application build. The library is statically linked using this method.Install
libsqlite3
on the build system and use theSQLITE3_LIB_DIR
environment variable to point the compiler to the correct directory.libsqlite3
will be linked dynamically, which means you also need to provide this library on the system you are running your application afterwards.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rust-buildpack
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page