Skip to content

Commit 2cf619c

Browse files
authored
RUST-2157 Initial framework for autogenerated Atlas Search helpers (#1451)
1 parent 881efb7 commit 2cf619c

26 files changed

+2629
-0
lines changed

etc/gen_atlas_search/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target

etc/gen_atlas_search/Cargo.lock

Lines changed: 149 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

etc/gen_atlas_search/Cargo.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[package]
2+
name = "gen_atlas_search"
3+
version = "0.1.0"
4+
edition = "2024"
5+
6+
[dependencies]
7+
convert_case = "0.8.0"
8+
prettyplease = "0.2.36"
9+
proc-macro2 = "1.0.97"
10+
quote = "1.0.40"
11+
serde = { version = "1.0.219", features = ["derive"] }
12+
serde_yaml = "0.9.34"
13+
syn = { version = "2.0.105", features = ["full", "printing"] }

etc/gen_atlas_search/regenerate.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -o errexit
4+
set -x
5+
6+
gen_path="$(dirname $0)/../../src/atlas_search/gen.rs"
7+
8+
cargo run > ${gen_path}
9+
rustfmt +nightly --unstable-features ${gen_path}

0 commit comments

Comments
 (0)