Skip to content

Commit

Permalink
Merge pull request #14585 from rgacogne/rec-typos-settings
Browse files Browse the repository at this point in the history
rec: Fix a few typos in the settings files
  • Loading branch information
rgacogne authored Aug 27, 2024
2 parents 44733eb + 7a440e3 commit abe0199
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pdns/recursordist/settings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Inside this directory, there is a `rust` subdirectory that contains the Rust cod
The Rust code uses CXX for bridging between C++ and Rust.
At the moment of writing, we only call Rust code from C++ and not vice versa.

Additionally, the Rust Serde crate (and specifically Serde-YAML) is used to generatec code to handle YAML.
Additionally, the Rust Serde crate (and specifically Serde-YAML) is used to generate code to handle YAML.

The entry point for code generation is `generate.py`, which uses `table.py` to produce C++, Rust and .rst files.
See `generate.sh` for some details about the generation process.
See `generate.py` for some details about the generation process.
This directory also contains a couple of `*-in.*` files which are included into files generated by the generation process.

From the C++ point of view, several namespaces are defined:
Expand Down
4 changes: 2 additions & 2 deletions pdns/recursordist/settings/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
# For Rust it generates rust/src/lib.rs, containing the structs with
# CXX and Serde annotations and associated code. rust-preamble-in.rs is
# included before the generated code and rus-bridge-in.rs inside the
# included before the generated code and rust-bridge-in.rs inside the
# bridge module in the generated lib.rs. Header files generated by CXX
# (lib.rs.h and cxx.h) are copied from deep inside the generated code
# hierarchy into the rust subdir as well.
Expand Down Expand Up @@ -764,7 +764,7 @@ def gen_newstyle_docs(srcdir, argentries):
RUNTIME = '*runtime determined*'

def generate():
"""Read table, validate and generate C++, Rst and .rst files"""
"""Read table, validate and generate C++, Rust and .rst files"""
srcdir = '.'
gendir = '.'
if len(sys.argv) == 3:
Expand Down

0 comments on commit abe0199

Please sign in to comment.