Skip to content

Commit

Permalink
feat: support cipher
Browse files Browse the repository at this point in the history
richerfu committed May 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 461a86d commit 7a56c52
Showing 3 changed files with 18 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/rusqlite/Cargo.toml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
[dependencies]
napi-ohos = { version = "*",features = ["error_anyhow"] }
napi-derive-ohos = { version = "*" }
rusqlite = { version = "0.31", features = ["bundled"] }
rusqlite = { version = "0.31", features = ["bundled","bundled-sqlcipher-vendored-openssl"] }

[build-dependencies]
napi-build-ohos = { version = "*" }
6 changes: 6 additions & 0 deletions example/rusqlite/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

export OPENSSL_NO_VENDOR=1
export AARCH64_UNKNOWN_LINUX_OHOS_OPENSSL_DIR="${PWD}/../../ohos-openssl/prelude/arm64-v8a/"
export ARMV7_UNKNOWN_LINUX_OHOS_OPENSSL_DIR="${PWD}/../../ohos-openssl/prelude/armeabi-v7a/"
export X86_64_UNKNOWN_LINUX_OHOS_OPENSSL_DIR="${PWD}/../../ohos-openssl/prelude/x86_64/"

0 comments on commit 7a56c52

Please sign in to comment.