Bundle sqlite3 & implement rough build script
This commit is contained in:
parent
b522812c12
commit
78924bdcf3
|
@ -124,6 +124,12 @@ version = "1.0.1"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b700ce4376041dcd0a327fd0097c41095743c4c8af8887265942faf1100bd040"
|
||||
|
||||
[[package]]
|
||||
name = "cc"
|
||||
version = "1.0.67"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd"
|
||||
|
||||
[[package]]
|
||||
name = "cfg-if"
|
||||
version = "1.0.0"
|
||||
|
@ -584,6 +590,7 @@ version = "0.20.1"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "64d31059f22935e6c31830db5249ba2b7ecd54fd73a9909286f0a67aa55c2fbd"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"pkg-config",
|
||||
"vcpkg",
|
||||
]
|
||||
|
|
|
@ -14,7 +14,7 @@ http = "0.2"
|
|||
lazy_static = "1.4"
|
||||
rand = "0.8"
|
||||
regex = "1.4"
|
||||
rusqlite = "0.24"
|
||||
rusqlite = { version = "0.24", features = ["bundled"] }
|
||||
r2d2_sqlite = "0.17"
|
||||
r2d2 = "0.8"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
$ echo checking that rust, git and openssl are installed...
|
||||
|
||||
# Check that rustup, git and openssl are installed
|
||||
$ type rustup >/dev/null 2>&1 || { echo >&2 "rustup not found; make sure it's installed."; exit 1; }
|
||||
$ type git >/dev/null 2>&1 || { echo >&2 "git not found; make sure it's installed."; exit 1; }
|
||||
$ type openssl >/dev/null 2>&1 || { echo >&2 "openssl not found; make sure it's installed."; exit 1; }
|
||||
|
||||
# TODO: Check openssl version
|
||||
|
||||
# Clone the repo
|
||||
git clone git@github.com:nielsandriesse/session-open-group-server.git
|
||||
|
||||
# Generate a key pair
|
||||
openssl genpkey -algorithm x25519 -out session-open-group-server/x25519_private_key.pem
|
||||
openssl pkey -in session-open-group-server/x25519_private_key.pem -pubout -out session-open-group-server/x25519_public_key.pem
|
||||
|
||||
# Build
|
||||
cargo build
|
||||
|
||||
# TODO: linking with `cc` failed
|
Loading…
Reference in New Issue