Skip to content
Merged
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
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publishing

on:
push:
branches:
- test


jobs:
test:
uses: ./.github/workflows/test.yml
publish:
name: Publish the client to the public registry
needs: test
runs-on: ubuntu-latest
env:
CRATES_IO: ${{ secrets.CRATES_IO }}

steps:
- uses: actions/checkout@v4
- run: |
echo "Publishing to crates.io"
cargo login $CRATES_IO
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: tests

on: [workflow_call]

jobs:
test:

name: unit tests
runs-on: ubuntu-latest

services:
manticoresearch-manticore:
image: manticoresearch/manticore:dev
env:
EXTRA: 1
ports:
- 9308:9308

strategy:
matrix:
BUILD_TARGET: [release]
outputs:
release_built: ${{ steps.set-output.outputs.release_built }}
steps:
- uses: actions/checkout@v4
- name: Build binaries in "${{ matrix.BUILD_TARGET }}" mode
run: cargo build --profile ${{ matrix.BUILD_TARGET }}
- name: Run tests in "${{ matrix.BUILD_TARGET }}" mode
run: cargo test --profile ${{ matrix.BUILD_TARGET }} -- --show-output

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/target/
**/*.rs.bk
Cargo.lock
23 changes: 23 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
100 changes: 100 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
.gitignore
.openapi-generator-ignore
.travis.yml
Cargo.toml
README.md
docs/AggComposite.md
docs/AggCompositeSource.md
docs/AggCompositeTerm.md
docs/AggTerms.md
docs/Aggregation.md
docs/AutocompleteRequest.md
docs/BoolFilter.md
docs/BulkResponse.md
docs/DeleteDocumentRequest.md
docs/DeleteResponse.md
docs/ErrorResponse.md
docs/FulltextFilter.md
docs/GeoDistance.md
docs/GeoDistanceLocationAnchor.md
docs/Highlight.md
docs/HighlightFieldOption.md
docs/HitsHits.md
docs/IndexApi.md
docs/InsertDocumentRequest.md
docs/Join.md
docs/JoinCond.md
docs/JoinOn.md
docs/KnnQuery.md
docs/Match.md
docs/MatchAll.md
docs/PercolateRequest.md
docs/PercolateRequestQuery.md
docs/QueryFilter.md
docs/Range.md
docs/ReplaceDocumentRequest.md
docs/ResponseError.md
docs/ResponseErrorDetails.md
docs/SearchApi.md
docs/SearchQuery.md
docs/SearchRequest.md
docs/SearchResponse.md
docs/SearchResponseHits.md
docs/SourceRules.md
docs/SqlObjResponse.md
docs/SqlResponse.md
docs/SuccessResponse.md
docs/UpdateDocumentRequest.md
docs/UpdateResponse.md
docs/UtilsApi.md
git_push.sh
src/apis/client.rs
src/apis/configuration.rs
src/apis/index_api.rs
src/apis/mod.rs
src/apis/request.rs
src/apis/search_api.rs
src/apis/utils_api.rs
src/lib.rs
src/models/_match.rs
src/models/agg_composite.rs
src/models/agg_composite_source.rs
src/models/agg_composite_term.rs
src/models/agg_terms.rs
src/models/aggregation.rs
src/models/autocomplete_request.rs
src/models/bool_filter.rs
src/models/bulk_response.rs
src/models/delete_document_request.rs
src/models/delete_response.rs
src/models/error_response.rs
src/models/fulltext_filter.rs
src/models/geo_distance.rs
src/models/geo_distance_location_anchor.rs
src/models/highlight.rs
src/models/highlight_field_option.rs
src/models/hits_hits.rs
src/models/insert_document_request.rs
src/models/join.rs
src/models/join_cond.rs
src/models/join_on.rs
src/models/knn_query.rs
src/models/match_all.rs
src/models/mod.rs
src/models/percolate_request.rs
src/models/percolate_request_query.rs
src/models/query_filter.rs
src/models/range.rs
src/models/replace_document_request.rs
src/models/response_error.rs
src/models/response_error_details.rs
src/models/search_query.rs
src/models/search_request.rs
src/models/search_response.rs
src/models/search_response_hits.rs
src/models/source_rules.rs
src/models/sql_obj_response.rs
src/models/sql_response.rs
src/models/success_response.rs
src/models/update_document_request.rs
src/models/update_response.rs
1 change: 1 addition & 0 deletions .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.3.0-SNAPSHOT
11 changes: 11 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>manticoresearch-rust</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
language: rust
22 changes: 22 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[package]
name = "manticoresearch"
version = "1.0.0"
authors = ["info@manticoresearch.com"]
description = "Сlient for Manticore Search. "
license = "MIT"
edition = "2021"

[dependencies]
tokio = {version = "1", features = ["full"]}
fancy-regex = "^0.14"
serde = { version = "^1.0", features = ["derive"] }
serde_with = { version = "^3.8", default-features = false, features = ["base64", "std", "macros"] }
serde_json = "^1.0"
serde_repr = "^0.1"
url = "^2.5"
hyper = { version = "^1.3.1", features = ["full"] }
hyper-util = { version = "0.1.5", features = ["client", "client-legacy", "http1", "http2"] }
http-body-util = { version = "0.1.2" }
http = "~0.2"
base64 = "~0.7.0"
futures = "^0.3"
6 changes: 3 additions & 3 deletions LICENSE → LICENSE.txt
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License
The MIT License (MIT)

Copyright (c) 2025 Manticore Search
Copyright (c) 2020-2025, Manticore Software LTD

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
Loading