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: add findex impl - client and server sides #15

Draft
wants to merge 14 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 6 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
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
cargo-lint:
uses: ./.github/workflows/clippy.yml
with:
toolchain: nightly-2024-06-09
toolchain: stable-2024-10-17

build_tests:
uses: ./.github/workflows/build_all.yml
secrets: inherit
with:
toolchain: nightly-2024-06-09
toolchain: stable-2024-10-17
debug_or_release: debug
4 changes: 2 additions & 2 deletions .github/workflows/main_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
cargo-lint:
uses: ./.github/workflows/clippy.yml
with:
toolchain: nightly-2024-06-09
toolchain: stable-2024-10-17

build:
uses: ./.github/workflows/build_all.yml
secrets: inherit
with:
toolchain: nightly-2024-06-09
toolchain: stable-2024-10-17
debug_or_release: release
25 changes: 20 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,24 @@
# pre-commit install
# pre-commit install --install-hooks -t commit-msg
# pre-commit autoupdate

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: tests_data
#
# (optional) Creating a virtual environment
# ```
# sudo pip3 install virtualenv
# virtualenv venv
# source venv/bin/activate
# ```
# Known issues:
# - If markdownlint-cli fails to install, try installing node js LTS :
# first, install nvm according to the docs : https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating
# then, run the following commands:
# ```
# nvm install --lts
# nvm use --lts
# ```
# - If docker-compose-up fails to install, try installing docker-compose and installing the latest docker version.
# If you get an error related to unavailable ports, you might have an instance of redis-server running on the same port. If so, stop the redis-server with the following command: `sudo systemctl stop redis-server.service` and relaunch the pre-commit hooks.
exclude: crate/client/datasets/users.json
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.4.0
Expand Down Expand Up @@ -107,14 +121,15 @@ repos:
args: [--skip-string-normalization]

- repo: https://github.com/Cosmian/git-hooks.git
rev: v1.0.29
rev: v1.0.30
hooks:
- id: cargo-format
# - id: dprint-toml-fix
# - id: cargo-upgrade
# - id: cargo-update
- id: cargo-machete
- id: docker-compose-up
- id: cargo-build-kms
- id: cargo-test
- id: clippy-autofix-unreachable-pub
- id: clippy-autofix-all-targets-all-features
Expand Down
58 changes: 58 additions & 0 deletions .rustfmt.toml
tbrezot marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# 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

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

# Convert /* */ comments to // comments where possible
# Default value: false
# Possible values: true, false
# normalize_comments = 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 = false

# 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

# 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"

# # Controls the edition of the Rust Style Guide to use for formatting (RFC 3338)
# Default value: "2015"
# style_edition = "2021"

# The following rust files listing have been made in october 2021.
# This listing allows us first to ignore all rust files formmatting.
# Then we can remove progressively from this list the files we want to format
ignore = []
Loading
Loading