Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/redis interface findex v7 #74

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions crates/findex/.rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Specifies which edition is used by the parser.
# Default value: "2015"
edition = "2021"

# How imports should be grouped into use statements. Imports will be merged or split to the configured level of granularity.
# Default value: Preserve
imports_granularity = "Crate"

# Format the metavariable matching patterns in macros.
# Default value: false
format_macro_matchers = true

# Format string literals where necessary
# Default value: false
format_strings = true

# Reorder impl items. type and const are put first, then macros and methods.
# Default value: false
reorder_impl_items = true

# Controls the strategy for how imports are grouped together.
# Default value: Preserve
group_imports = "StdExternalCrate"

# Add trailing semicolon after break, continue and return
# Default value: true
trailing_semicolon = true

# Enable unstable features on the unstable channel.
# Default value: false
unstable_features = true

# Use field initialize shorthand if possible.
# Default value: false
use_field_init_shorthand = true

# Break comments to fit on the line
# Default value: false
wrap_comments = true

# Which version of the formatting rules to use. Version::One is backwards-compatible with Rustfmt 1.0. Other versions are only backwards compatible within a major version number.
# Default value: "One"
version = "Two"
7 changes: 7 additions & 0 deletions crates/findex/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// change this to change the features
// "rest-interface"
"rust-analyzer.cargo.features": [
"redis-interface"
],
}
15 changes: 11 additions & 4 deletions crates/findex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,24 @@ wasm = [
"serialization",
]

redis-interface = ["redis"]
redis-interface = ["rand_core", "rand_chacha", "redis"]
rest-interface = [
"base64",
"cosmian_crypto_core/ser",
"reqwest",
"serialization",
"rand_chacha",
"rand_core",
]
sqlite-interface = ["rusqlite"]

[dependencies]
findex = { git = "https://www.github.com/Cosmian/findex", branch = "test/cloudproof_v7", features = [
"test-utils",
] }
# Optional dependencies
rand_chacha = { version = "0.3.1", optional = true }
rand_core = { version = "0.6.4", optional = true }
actix-rt = { version = "2.9", optional = true }
async-trait = { workspace = true }
base64 = { workspace = true, optional = true }
Expand All @@ -78,22 +85,22 @@ lazy_static = { version = "1.4.0", optional = true }
log = { version = "0.4.20", optional = true }
pyo3 = { workspace = true, optional = true }
rand = { workspace = true, optional = true }
redis = { version = "0.23", features = [
redis = { version = "0.27.5", features = [
"aio",
"ahash",
"script",
"connection-manager",
"tokio-comp",
"connection-manager",
], optional = true }
reqwest = { version = "0.11.24", default-features = false, optional = true }
rusqlite = { version = "0.31.0", features = ["bundled"], optional = true }
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1.36.0", optional = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
wasm-bindgen = { workspace = true, optional = true }
wasm-bindgen-futures = { version = "0.4.41", optional = true }
wasm-logger = { version = "0.2.0", optional = true }
tokio = "1.41.0"

[dev-dependencies]
actix-rt = "2.9"
Expand Down
Loading
Loading