Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
1f68cce
feat: script to run codegen
haydenhoang Jul 12, 2025
4081435
feat: multi-node client
haydenhoang Jul 17, 2025
57a1f6e
feat: documents `.create()` and `.upsert()`
haydenhoang Jul 17, 2025
46a2208
feat: alias
haydenhoang Jul 18, 2025
0d96f6b
integration tests
haydenhoang Jul 24, 2025
0e4002c
feat: generic collection and library module restructuring
haydenhoang Jul 29, 2025
8996804
rename file
haydenhoang Jul 29, 2025
579d4b2
feat: generate scoped searchkey
haydenhoang Jul 30, 2025
5a84fb3
feat: helper method to parse federated search results; added support …
haydenhoang Aug 5, 2025
2cb188f
feat(derive): Implement advanced nested and flattened field handling
haydenhoang Aug 10, 2025
3bc15f7
feat: add builders for collection schema and collection fields using …
haydenhoang Aug 15, 2025
0b3dde0
feat: wasm support & ergonomic client builder
haydenhoang Aug 20, 2025
678ed02
feat: wasm support & ergonomic client builder
haydenhoang Aug 20, 2025
89a2e48
fix: merge conflicts
haydenhoang Aug 20, 2025
963785e
remove old tests
haydenhoang Aug 21, 2025
7c41be2
ci: replace httpmock with an actual typesense server
haydenhoang Aug 21, 2025
d2510c8
configure lint ci trigger
haydenhoang Aug 21, 2025
54ad65d
fix lint, disable clippy & rustc elided_lifetimes_in_paths in typesen…
haydenhoang Aug 21, 2025
ab5227d
remove api tests
haydenhoang Aug 21, 2025
c4424de
feat: add builders for search parameters and multi search parameters
haydenhoang Aug 21, 2025
51d8402
feat: operations API
haydenhoang Aug 22, 2025
09cfdfd
refactor: remove `Arc` in `Arc<configuration::Configuration`
haydenhoang Aug 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[alias]
xtask = "run --package xtask --"
43 changes: 25 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,40 @@
name: CI

on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- '**/*.md'
pull_request:
branches:
- main
paths-ignore:
- '**/*.md'

jobs:
tests:
runs-on: "${{ matrix.platform.os }}-latest"
runs-on: '${{ matrix.platform.os }}-latest'
strategy:
matrix:
platform: [
{ os: "ubuntu", target: "x86_64-unknown-linux-gnu" },
{ os: "ubuntu", target: "wasm32-unknown-unknown" },
]
env:
# used to connect to httpmock
URL: "http://localhost:5000"
API_KEY: "VerySecretKey"
platform:
[
{ os: 'ubuntu', target: 'x86_64-unknown-linux-gnu' },
{ os: 'ubuntu', target: 'wasm32-unknown-unknown' },
]
services:
typesense:
image: typesense/typesense:29.0
ports:
- 8108:8108/tcp
volumes:
- /tmp/typesense-server-data:/data
env:
TYPESENSE_DATA_DIR: '/data'
TYPESENSE_API_KEY: 'xyz'
TYPESENSE_ENABLE_CORS: true
TYPESENSE_URL: 'http://localhost:8108'
steps:
- uses: actions/checkout@v4
- name: Cache .cargo and target
Expand All @@ -38,21 +52,14 @@ jobs:
target: ${{ matrix.platform.target }}
profile: minimal
default: true
- name: Install httpmock
uses: actions-rs/cargo@v1
with:
command: install
args: --features standalone -- httpmock
- name: Run httpmock
run: httpmock --expose --mock-files-dir=./mocks &
- name: Install test runner for wasm
if: matrix.platform.target == 'wasm32-unknown-unknown'
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Stable Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all-features --target ${{ matrix.platform.target }}
args: --all-features --package typesense --target ${{ matrix.platform.target }}
- name: Tests
if: matrix.platform.target != 'wasm32-unknown-unknown'
uses: actions-rs/cargo@v1
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
name: Lint checks

on:
workflow_dispatch:
push:
branches: [ main ]
branches:
- main
paths-ignore:
- '**/*.md'
pull_request:
branches: [ main ]
branches:
- main
paths-ignore:
- '**/*.md'

jobs:
lint:
runs-on: ubuntu-latest
env:
TZ: "/usr/share/zoneinfo/your/location"
TZ: '/usr/share/zoneinfo/your/location'
steps:
- uses: actions/checkout@v4
- name: Cache .cargo and target
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
Cargo.lock
.env
/typesense-data
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
members = [
"typesense",
"typesense_derive",
"typesense_codegen"
"typesense_codegen",
"xtask",
]

resolver = "3"
Expand Down
9 changes: 9 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:
typesense:
image: typesense/typesense:29.0
restart: on-failure
ports:
- '8108:8108'
volumes:
- ./typesense-data:/data
command: '--data-dir /data --api-key=xyz --enable-cors'
Loading