-
Notifications
You must be signed in to change notification settings - Fork 182
RUST-2157 Initial framework for autogenerated Atlas Search helpers #1451
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
12f1ea2
api sketch
abr-egn 86c0f67
skeleton and yaml sync
abr-egn 1336add
substantial codegen
abr-egn e22672d
plug codegen into module structure, add more docs
abr-egn 8d033e1
defer stringification
abr-egn d92cca6
TokenOrder
abr-egn 635ae82
text and supporting changes
abr-egn ba5feb1
compound and supporting changes
abr-egn 2bdb690
fix test
abr-egn 825c6fa
fix doctest
abr-egn 97a6f52
fix clippy
abr-egn 6f392fc
rename build to unit
abr-egn c7e1cc7
typo
abr-egn 7c54124
readability
abr-egn ad7c09e
doc improvements
abr-egn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
target |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[package] | ||
name = "gen_atlas_search" | ||
version = "0.1.0" | ||
edition = "2024" | ||
|
||
[dependencies] | ||
convert_case = "0.8.0" | ||
prettyplease = "0.2.36" | ||
proc-macro2 = "1.0.97" | ||
quote = "1.0.40" | ||
serde = { version = "1.0.219", features = ["derive"] } | ||
serde_yaml = "0.9.34" | ||
syn = { version = "2.0.105", features = ["full", "printing"] } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -x | ||
|
||
gen_path="$(dirname $0)/../../src/atlas_search/gen.rs" | ||
|
||
cargo run > ${gen_path} | ||
rustfmt +nightly --unstable-features ${gen_path} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been unmaintained for a while now but the alternatives aren't yet settled and it works fine for what's needed here.