Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Rust client for Typesense | Work In Progress & Help Wanted

License

NotificationsYou must be signed in to change notification settings

typesense/typesense-rust

Repository files navigation

CrateAPI

Community-maintained Rust client library for Typesense | Work In Progress & Help Wanted!

Development

When updating or adding new parameters and endpoints, make changes directly in theTypesense API spec repository.

Once your changes are merged, you can update this project as follows (you can also run tasks individually):

cargo xtask fetch preprocess code-gen

This will:

The preprocessing step does two things:

  • Flatten the URL params defined as objects into individual URL parameters (inpreprocess_openapi.rs)
  • Inject OpenAPI vendor attributes (e.g., generic parameters, schema builders) into the spec before code generation (inadd_vendor_attributes.rs)

You can also runcode-gen directly through Docker:

docker run --rm \    -v $PWD:/local openapitools/openapi-generator-cli generate \    -i /local/preprocessed_openapi.yml \    -g rust \    -o /local/typesense_codegen \    -t /local/openapi-generator-template \    --additional-properties library=reqwest \    --additional-properties supportMiddleware=true \    --additional-properties useSingleRequestParameter=true

Testing

Make sure you have a Typesense server up and running:

docker compose up

Then run this command in the root folder to run the integration tests:

cargo test-clean -- --all-features

This is an alias command which will run a script to clean up your Typesense server after the tests finish. You can pass any arguments ofcargo test after the--.

To run test for wasm (chrome, headless):

cargo test-clean --wasm

If you'd like to contribute, please join ourSlack Community and say hello!

About

Rust client for Typesense | Work In Progress & Help Wanted

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp