rose-squared-sdk 0.1.0

Privacy-preserving encrypted search SDK implementing the SWiSSSE protocol with forward/backward security and volume-hiding, compilable to WebAssembly
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "rose-squared-sdk"
version = "0.1.0"
authors = ["Adithya <github.com/adithya-adee>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Privacy-preserving encrypted search SDK implementing the SWiSSSE protocol with forward/backward security and volume-hiding, compilable to WebAssembly"
documentation = "https://docs.rs/rose-squared-sdk"
readme = "README.md"
keywords = [
    "privacy",
    "search-encryption",
    "wasm",
    "cryptography",
    "zero-knowledge",
]
categories = [
    "cryptography",
    "wasm",
    "data-structures",
]
license = "MIT"
repository = "https://github.com/adithya-adee/rose-squared-sdk"

[package.metadata.wasm-pack.profile.release]
wasm-opt = [
    "-Oz",
    "--enable-mutable-globals",
]

[features]
default = ["std"]
std = []
wasm = [
    "wasm-bindgen",
    "js-sys",
    "web-sys",
    "getrandom/js",
]

[lib]
name = "rose_squared_sdk"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[example]]
name = "bench_scratch"
path = "examples/bench_scratch.rs"

[[example]]
name = "sqlite_store"
path = "examples/sqlite_store.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[dependencies.aes-gcm]
version = "0.10"
features = [
    "aes",
    "alloc",
    "getrandom",
]
default-features = false

[dependencies.argon2]
version = "0.5"
features = ["alloc"]
default-features = false

[dependencies.async-trait]
version = "0.1"

[dependencies.bincode]
version = "1.3"

[dependencies.getrandom]
version = "0.2"
features = ["js"]

[dependencies.hkdf]
version = "0.12"
default-features = false

[dependencies.hmac]
version = "0.12"
default-features = false

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.rand]
version = "0.8"
features = [
    "getrandom",
    "std",
]

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde-wasm-bindgen]
version = "0.5"

[dependencies.sha2]
version = "0.10"
default-features = false

[dependencies.thiserror]
version = "1"

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
    "js",
]

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dependencies.wasm-bindgen-futures]
version = "0.4"

[dependencies.web-sys]
version = "0.3"
features = [
    "DomStringList",
    "IdbFactory",
    "IdbDatabase",
    "IdbTransaction",
    "IdbTransactionMode",
    "IdbObjectStore",
    "IdbRequest",
    "IdbOpenDbRequest",
    "IdbVersionChangeEvent",
    "Window",
    "WorkerGlobalScope",
]
optional = true

[dependencies.zeroize]
version = "1.7"
features = [
    "derive",
    "alloc",
]

[dev-dependencies.hex]
version = "0.4"

[dev-dependencies.rusqlite]
version = "0.29"
features = ["bundled"]

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"